Testcases: Check for required binaries (#2655)

Fail fast in case test binaries are not built and provide instructions
on how to build them.
This commit is contained in:
Tony Crisci 2017-01-23 02:40:08 -05:00 committed by Michael Stapelberg
parent 04dcf42397
commit a55733f719
1 changed files with 11 additions and 0 deletions

View File

@ -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',