From a55733f719c146438d9665445bfcadec9f69c1e2 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 23 Jan 2017 02:40:08 -0500 Subject: [PATCH] Testcases: Check for required binaries (#2655) Fail fast in case test binaries are not built and provide instructions on how to build them. --- testcases/complete-run.pl.in | 11 +++++++++++ 1 file changed, 11 insertions(+) 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', -- 2.39.5