diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-02-12 11:43:31 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-02-12 21:46:28 +0100 |
commit | 1b1385ad465d1c01f2391b4e92049dc84f8c863b (patch) | |
tree | 785d479cb114bdec994f6d4bfa58453440b04c4f /t/04-install.t | |
parent | a02b1e72255c909a1bf94e47ecbf68e429143153 (diff) | |
download | sbotools2-1b1385ad465d1c01f2391b4e92049dc84f8c863b.tar.xz |
Add tests for slackbuild with dep on a slackware package. See #28
Diffstat (limited to 't/04-install.t')
-rwxr-xr-x | t/04-install.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/04-install.t b/t/04-install.t index 830ee3d..4736a6e 100755 --- a/t/04-install.t +++ b/t/04-install.t @@ -11,7 +11,7 @@ use lib "$RealBin/../SBO-Lib/lib"; use Test::Execute; if ($ENV{TEST_INSTALL}) { - plan tests => 8; + plan tests => 9; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -24,15 +24,19 @@ sub cleanup { system(qw!/sbin/removepkg nonexistentslackbuild!); system(qw!/sbin/removepkg nonexistentslackbuild4!); system(qw!/sbin/removepkg nonexistentslackbuild5!); + system(qw!/sbin/removepkg nonexistentslackbuild6!); unlink "$RealBin/LO/nonexistentslackbuild/perf.dummy"; unlink "$RealBin/LO/nonexistentslackbuild4/perf.dummy"; unlink "$RealBin/LO/nonexistentslackbuild5/perf.dummy"; + unlink "$RealBin/LO/nonexistentslackbuild6/perf.dummy"; system(qw!rm -rf /tmp/SBo/nonexistentslackbuild-1.0!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild4-1.0!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild5-1.0!); + system(qw!rm -rf /tmp/SBo/nonexistentslackbuild6-1.0!); system(qw!rm -rf /tmp/package-nonexistentslackbuild!); system(qw!rm -rf /tmp/package-nonexistentslackbuild4!); system(qw!rm -rf /tmp/package-nonexistentslackbuild5!); + system(qw!rm -rf /tmp/package-nonexistentslackbuild6!); }; } @@ -94,6 +98,9 @@ script (qw/ sboremove nonexistentslackbuild5 /, { input => "y\ny", test => 0 }); script (qw/ sboinstall nonexistentslackbuild4 /, { input => "y\ny", expected => qr/nonexistentslackbuild5 added to install queue.*Install queue: nonexistentslackbuild5/s }); script (qw/ sboremove nonexistentslackbuild4 nonexistentslackbuild5 /, { input => "y\ny\ny", test => 0 }); +# 9: sboinstall nonexistentslackbuild6 +script (qw/ sboinstall nonexistentslackbuild6 /, { input => "y\ny", expected => qr/nonexistentslackbuild6 added to install queue.*Install queue: nonexistentslackbuild6/s }); + # Cleanup END { set_lo('delete'); |