diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-09-04 18:42:03 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-09-04 18:42:03 (GMT) |
commit | 8fc68d3d4ab6b589c284c2ebcd1be1710e684e3a (patch) | |
tree | 71815c6d301f3fc5b08f7d3dff1f26c0749f92fd /bin | |
parent | bf4e2659d220b75697da48a86bedd64a4b18e6b3 (diff) | |
download | hdf5-8fc68d3d4ab6b589c284c2ebcd1be1710e684e3a.zip hdf5-8fc68d3d4ab6b589c284c2ebcd1be1710e684e3a.tar.gz hdf5-8fc68d3d4ab6b589c284c2ebcd1be1710e684e3a.tar.bz2 |
[svn-r4420] 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-x | bin/runtest | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/runtest b/bin/runtest index 900bf05..ec8733f 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_4/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" |