From 9d049269a3619dfc51108a35fd135aca02cbf674 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Mon, 25 Apr 2016 00:07:39 +0200 Subject: 04-install.t: Add test for sboinstall -R --- t/04-install.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3