aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-25 00:07:39 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-25 00:07:39 +0200
commit9d049269a3619dfc51108a35fd135aca02cbf674 (patch)
tree8915ff13f76e8090fdf1d49b87f9c960b48c81d9
parent2f670351a9ea8a7598f2c0cb1e66c931548d402e (diff)
downloadsbotools2-9d049269a3619dfc51108a35fd135aca02cbf674.tar.xz
04-install.t: Add test for sboinstall -R
-rwxr-xr-xt/04-install.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/04-install.t b/t/04-install.t
index 19357d3..e8bcde4 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 => 15;
+ plan tests => 16;
} else {
plan skip_all => 'Only run these tests if TEST_INSTALL=1';
}
@@ -86,6 +86,10 @@ ok(!-e "/var/log/packages/nonexistentslackbuild-1.0-noarch-1_SBo", "nonexistents
# 15: sboinstall nonexistentslackbuild
sboinstall 'nonexistentslackbuild', { input => "n", expected => sub { not /nonexistentslackbuild added to install queue/ } };
+# 16: sboinstall nonexistentslackbuild4
+sboinstall qw/ -R nonexistentslackbuild4 /, { input => "y\ny", expected => sub { not /nonexistentslackbuild5 added to install queue/ } };
+sboremove 'nonexistentslackbuild4', { input => "y\ny\n", test => 0 };
+
# Cleanup
END {
cleanup();