summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2006-01-08 05:04:47 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2006-01-08 05:04:47 (GMT)
commitc8f5be4e3cc18ac9883dcd2a4ed3591ca978461c (patch)
tree9d137d9f2cb9256c9b3c821813c6af6b93ccb790
parent6ba811adcfb0d0c1dd0cf151020caa3c627f7a7a (diff)
downloadhdf5-c8f5be4e3cc18ac9883dcd2a4ed3591ca978461c.zip
hdf5-c8f5be4e3cc18ac9883dcd2a4ed3591ca978461c.tar.gz
hdf5-c8f5be4e3cc18ac9883dcd2a4ed3591ca978461c.tar.bz2
[svn-r11868] Purpose:
Feature. Description: Added counters for number of tests passed, failed and skipped. Platforms tested: Will be tested by daily test.
-rwxr-xr-xbin/runtest10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/runtest b/bin/runtest
index bd620a1..e3b3f71 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -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.