summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-01-30 06:12:12 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-01-30 06:12:12 (GMT)
commite94edbfbc3b2ad7fd786855c37209c5842a78077 (patch)
tree862da134917ec19fa5325653c98b28ec61f1d36b /bin
parent078c462615c52f6e6dddf9a2f32c5dc511e3fb67 (diff)
downloadhdf5-e94edbfbc3b2ad7fd786855c37209c5842a78077.zip
hdf5-e94edbfbc3b2ad7fd786855c37209c5842a78077.tar.gz
hdf5-e94edbfbc3b2ad7fd786855c37209c5842a78077.tar.bz2
[svn-r3334] Purpose:
New Feature Description: It supports a configure file (snapshots.../snaptest.cfg). Currently, it recognize comment lines (started with #) and the standard configuration. Platforms tested: Eirene (Linux)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/runtest47
1 files changed, 40 insertions, 7 deletions
diff --git a/bin/runtest b/bin/runtest
index 953eecd..8f90e51 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -39,8 +39,12 @@ H5VERSTR= # default to current CVS version
# If srcdir is not used, don't launched multiple tests
SNAPSHOT="${DEBUGMODE:+echo }bin/snapshot"
SRCDIR="srcdir"
-SNAPCMD="$SRCDIR op-configure --enable-stream-vfd op-configure --enable-static-exec test clean"
+# Default standard Snaptest commands
+SNAPCMD="$SRCDIR test clean"
+# Default Standard snaptest command options
+STANDARD_OPT=""
ENABLE_PARALLEL="op-configure --enable-parallel"
+#SNAPCMD="$SRCDIR op-configure --enable-stream-vfd op-configure --enable-static-exec test clean"
#***************
# Various hosts
@@ -195,9 +199,9 @@ CHECK_RSH()
# $*--Types of test being run
RUNSNAPTEST()
{
- SNAPCMD_OPT="" # snapshot test option
+ SNAPCMD_OPT="$STANDARD_OPT" # snapshot test option
SRCDIRNAME=""
- CC_SAVED=$CC
+ CC_SAVED="$CC"
PATH_SAVED=$PATH
export PATH # DEC OSF1 needs to export PATH explicitly
TEST_TYPE=$*
@@ -268,10 +272,34 @@ RUNSNAPTEST()
date >> $LOGFILE
# restore CC, PATH
- CC=$CC_SAVED
+ CC="$CC_SAVED"
PATH=$PATH_SAVED
}
+
+# Snap Test configuration parsing
+SNAPTEST_CONFIG()
+{
+ if [ ! -f $SNAPTESTCFG ]; then
+ return
+ fi
+ while read x y ; do
+ case "$x" in
+ '#') # comment. Continue.
+ ;;
+ standard) #standard configuration
+ STANDARD_OPT="$y"
+ ;;
+ *) # unknown configuration option
+ echo "***Unknown configuration option***"
+ echo $x $y
+ echo "***Ignored***"
+ ;;
+ esac
+ done < $SNAPTESTCFG
+}
+
+
# Flush the AFS files if applicable.
# Hopefully the flushing is done when the tests of this
# host are done rather than when the launching site try
@@ -325,6 +353,8 @@ SNAPYARD=`cd $HOME/snapshots-hdf5${H5VERSTR} && /bin/pwd`
LOGBASENAME=${SNAPYARD}/log/${HOSTNAME}
FAILEDLOG=${SNAPYARD}/log/FAILED_LOG_${TODAY}
CVSLOG=${SNAPYARD}/log/CVS_LOG_${TODAY}
+# Snap Test Configuration file
+SNAPTESTCFG=${SNAPYARD}/snaptest.cfg
#################################
@@ -336,12 +366,15 @@ trap PRINT_TRAILER 0
#
StartTime=`SecOfDay`
-$WHEREAMI
+# Process the configuration
+SNAPTEST_CONFIG
+echo STANDARD_OPT=$STANDARD_OPT
+
# Do a checkout if one has not been done today
# Also check MANIFEST file
if [ ! -f $CVSLOG ]; then
echo Running CVS checkout with output saved in $CVSLOG
- ($WHEREAMI; $SNAPSHOT checkout ) >> $CVSLOG 2>&1
+ ($SNAPSHOT checkout ) >> $CVSLOG 2>&1
errcode=$?
if [ $errcode -ne 0 ]; then
# test failed.
@@ -349,7 +382,7 @@ if [ ! -f $CVSLOG ]; then
exit $errcode
fi
echo Checking MAINFEST file ...
- (cd $SNAPYARD/current; $WHEREAMI; bin/chkmanifest)
+ (cd $SNAPYARD/current; bin/chkmanifest)
errcode=$?
if [ $errcode -ne 0 ]; then
# test failed.