]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add and document the new make report+summary in the testsuite
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Sep 2012 17:44:43 +0000 (17:44 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Sep 2012 17:44:43 +0000 (17:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@26235 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/development/testsuite.html
tests/Makefile
tests/Makefile.rules
tests/all-headers/Makefile
tests/mesh_converter/Makefile

index c0fc411fbf3f9f7bac57992d2b0b9fcdc4f7cb16..a9becca692e657f55a5e2b8699574cabab4f2f94 100644 (file)
     tests nightly through a cron-job with this command, to have
     regular test runs.
     </p>
+    
+    <p>
+    To get a quick overview you can run
+    <pre>
+      make report+summary
+    </pre>
+    instead. This runs all the tests and outputs a table in the following format
+    at the end:
+    <pre>
+                Compiling Linking Running   Check      OK     all
+         a-framework   1       1       1       1       1       5       
+                base   0       0       0       2       185     187     
+                 lac   0       0       0       0       117     117     
+                  fe   0       0       0       4       114     118     
+             deal.II   0       0       0       2       291     293     
+         integrators   0       0       0       0       15      15      
+           multigrid   0       0       0       0       35      35            
+                ...
+    </pre>
+    </p>
 
     <p>
     If a test failed, you have to find out what exactly went
index cc3a80ad51537f394f7c2ca6ee61b3ff78b6f48c..cdcf4d72afc5162f9db15f660db62dde4518f07e 100644 (file)
@@ -46,6 +46,18 @@ report:
                cd $$i ; $(MAKE) report ; cd .. ; \
         done
 
+report+summary:
+       -@$(MAKE) -k nofail
+       @for i in $(nofail-dirs) fail all-headers ; do \
+               echo =======Report: $$i ======= ; \
+               cd $$i ; $(MAKE) report ; cd .. ; \
+        done
+       @echo "                Compiling Linking Running   Check      OK     all"
+       @for i in $(nofail-dirs) fail all-headers ; do \
+               printf "%20s\t" "$$i"; \
+               cd $$i ; $(MAKE) -s summary ; cd .. ; \
+        done
+
 report+mail:
        -@$(MAKE) -k nofail
        @for i in $(nofail-dirs) fail all-headers ; do \
index eb477a8068f756cf18ddef9f4c62311878877fed..749b0c0c8c6fbb20daee4bd7a31661453a503208 100644 (file)
@@ -187,6 +187,36 @@ report:
        done
 
 
+status=Compiling Linking Running Checking diff all
+
+summary:
+       @for curstatus in $(status) ; do \
+         counter=0 ; \
+         all=0 ; \
+         for test in $(sort $(tests)) ; do \
+            case $$test in \
+               *ncpu_*) \
+                if test -f $$test/status ; then \
+                   file=$$test/status ; \
+                 else \
+                  file=`echo $$test | $(PERL) -pi -e 's/ncpu_\d+//g;'`/status ; \
+               fi ; \
+               ;; \
+           *) \
+               file=$$test/status ; \
+               ;; \
+         esac ; \
+         curcount=`if test -f $$file ; then grep -c $$curstatus $$file;else echo 0;fi;`; \
+         all=$$(($$all+1));\
+         counter=$$(($$counter+$$curcount)); \
+       done; \
+       if test "$$curstatus" = "all"; then printf "%s\t" $$all; \
+       else if test "$$curstatus" = "diff"; then printf "%s\t" $$counter; \
+       else if test "$$counter" != "0"; then printf "%s\t" $$counter; \
+       else printf "%s\t" $$counter ; fi;fi;fi;\
+       done;\
+       printf "\n";
+
 report+mail:
        @$(MAKE) report | tee testresults
        @cat testresults | $(MAIL) regression-tests@dealii.org
@@ -280,5 +310,5 @@ Makefile.tests: Makefile $(shell echo *.cc)
                > $@
 
 
-.PHONY: report show-tests clean distclean %/ref
+.PHONY: report show-tests clean distclean summary %/ref
 
index 82487180cf75b334936fc2378a2bc7a9e0f356ba..e9bdf36c7f7b0fff1943ebc1b578284f9998dce7 100644 (file)
@@ -90,5 +90,7 @@ clean:
        -rm -f Makefile.dep *.$(OBJEXT) \
                *.g.$(OBJEXT) *.output *~ *.OK *.cc
 
+summary:
+       @echo "not implemented"
 
-.PHONY: report clean distclean all default report report+mail
+.PHONY: report clean distclean all default report report+mail summary
index c935ea726799563352a253c4a65b15691e616b25..c88e598d33c68ab698abda7c0877dbcf16418def 100644 (file)
@@ -89,5 +89,7 @@ clean:
        -rm -f Makefile.dep *.$(OBJEXT) \
                *.g.$(OBJEXT) *.output *~ *.OK *.cc *.ucd *.log
 
+summary:
+       @printf "not implemented\n"
 
-.PHONY: report clean distclean all default report report+mail
+.PHONY: report clean distclean all default report report+mail summary

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.