From c1aa5725b2b93e85350397c4240ad56a39426d7b 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 52d4fbaa..4d316855 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \