build-sys: Make check programs before check

For some unknown reason, check_PROGRAMS are not built before check.
They are built before recheck and after check, which isn't very
useful.

This means any tests by dejagnu that need those programs will fail.
On my console I get a build error, the CI merrily reports the error
but considers the build OK; go figure.

The kludge adds check_PROGRAMS to be a dependency to check.
Note, TESTS don't need to be included in this, because they are
properly compliled after the dejagnu tests but before they are
run.
This commit is contained in:
Craig Small 2016-07-09 14:11:06 +10:00
parent 931576505b
commit c1aa5725b2

View File

@ -252,6 +252,9 @@ ps_pscommand_SOURCES = \
lib/signals.c
# Note sure why this is needed but it breaks without it
check: $(check_PROGRAMS)
# lib/test_* binaries
check_PROGRAMS = \
lib/test_strutils \