]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Ensure that MPI tests that don't compile actually show up in the output of 'make...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Aug 2012 12:47:17 +0000 (12:47 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Aug 2012 12:47:17 +0000 (12:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@26075 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules

index d8ff65b232b639a884e4c2ae3f9024f60e0b86fb..eb477a8068f756cf18ddef9f4c62311878877fed 100644 (file)
@@ -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 $@
 
 ######################################################################

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.