diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-11-19 15:59:08 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-11-19 15:59:08 +0100 |
commit | 815a350b74918bc72c60d799d3a856952bd1683d (patch) | |
tree | b975dda5a3fe1bad32e05e64702f940b1ae9faa2 /t | |
parent | 712ea0ac188aa2a22df1c3aca4cf4f17adf6b69e (diff) | |
download | sbotools2-815a350b74918bc72c60d799d3a856952bd1683d.tar.xz |
Fixed .info file parsing
This fixes #5
Also added tests for #5
Diffstat (limited to 't')
-rw-r--r-- | t/sbo/multimedia/mpv/mpv.info | 12 | ||||
-rwxr-xr-x | t/test.t | 9 |
2 files changed, 21 insertions, 0 deletions
diff --git a/t/sbo/multimedia/mpv/mpv.info b/t/sbo/multimedia/mpv/mpv.info new file mode 100644 index 0000000..a84d236 --- /dev/null +++ b/t/sbo/multimedia/mpv/mpv.info @@ -0,0 +1,12 @@ +PRGNAM="mpv" +VERSION="0.10.0" +HOMEPAGE="http://mpv.io" +DOWNLOAD="https://github.com/mpv-player/mpv/archive/v0.10.0.tar.gz + http://www.freehackers.org/~tnagy/release/waf-1.8.12" +MD5SUM="e81a975e4fa17f500dc2e7ea3d3ecf25 + cef4ee82206b1843db082d0b0506bf71" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="ffmpeg libass docutils" +MAINTAINER="John Vogel" +EMAIL="jvogel4@stny.rr.com" @@ -159,6 +159,15 @@ my $downloads = get_sbo_downloads(LOCATION => "$sbo_home/system/ifuse"); $link = 'http://www.libimobiledevice.org/downloads/ifuse-1.1.1.tar.bz2'; is($$downloads{$link}, '8d528a79de024b91f12f8ac67965c37c', 'get_sbo_downloads test 03 good.'); +$downloads = get_sbo_downloads(LOCATION => "$sbo_home/multimedia/mpv"); +my @links = qw' + https://github.com/mpv-player/mpv/archive/v0.10.0.tar.gz + http://www.freehackers.org/~tnagy/release/waf-1.8.12 +'; +is ($$downloads{$links[0]}, 'e81a975e4fa17f500dc2e7ea3d3ecf25', + 'get_sbo_downloads test 04 good.'); +is ($$downloads{$links[1]}, 'cef4ee82206b1843db082d0b0506bf71', + 'get_sbo_downloads test 05 good.'); # get_filename_from_link test is(get_filename_from_link( |