2 ##################Test Report Generator main starts here##############
4 #TEST_RUN_DIR should be set before running this
5 if [ ! "$TEST_RUN_ROOT" ]
7 echo "TEST_RUN_ROOT should be set before running the tests"
10 #if [ -s "$TEST_RUN_ROOT" ]
12 # echo "TEST_RUN_ROOT directory does not exist. Create it and try again."
18 echo "===================================================================="
19 echo " MODULE TESTPASSED TESTFAILED "
20 echo "===================================================================="
23 echo $MODULE |
grep "#" >/dev
/null
28 TEST_RUN_DIR
=${TEST_RUN_ROOT}/${MODULE}
29 TEST_LOG
=$TEST_RUN_DIR/testlog
30 TESTPASSED
=`grep PASSED $TEST_LOG | wc -l`
31 TESTFAILED
=`grep FAILED $TEST_LOG | wc -l`
32 printf "%25s\t\t %5d\t\t %5d\t\t\n" $MODULE $TESTPASSED $TESTFAILED
33 (( TOTALPASSED
= TOTALPASSED
+ TESTPASSED
))
34 (( TOTALFAILED
= TOTALFAILED
+ TESTFAILED
))
39 echo "===================================================================="
40 printf "%25s\t\t %5d\t\t %5d\t\t\n" $TOTSTRING $TOTALPASSED $TOTALFAILED
41 echo "===================================================================="
42 (( TOTALEXECUTED
= TOTALPASSED
+ TOTALFAILED
))
43 echo "TOTAL Executed: $TOTALEXECUTED"