diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2002-03-06 00:55:31 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2002-03-06 00:55:31 (GMT) |
commit | a3c023c1438e42b50acb176682a8ed1cd924e5c7 (patch) | |
tree | 62d66ddb884a94420ad7d776b83180b1a0162e99 /bin/runtest | |
parent | e95f07dc6b1a58583a31bbf285dee16fe3cc4460 (diff) | |
download | hdf5-a3c023c1438e42b50acb176682a8ed1cd924e5c7.zip hdf5-a3c023c1438e42b50acb176682a8ed1cd924e5c7.tar.gz hdf5-a3c023c1438e42b50acb176682a8ed1cd924e5c7.tar.bz2 |
[svn-r5034] Purpose:
New feature
Description:
Replacing the hardcoding of default version for snapshot test
to a file, bin/snapshot_version. This way, runtest and snapshot
can be version neutral. Makes maintenance easier.
Platforms tested:
eirene.
Diffstat (limited to 'bin/runtest')
-rwxr-xr-x | bin/runtest | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/bin/runtest b/bin/runtest index 01d5113..3447b10 100755 --- a/bin/runtest +++ b/bin/runtest @@ -25,11 +25,10 @@ PROGNAME="bin/runtest $DEBUGMODE" # Setup 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 +H5VERSION= # default to current CVS version # Default to do checkout (only once) and test, no release. # If srcdir is not used, don't launched multiple tests @@ -470,11 +469,8 @@ while [ $# -gt 0 ]; do PRINT "******** DEBUGMODE is $DEBUGMODE ************" ;; -r*) - # the version string has a leading _ but not for H5DIR name + # version string H5VER="$1" - H5VERSTR=_`echo $H5VER | sed -e s/-r// -e s/\\\./_/g` - H5DIR=$HOME/HDF5/v$H5VERSTR/hdf5 - PROGNAME="$PROGNAME $H5VER" ;; -all) # Test all hosts. @@ -497,11 +493,25 @@ while [ $# -gt 0 ]; do shift done +# setup H5VER if not set yet +if [ -z "$H5VER" -a -f bin/snapshot_version ] +then + . bin/snapshot_version +fi + +if [ -n "$H5VER" ] +then + H5VERSION=hdf5_`echo $H5VER | sed -e s/-r// -e s/\\\./_/g` + PROGNAME="$PROGNAME $H5VER" +else + H5VERSION=hdf5 +fi + ################################# # Setup snapshot test directories ################################# # Show the real physical path rather than the symbolic path -SNAPYARD=`cd $HOME/snapshots-hdf5${H5VERSTR} && /bin/pwd` +SNAPYARD=`cd $HOME/snapshots-${H5VERSION} && /bin/pwd` # Log file basename LOGBASENAME=${SNAPYARD}/log/${HOSTNAME} PASSEDLOG=${SNAPYARD}/log/PASSED_LOG_${TODAY} |