diff options
Diffstat (limited to 't/06-remove.t')
-rwxr-xr-x | t/06-remove.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/06-remove.t b/t/06-remove.t index 686ae16..2793f36 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 => 5; + plan tests => 7; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -59,6 +59,12 @@ sboremove qw/ nonexistentslackbuild4 nonexistentslackbuild5 /, { input => "y\ny\ sboremove qw/ nonexistentslackbuildwhosenamedoesntexist nonexistentslackbuild /, { exit => 1, expected => "Unable to locate nonexistentslackbuildwhosenamedoesntexist in the SlackBuilds.org tree.\nnonexistentslackbuild is not installed\n" }; +# 6-7: sboremove nonexistentslackbuild [x2] and say no +sboinstall 'nonexistentslackbuild', { input => "y\ny", test => 0 }; +sboremove qw/ nonexistentslackbuild nonexistentslackbuild /, { input => "y\nn", expected => qr/Remove nonexistentslackbuild\b.*want to continue.*Exiting/s }; +sboremove 'nonexistentslackbuild', { input => "n", expected => qr/Ignoring.*Nothing to remove/s }; +sboremove 'nonexistentslackbuild', { input => "y\ny", test => 0 }; + # Cleanup END { cleanup(); |