From: bangerth Date: Wed, 22 Aug 2012 12:47:17 +0000 (+0000) Subject: Ensure that MPI tests that don't compile actually show up in the output of 'make... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6491081795d6264434713eaf133cc94f57605270;p=dealii-svn.git 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 --- 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 $@ ######################################################################