sbotools2

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

commit 9d049269a3619dfc51108a35fd135aca02cbf674
parent 2f670351a9ea8a7598f2c0cb1e66c931548d402e
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Mon, 25 Apr 2016 00:07:39 +0200

04-install.t: Add test for sboinstall -R

Diffstat:
Mt/04-install.t | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

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