aboutsummaryrefslogtreecommitdiff
path: root/t/04-install.t
diff options
context:
space:
mode:
Diffstat (limited to 't/04-install.t')
-rwxr-xr-xt/04-install.t8
1 files changed, 7 insertions, 1 deletions
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();