5 for cmake in $(find -name CMakeLists.txt) ; do
8 echo;echo "Directory $d"
10 grep add_executable $cmake |\
11 sed -e 's/ #/#/' -e 's/ *add_executable(//' -e 's/ .*//'|\
12 sed -e 's/^\([^#].*\)/\1 PASS/' -e 's/^#\(.*\)/\1 todo/' |\
13 sed -e "s|^|$d/|" -e "s|^\\./||" | \
14 tee >(sed -e 's/[^ ]* //'|sort|uniq -c|sed -e "s|^ *|Summary: |") |\
22 echo; echo "----------------------------"
24 echo -n "Total amount of passed tests: "
25 (echo 0; explore_files | grep Summary: |grep PASS|\
26 sed 's/Summary: \([0-9]*\) .*/\1 +/';echo p) | dc
28 echo -n "Total amount of failed tests: "
29 (echo 0; explore_files | grep Summary: |grep todo|\
30 sed 's/Summary: \([0-9]*\) .*/\1 +/';echo p) | dc