[svn-r11868] Purpose:

Feature.

Description:
Added counters for number of tests passed, failed and skipped.

Platforms tested:
Will be tested by daily test.
This commit is contained in:
Albert Cheng committed 2006-01-08 00:04:47 -05:00
1 parent 6ba811adcf
commit c8f5be4e3c
1 file changed
+8 -2
+8 -2
View File
@@ -113,12 +113,15 @@ REPORT_RESULT()
{
if [ $retcode -eq 0 ]; then
if [ $skiptest = yes ]; then
n_skip=`expr $n_skip + 1`
PRINT "SKIPPED ${HOSTNAME}: $TEST_TYPE" | tee -a $SKIPPEDLOG
else
n_pass=`expr $n_pass + 1`
PRINT "PASSED ${HOSTNAME}: $TEST_TYPE" | tee -a $PASSEDLOG
fi
else
# test failed.
n_fail=`expr $n_fail + 1`
REPORT_ERR "****FAILED ${HOSTNAME}: $TEST_TYPE****"
fi
}
@@ -143,7 +146,7 @@ PRINT_TRAILER()
{
PRINT "*** finished tests in $HOSTNAME ***"
date; TotalEndTime=`SecOfDay`
PRINT "${HOSTNAME}: Ran $n_test $runtest_type, Grand total test time = " \
PRINT "${HOSTNAME}: Ran $n_test($n_pass/$n_fail/$n_fail) $runtest_type, Grand total test time = " \
"`ElapsedTime $TotalStartTime $TotalEndTime`" | tee -a $TIMELOG
PRINT_BLANK
}
@@ -781,7 +784,7 @@ if [ -z "$NOCVS" ]; then
echo ...
tail -$ntaillines $COPYRIGHT_ERR
fi
) | Mail -s "${H5VERSION} Copyrights check Failed" acheng
) | Mail -s "${H5VERSION} Copyrights check Failed" hdf5lib
fi
rm $TMPFILE
PRINT_BLANK
@@ -836,6 +839,9 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then
PRINT " Fork off timekeeper $timelimit"
fi
n_test=0
n_pass=0
n_fail=0
n_skip=0
runtest_type="hosts"
for h in $TESTHOST; do
# Must do CONFIGNAME before $h got changed by the second cut.