sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit b339c961380eb69c1af6d24a9802fd3f9b0dddbe
parent 53ad14df5e59d8966363d6f05885dc6d0d9d098e
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Sat, 16 Jul 2016 00:00:16 +0200

05-upgrade.t: test sboupgrade -r -f

Diffstat:
Mt/05-upgrade.t | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 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();