From cf1326052b3ba0b33991e72614e67879843f08e8 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Sat, 9 Jul 2016 14:11:06 +1000 Subject: [PATCH] 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. --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index 44cb7ece..2adba82a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \