From b58c6ba0861e6ba75f3cafef23569a44573dcdca Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Thu, 31 Dec 2015 13:39:28 +0100 Subject: Add tests for build fail in dependency. See #23 --- t/fail.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 't/fail.t') diff --git a/t/fail.t b/t/fail.t index 219a0cc..8343bc2 100755 --- a/t/fail.t +++ b/t/fail.t @@ -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'); -- cgit v1.2.3