diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-25 00:03:58 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-25 00:03:58 +0200 |
commit | 2e646a1feb3db54e92989cb0c65cd34f29b703f1 (patch) | |
tree | bc66a51217be4e9d3439140d29571f0a4aa9c865 /t/04-install.t | |
parent | 8d906c7cd98f9503c506994c7c653ef1d8b4950f (diff) | |
download | sbotools2-2e646a1feb3db54e92989cb0c65cd34f29b703f1.tar.xz |
04-install.t: add check for sboinstall -i
Diffstat (limited to 't/04-install.t')
-rwxr-xr-x | t/04-install.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/04-install.t b/t/04-install.t index 0f3eed4..6bc19d4 100755 --- a/t/04-install.t +++ b/t/04-install.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 => 10; + plan tests => 12; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -75,6 +75,10 @@ sboremove 'nonexistentslackbuild4', 'nonexistentslackbuild5', { input => "y\ny\n # 10: sboinstall nonexistentslackbuild6 sboinstall 'nonexistentslackbuild6', { input => "y\ny", expected => qr/aaa_base already installed.*nonexistentslackbuild6 added to install queue.*Install queue: nonexistentslackbuild6/s }; +# 11-12: sboinstall -i nonexistentslackbuild +sboinstall qw/ -i nonexistentslackbuild /, { input => "y\ny", expected => qr/nonexistentslackbuild added to install queue/ }; +ok(!-e "/var/log/packages/nonexistentslackbuild-1.0-noarch-1_SBo", "nonexistentslackbuild wasn't installed"); + # Cleanup END { cleanup(); |