|
From: <sv...@va...> - 2012-03-25 10:55:11
|
philippe 2012-03-25 11:54:59 +0100 (Sun, 25 Mar 2012)
New Revision: 12456
Log:
Have check_mak蘯ケfile_consistency run at the end of make regtest
This ensures that a missing file in the Makefile is detected,
without blocking the tests.
Modified files:
trunk/Makefile.am
Modified: trunk/Makefile.am (+7 -2)
===================================================================
--- trunk/Makefile.am 2012-03-21 20:32:00 +00:00 (rev 12455)
+++ trunk/Makefile.am 2012-03-25 11:54:59 +01:00 (rev 12456)
@@ -66,10 +66,15 @@
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
|