From 778b03e9e241745135c62cb10572e74c0a021fca Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 22 Aug 2012 12:47:17 +0000 Subject: [PATCH] Ensure that MPI tests that don't compile actually show up in the output of 'make report'. Previously, if there was a file such as parallel_vector_03/ncpu_4/status from a previous run still around, then we would get to see an error message at the top that the file didn't compile, but in the 'report' target we would still look at the old 'status' file and report a success for this test. Thus, delete these files when compiling an object file and thereby ensure that they have to re-built as part of the 'make report' process. git-svn-id: https://svn.dealii.org/trunk@26075 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/Makefile.rules | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.rules b/tests/Makefile.rules index d8ff65b232..eb477a8068 100644 --- a/tests/Makefile.rules +++ b/tests/Makefile.rules @@ -27,8 +27,11 @@ PLATFORM-HIERARCHY = $(shell $(PERL) ../hierarchy.pl $(PLATFORM)) ID = `id -un`"@"`hostname` ############################################################ -# First how to create executables, including all necessary -# flags: +# First how to create object files, including all necessary +# flags. Before we start the compilation, write the status +# of the next operation into the test/status file. If these +# are MPI tests, also remove all status files from the +# test/ncpus_*/ directories ############################################################ flags = $(CXXFLAGS.g) @@ -40,11 +43,13 @@ endif %/obj.g.$(OBJEXT) : %.cc @echo =====debug========= $< @echo Compiling > $(dir $@)/status + @-rm -f $(dir $@)/ncpu*/status @$(CXX) $(flags) -c $< -o $@ %/obj.$(OBJEXT) : %.cc @echo =====optimized===== $< @echo Compiling > $(dir $@)/status + @-rm -f $(dir $@)/ncpu*/status @$(CXX) $(CXXFLAGS.o) -c $< -o $@ ###################################################################### -- 2.39.5