summaryrefslogtreecommitdiffstats
path: root/bin/runtest
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-02-25 21:23:55 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-02-25 21:23:55 (GMT)
commit612765e5d435a134250f6c9fd6ad3515c9378976 (patch)
tree2573c09f8fdaf7a3f5014b045e86b19fdb67577b /bin/runtest
parentfb9a8ee1598c4fdf237638056ec7802b9de497b5 (diff)
downloadhdf5-612765e5d435a134250f6c9fd6ad3515c9378976.zip
hdf5-612765e5d435a134250f6c9fd6ad3515c9378976.tar.gz
hdf5-612765e5d435a134250f6c9fd6ad3515c9378976.tar.bz2
[svn-r3516] Purpose:
New feature Description: Added a -debug line option and will pass it to other runtest invoked. Removed the restriction of running one test per host. This way, tests of different tests (e.g., with or without fortran) can be run per host with all output saved in one log file. Platforms tested: Tried several runs of daily test.
Diffstat (limited to 'bin/runtest')
-rwxr-xr-xbin/runtest21
1 files changed, 12 insertions, 9 deletions
diff --git a/bin/runtest b/bin/runtest
index 83279e4..df25a70 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -22,7 +22,7 @@ test -n "$DEBUGMODE" && echo "******** DEBUGMODE is $DEBUGMODE ************"
WHEREAMI='pwd'
# the name of this program
-PROGNAME=bin/runtest
+PROGNAME="bin/runtest $DEBUGMODE"
# Setup
HOSTNAME=`hostname | cut -f1 -d.` # no domain part
@@ -249,14 +249,8 @@ RUNSNAPTEST()
SNAPCMD_OPT="$SNAPCMD_OPT srcdirname ${SRCDIRNAME}"
fi
- # If LOGFILE already exists, it means this host has been tested today.
- # Do at most one run per day.
+ # Setup log file name to save test output
LOGFILE=${LOGBASENAME}${SRCDIRNAME}_${TODAY}
- if [ -f $LOGFILE ]; then
- echo LOGFILE $LOGFILE exists. No more run today.
- retcode=1 && errcode=$retcode && return $retcode
- fi
-
echo Running snapshot with output saved in $LOGFILE
(date; echo Hostname=$HOSTNAME) >> $LOGFILE
@@ -335,11 +329,13 @@ FLUSH_FILES()
USAGE()
{
cat <<EOF
-Usage: runtest [-h] [-r<version>] [-all] [<host> ...]
+Usage: runtest [-h] [-debug] [-r<version>] [-all] [<host> ...]
-h
print this help page
-r<version>
do runtest for <version>
+ -debug
+ turn on debug mode
-all
launch tests for all pre-defined testing hosts
<host>
@@ -371,6 +367,13 @@ while [ $# -gt 0 ]; do
USAGE
exit 0
;;
+ -debug*)
+ # set debug mode
+ DEBUGMODE="$1"
+ SNAPSHOT="echo bin/snapshot"
+ PROGNAME="$PROGNAME $DEBUGMODE"
+ echo "******** DEBUGMODE is $DEBUGMODE ************"
+ ;;
-r*)
# the version string has a leading _ but not for H5DIR name
H5VER="$1"