diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-31 13:39:28 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-31 22:52:46 +0100 |
commit | b58c6ba0861e6ba75f3cafef23569a44573dcdca (patch) | |
tree | 6595db0cd8c34a11cd2b0d7e0886a6a2c8ad6632 /t/fail.t | |
parent | 57c757a6c95124371c3cdf3454a2f5d5bdceb13e (diff) | |
download | sbotools2-b58c6ba0861e6ba75f3cafef23569a44573dcdca.tar.xz |
Add tests for build fail in dependency. See #23
Diffstat (limited to 't/fail.t')
-rwxr-xr-x | t/fail.t | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -11,7 +11,7 @@ use lib "$RealBin/../SBO-Lib/lib"; use Test::Execute; if ($ENV{TEST_INSTALL}) { - plan tests => 2; + plan tests => 3; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -71,6 +71,9 @@ SKIP: { script (qw/ sboinstall failingdownload /, { input => "y\ny\nn", expected => qr!Failures:\n failingdownload: Unable to wget http://www[.]pastemobile[.]org/perf[.]dummy[.]fail[.]\n!, exit => 5 }); } +# 3: Failing dependency +script (qw/ sboinstall nonexistentslackbuild2 /, { input => "y\ny\ny\nn", expected => qr/Failures:\n failingslackbuild: failingslackbuild.SlackBuild return non-zero\n\z/, exit => 3 }); + # Cleanup END { set_lo('delete'); |