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 3ead0207ae
commit cf1326052b

View File

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