From 9f76e39ed86b0aaa0994e19748c56180963003fb Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Tue, 3 May 2016 00:06:59 +0200 Subject: 04-install.t: Add tests for perl sbos --- t/04-install.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 't/04-install.t') diff --git a/t/04-install.t b/t/04-install.t index e8bcde4..3156e9a 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 => 16; + plan tests => 18; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -90,6 +90,12 @@ sboinstall 'nonexistentslackbuild', { input => "n", expected => sub { not /nonex sboinstall qw/ -R nonexistentslackbuild4 /, { input => "y\ny", expected => sub { not /nonexistentslackbuild5 added to install queue/ } }; sboremove 'nonexistentslackbuild4', { input => "y\ny\n", test => 0 }; +# 17: sboinstall perl-Capture-Tiny +sboinstall 'perl-Capture-Tiny', { expected => "perl-Capture-Tiny installed via the cpan.\n" }; + +# 18: sboinstall perl-nonexistentcpan +sboinstall 'perl-nonexistentcpan', { input => "n", expected => qr/Proceed with perl-nonexistentcpan/ }; + # Cleanup END { cleanup(); -- cgit v1.2.3