diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-03 00:06:59 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-03 00:06:59 +0200 |
commit | 9f76e39ed86b0aaa0994e19748c56180963003fb (patch) | |
tree | 9f91c1a0da21f845ee989cd301b8c26f13b26cc9 /t/04-install.t | |
parent | e7940430151bbe31ca3e6563b7dd27a54429fa97 (diff) | |
download | sbotools2-9f76e39ed86b0aaa0994e19748c56180963003fb.tar.xz |
04-install.t: Add tests for perl sbos
Diffstat (limited to 't/04-install.t')
-rwxr-xr-x | t/04-install.t | 8 |
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(); |