aboutsummaryrefslogtreecommitdiff
path: root/t/test.t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-11-19 15:59:08 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-11-19 15:59:08 +0100
commit815a350b74918bc72c60d799d3a856952bd1683d (patch)
treeb975dda5a3fe1bad32e05e64702f940b1ae9faa2 /t/test.t
parent712ea0ac188aa2a22df1c3aca4cf4f17adf6b69e (diff)
downloadsbotools2-815a350b74918bc72c60d799d3a856952bd1683d.tar.xz
Fixed .info file parsing
This fixes #5 Also added tests for #5
Diffstat (limited to 't/test.t')
-rwxr-xr-xt/test.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/test.t b/t/test.t
index 8b5eeb4..f2031e7 100755
--- a/t/test.t
+++ b/t/test.t
@@ -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(