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:
parent
04dcf42397
commit
a55733f719
|
@ -87,6 +87,17 @@ foreach my $binary (@binaries) {
|
||||||
die "$binary is not an executable" unless -x $binary;
|
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(':',
|
$ENV{PATH} = join(':',
|
||||||
'@abs_top_builddir@/i3-nagbar',
|
'@abs_top_builddir@/i3-nagbar',
|
||||||
'@abs_top_builddir@/i3-msg',
|
'@abs_top_builddir@/i3-msg',
|
||||||
|
|
Loading…
Reference in New Issue