aboutsummaryrefslogtreecommitdiff
path: root/t/06-remove.t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-02 13:45:48 +0000
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-02 13:45:48 +0000
commit2890e10823a93af5d8c0fa68f8c40029c405556d (patch)
tree64a60ee4ed3b06ddf1169113603c4c88146fbc13 /t/06-remove.t
parentb8ce0c8b5a934cff37cbb4ecb123d5895d477f42 (diff)
downloadsbotools2-2890e10823a93af5d8c0fa68f8c40029c405556d.tar.xz
06-remove.t: add one more test for needed sbos
Diffstat (limited to 't/06-remove.t')
-rwxr-xr-xt/06-remove.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/06-remove.t b/t/06-remove.t
index 40b15d8..97d53a9 100755
--- a/t/06-remove.t
+++ b/t/06-remove.t
@@ -10,7 +10,7 @@ use lib $RealBin;
use Test::Sbotools qw/ make_slackbuilds_txt set_lo sboinstall sboremove /;
if ($ENV{TEST_INSTALL}) {
- plan tests => 12;
+ plan tests => 13;
} else {
plan skip_all => 'Only run these tests if TEST_INSTALL=1';
}
@@ -73,17 +73,18 @@ sboremove qw/ nonexistentslackbuild nonexistentslackbuild /, { input => "y\nn",
sboremove 'nonexistentslackbuild', { input => "n", expected => qr/Ignoring.*Nothing to remove/s };
sboremove 'nonexistentslackbuild', { input => "y\ny", test => 0 };
-# 8-11: sboremove check that still needed sbos aren't removed
+# 8-12: sboremove check that still needed sbos aren't removed
sboinstall qw/ nonexistentslackbuild4 nonexistentslackbuild7 /, { input => "y\ny\ny\ny", test => 0 };
sboremove 'nonexistentslackbuild4', { input => "y\nn", expected => sub { ! /nonexistentslackbuild5 / } };
TODO: {
todo_skip 'sboremove: not able to see if a dep needed by more than one installed thing is still needed', 1;
sboremove qw/ nonexistentslackbuild4 nonexistentslackbuild7 /, { input => "\n\n\n\n\n", expected => qr/nonexistentslackbuild5/ };
}
+sboremove qw/ nonexistentslackbuild4 nonexistentslackbuild5 /, { input => "y\ny\nn", expected => qr/nonexistentslackbuild4 nonexistentslackbuild5/ };
sboremove qw/ -a nonexistentslackbuild4 /, { input => "y\nn\ny", expected => qr/nonexistentslackbuild5 : required by nonexistentslackbuild7/ };
sboremove 'nonexistentslackbuild7', { input => "y\ny\ny", expected => qr/nonexistentslackbuild5/ };
-# 12: sboremove shows readme for %README% dep
+# 13: sboremove shows readme for %README% dep
sboinstall 'nonexistentslackbuild8', { input => "y\ny", test => 0 };
sboremove 'nonexistentslackbuild8', { input => "y\ny\ny", expected => qr/But has to be read/ };