summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-09-04 18:42:06 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-09-04 18:42:06 (GMT)
commit1e3185431d8258625203577de60d2f437888c24c (patch)
treef19a9a01842fbe931fde4063e160b2564b5daf57 /bin
parenta34af05801f3eceadd03ff00eba560c7aaccdf35 (diff)
downloadhdf5-1e3185431d8258625203577de60d2f437888c24c.zip
hdf5-1e3185431d8258625203577de60d2f437888c24c.tar.gz
hdf5-1e3185431d8258625203577de60d2f437888c24c.tar.bz2
[svn-r4421] Description:
Added a new feature that allows an test configure runs on a certain day of the week (Mon, ..., Sun) Platforms tested: eirene.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/runtest15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/runtest b/bin/runtest
index 0be4155..9531e98 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -28,6 +28,7 @@ PROGNAME="bin/runtest $DEBUGMODE"
HOSTNAME=`hostname | cut -f1 -d.` # no domain part
H5DIR=$HOME/HDF5/v_1_5/hdf5
TODAY=`date +%y%m%d`
+WEEKDAY=`date +%a`
H5VER= # default to current CVS version
H5VERSTR= # default to current CVS version
@@ -357,13 +358,27 @@ RUNSNAPTEST()
# configuration parsing.
# Taking configuration from input.
# This should be invoke with configure file as stdin.
+# Syntax of the configure file:
+# All lines started with the # are comment lines and are ignored.
+# standard ... # what the standard configure options are.
+# type of tests for individual host.
+# <host>: <test> Do <test> for <host>
+# all: <test> Do <test> for all hosts.
+# <weekday>/... Use this configure if the <weekday> matches.
+# <weekday> can be {Mon,Tue,Wed,Thu,Fri,Sat,Sun}
+# If no <host>: input for a <host>, the standard test is assumed.
SNAPTEST_CONFIG_PARSE()
{
while read x y ; do
+ # Scan for entry for this weekday.
+ x=`echo $x | sed -e s%^$WEEKDAY/%%`
case "$x" in
'#'*)
# comment. Continue.
;;
+ ???/*)
+ # Ignore any entry not of this weekday.
+ ;;
standard)
#standard configuration
STANDARD_OPT="$y"