]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Have check_makẹfile_consistency run at the end of make regtest
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 25 Mar 2012 10:54:59 +0000 (10:54 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 25 Mar 2012 10:54:59 +0000 (10:54 +0000)
This ensures that a missing file in the Makefile is detected,
without blocking the tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12456

Makefile.am

index 7deb43ab0086e10d4062c0143bccb336f4808c38..b67171303045e50f3204754fbe12488f46299c14 100644 (file)
@@ -66,10 +66,15 @@ default.supp: $(DEFAULT_SUPP_FILES)
        cat $(DEFAULT_SUPP_FILES) >> default.supp
 
 ## Preprend @PERL@ because tests/vg_regtest isn't executable
+## Ensure make exits with error if PERL fails or check_makẹfile_consistency fails.
 regtest: check
-       -tests/check_makefile_consistency gdbserver_tests $(TOOLS) $(EXP_TOOLS)
        gdbserver_tests/make_local_links $(GDB)
-       @PERL@ tests/vg_regtest gdbserver_tests $(TOOLS) $(EXP_TOOLS)
+       if @PERL@ tests/vg_regtest gdbserver_tests $(TOOLS) $(EXP_TOOLS) ; then \
+          tests/check_makefile_consistency gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
+       else \
+          tests/check_makefile_consistency gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
+          false; \
+       fi
 nonexp-regtest: check
        @PERL@ tests/vg_regtest $(TOOLS)
 exp-regtest: check