diff options
-rwxr-xr-x | t/05-upgrade.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/05-upgrade.t b/t/05-upgrade.t index 4cdc047..5d276cb 100755 --- a/t/05-upgrade.t +++ b/t/05-upgrade.t @@ -11,7 +11,7 @@ use Test::Sbotools qw/ make_slackbuilds_txt set_lo sboconfig sboinstall sboupgra use File::Temp 'tempdir'; if ($ENV{TEST_INSTALL}) { - plan tests => 16; + plan tests => 18; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -126,6 +126,11 @@ cleanup(); install('LO', 'weird-versionsbo'); sboupgrade '--all', { input => ("n\n" x (@sbos+1)), expected => sub { not /weird-versionsbo/ } }; +# 17-18: sboupgrade -r -f both something installed and something not installed +install('LO', 'nonexistentslackbuild'); +sboupgrade qw/ -r -f nonexistentslackbuild /, { expected => qr/^Upgrade queue: nonexistentslackbuild$/m }; +sboupgrade qw/ -r -f nonexistentslackbuild2 /, { expected => "" }; + # Cleanup END { cleanup(); |