diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-12-11 11:59:47 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-12-11 11:59:47 +0200 |
commit | 4ba9c52641bd83bd71526e540ba282e11829423c (patch) | |
tree | f42c41bb5d17fb4588323b4e9c895edb336562c2 /t/12-readme.t | |
parent | 35f3afdbdea49b9b6da3431022a50b94a47ec912 (diff) | |
download | sbotools2-4ba9c52641bd83bd71526e540ba282e11829423c.tar.xz |
t/12-readme, etc: add tests for displaying other readme files. See #49.
Diffstat (limited to 't/12-readme.t')
-rwxr-xr-x | t/12-readme.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/12-readme.t b/t/12-readme.t index ff69ac2..1ef427c 100755 --- a/t/12-readme.t +++ b/t/12-readme.t @@ -10,7 +10,7 @@ use lib $RealBin; use Test::Sbotools qw/ make_slackbuilds_txt set_lo sboinstall sboremove restore_perf_dummy /; if ($ENV{TEST_INSTALL}) { - plan tests => 10; + plan tests => 11; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -19,12 +19,16 @@ sub cleanup { capture_merged { system(qw!/sbin/removepkg envsettingtest!); system(qw!/sbin/removepkg envsettingtest2!); + system(qw!/sbin/removepkg otherreadmes!); unlink "$RealBin/LO-readme/envsettingtest/perf.dummy"; unlink "$RealBin/LO-readme/envsettingtest2/perf.dummy"; + unlink "$RealBin/LO-readme/otherreadmes/perf.dummy"; system(qw!rm -rf /tmp/SBo/envsettingtest-1.0!); system(qw!rm -rf /tmp/SBo/envsettingtest2-1.0!); + system(qw!rm -rf /tmp/SBo/otherreadmes-1.0!); system(qw!rm -rf /tmp/package-envsettingtest!); system(qw!rm -rf /tmp/package-envsettingtest2!); + system(qw!rm -rf /tmp/package-otherreadmes!); }; } @@ -70,6 +74,9 @@ SKIP: { capture_merged { system(qw/ userdel test /); system(qw/ groupdel test /); }; } +# 11: sboinstall otherreadmes +sboinstall 'otherreadmes', { input => "y\ny\ny", expected => qr/Display.*README.*SlackBuilds[.]org.*SLACKWARE/s }; + # Cleanup END { cleanup(); |