From 612765e5d435a134250f6c9fd6ad3515c9378976 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Sun, 25 Feb 2001 16:23:55 -0500 Subject: [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. --- bin/runtest | 21 ++++++++++++--------- 1 file 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 <] [-all] [ ...] +Usage: runtest [-h] [-debug] [-r] [-all] [ ...] -h print this help page -r do runtest for + -debug + turn on debug mode -all launch tests for all pre-defined testing hosts @@ -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" -- cgit v0.12