summaryrefslogtreecommitdiffstats
path: root/bin/runtest
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-03-26 23:08:24 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-03-26 23:08:24 (GMT)
commit4857e382ba0edab048a13357de85a04c503fab15 (patch)
tree44250a16c44134b6bdfd785207b4d03d03eb45bd /bin/runtest
parent6cfa419f9a1b458f12661cff15ac069a038a15e6 (diff)
downloadhdf5-4857e382ba0edab048a13357de85a04c503fab15.zip
hdf5-4857e382ba0edab048a13357de85a04c503fab15.tar.gz
hdf5-4857e382ba0edab048a13357de85a04c503fab15.tar.bz2
[svn-r6523] Purpose:
Bug fix. Description: n_test must be inited to 1 when it is for tests within one machine. Undid my previous mistake. Platforms tested: Eirene. Did not do the h5committest because this is a script and if it works in one machine, it most like will work in all Unix platform. Misc. update:
Diffstat (limited to 'bin/runtest')
-rwxr-xr-xbin/runtest9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/runtest b/bin/runtest
index c2e1af7..76e7262 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -319,7 +319,7 @@ RUNSNAPTEST()
esac
shift
done
-echo CC=$CC, PATH=$PATH
+
if [ $retcode -ne 0 -o $skiptest = yes ]; then
errcode=$retcode
return $retcode
@@ -716,10 +716,11 @@ fi
# If -s is used with the first field, it will suppress completely
# a $TYPE_TYPES that has no ';' (only 1 tst ). That results in no
# test at all.
+# Note that n_test must start as 1.
#
-n_test=0
+n_test=1
runtest_type="tests"
-TEST="`echo $TEST_TYPES | cut -f1 -d';'`"
+TEST="`echo $TEST_TYPES | cut -f$n_test -d';'`"
while [ -n "$TEST" ]; do
StartTime=`SecOfDay`
RUNSNAPTEST $TEST
@@ -729,6 +730,8 @@ while [ -n "$TEST" ]; do
n_test=`expr $n_test + 1`
TEST="`echo $TEST_TYPES | cut -f$n_test -s -d';'`"
done
+# dec n_test to show the actual number of tests ran.
+n_test=`expr $n_test - 1`
FLUSH_FILES