From: Tony Crisci Date: Mon, 23 Jan 2017 07:40:08 +0000 (-0500) Subject: Testcases: Check for required binaries (#2655) X-Git-Tag: 4.14~59 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a55733f719c146438d9665445bfcadec9f69c1e2;p=i3%2Fi3 Testcases: Check for required binaries (#2655) Fail fast in case test binaries are not built and provide instructions on how to build them. --- diff --git a/testcases/complete-run.pl.in b/testcases/complete-run.pl.in index d872bda1..2019253c 100755 --- a/testcases/complete-run.pl.in +++ b/testcases/complete-run.pl.in @@ -87,6 +87,17 @@ foreach my $binary (@binaries) { die "$binary is not an executable" unless -x $binary; } +my @test_binaries = qw( + @abs_top_builddir@/test.commands_parser + @abs_top_builddir@/test.config_parser + @abs_top_builddir@/test.inject_randr15 + ); + +foreach my $binary (@test_binaries) { + die "$binary executable not found, did you run “make check”?" unless -e $binary; + die "$binary is not an executable" unless -x $binary; +} + $ENV{PATH} = join(':', '@abs_top_builddir@/i3-nagbar', '@abs_top_builddir@/i3-msg',