From 761ed4bce2eb8045a335a9f8175021a2f9550f7d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 11 Apr 2001 21:34:20 +0000 Subject: [PATCH] Add rule to generate a report of the results of this directory. git-svn-id: https://svn.dealii.org/trunk@4441 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/Makefile.rules | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.rules b/tests/Makefile.rules index 2229b35958..199e25bdc5 100644 --- a/tests/Makefile.rules +++ b/tests/Makefile.rules @@ -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 -- 2.39.5