diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-07-16 00:00:16 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-07-16 00:00:16 +0200 |
commit | b339c961380eb69c1af6d24a9802fd3f9b0dddbe (patch) | |
tree | 3543df23094045962561917d9a0a0f0179055253 | |
parent | 53ad14df5e59d8966363d6f05885dc6d0d9d098e (diff) | |
download | sbotools2-b339c961380eb69c1af6d24a9802fd3f9b0dddbe.tar.xz |
05-upgrade.t: test sboupgrade -r -f
-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(); |