]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add rule to generate a report of the results of this directory.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 11 Apr 2001 21:34:20 +0000 (21:34 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 11 Apr 2001 21:34:20 +0000 (21:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@4441 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules

index 2229b3595850d3f9906d6a9004fd6065c84c2fc8..199e25bdc5c106d56144ba13f7e20d8be91c8d55 100644 (file)
@@ -76,13 +76,34 @@ flags     = $(CXXFLAGS.g) $(CXXFLAGS) -Wno-missing-noreturn
                echo '=====OK============' $@ ; \
                touch $@ ; \
         else \
-               echo '+++++Error+++++++++' $@ ; \
+               if test "x$(verbose)" = "xon" ; then \
+                       echo '+++++Error+++++++++' $@ ; \
+               else \
+                       echo '+++++Error+++++++++ $@. Use make verbose=on for the diffs' ; \
+               fi ; \
                if test "x$(stop_on_error)" = "xon" ; then \
                        false ; \
                fi ; \
         fi
 
 
+############################################################
+# Generate a report for the present date, in which the
+# results (indicated by a "+" for a successful test, and a
+# "-" for a failing one) for all tests is summarized. Use
+# universal time in order to be able to run this target
+# anywhere anytime
+############################################################
+report:
+       @today=`date -u +"%Y-%m-%d %H:%M"` ; \
+       for test in $(tests) ; do \
+               if (($(MAKE) $$test.check stop_on_error=on 2>&1) > /dev/null); then \
+                       echo $$today + $$test ; \
+               else \
+                       echo $$today - $$test ; \
+               fi ; \
+       done
+
 
 ############################################################
 # After all these general rules, here is the target to be

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.