X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c4c9a3a14c15d1977b8c6c73da194c814e533afb..87e445c8ad7a9508d561eaf510314d1822a4fe54:/teshsuite/smpi/mpich3-test/generate_report diff --git a/teshsuite/smpi/mpich3-test/generate_report b/teshsuite/smpi/mpich3-test/generate_report new file mode 100755 index 0000000000..ac33562311 --- /dev/null +++ b/teshsuite/smpi/mpich3-test/generate_report @@ -0,0 +1,30 @@ +#! /bin/bash + +explore_files() { + + for cmake in `find -name CMakeLists.txt` ; do + d=`dirname $cmake` + + echo;echo "Directory $d" + + grep add_executable $cmake |\ + sed -e 's/ #/#/' -e 's/ *add_executable(//' -e 's/ .*//'|\ + sed -e 's/^\([^#].*\)/\1 PASS/' -e 's/^#\(.*\)/\1 todo/' |\ + sed -e "s|^|$d/|" -e "s|^\\./||" | \ + tee >(sed -e 's/[^ ]* //'|sort|uniq -c|sed -e "s|^ *|Summary: |") |\ + cat + + done +} + +explore_files + +echo; echo "----------------------------" + +echo -n "Total amount of passed tests: " +(echo 0; explore_files | grep Summary: |grep PASS|\ + sed 's/Summary: \([0-9]*\) .*/\1 +/';echo p) | dc + +echo -n "Total amount of failed tests: " +(echo 0; explore_files | grep Summary: |grep todo|\ + sed 's/Summary: \([0-9]*\) .*/\1 +/';echo p) | dc