diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-02-06 04:38:57 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-02-06 04:38:57 (GMT) |
commit | 28c1d30212491f307447ed35e5998e42df055db8 (patch) | |
tree | 388b4c5b493bcfd0a8048da5228a816cc2154d13 /bin | |
parent | 3ad685f720ccfac505122fee4f39eecd8c3010c5 (diff) | |
download | hdf5-28c1d30212491f307447ed35e5998e42df055db8.zip hdf5-28c1d30212491f307447ed35e5998e42df055db8.tar.gz hdf5-28c1d30212491f307447ed35e5998e42df055db8.tar.bz2 |
[svn-r3365] Purpose:
Bug fix, feature, cleaning code
Description:
It could not find bin/locate_hdf5.
Solution:
Explicitedly use the bin/locate_hdf5 in the snapshots/current area.
Also, added Usage page to be printed when -h(elp) is asked or when
there is error in command option.
Cleaned some old code no longer used.
Platforms tested:
eirene
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/runtest | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/bin/runtest b/bin/runtest index e9e8098..c582b25 100755 --- a/bin/runtest +++ b/bin/runtest @@ -24,10 +24,6 @@ WHEREAMI='pwd' # the name of this program PROGNAME=bin/runtest -# Email any errors to whom -TOWHOM=${DEBUGMODE:+acheng} -TOWHOM=${TOWHOM:-hdf5lib@ncsa.uiuc.edu} - # Setup HOSTNAME=`hostname | cut -f1 -d.` # no domain part H5DIR=$HOME/HDF5/v_1_3/hdf5 @@ -82,9 +78,6 @@ SUNHOST="arabica baldric" # solaris 2.6 and 2.7 # test directory. ssh does not work for it either. FREEBSDHOST="hawkwind" -# run both serial and parallel for PARALLELHOST -PARALLELHOST="modi4" - # set up default all hosts to test ALLHOSTS="$O2KHOST $SUNHOST $SGIHOST $HPHOST $LINUXHOST $DECHOST $FREEBSDHOST" @@ -237,7 +230,7 @@ RUNSNAPTEST() [ $retcode -ne 0 ] && errcode=$retcode && return $retcode # Track down the HDF4 software - ans=`bin/locate_hdf4` + ans=`$SNAPYARD/current/bin/locate_hdf4` H4_SW=`echo $ans | cut -f1 -d' '` H4_BIN=`echo $ans | cut -f2 -s -d' '` if [ -n "$H4_SW" ]; then @@ -277,14 +270,6 @@ RUNSNAPTEST() } -# Record a type of test requested. Separate new request from -# existing requests by a semicolon (;). -# $1 is the type of test requested -ADD_TEST_TYPE() -{ -echo TEST_TYPES=$TEST_TYPES -} - # configuration parsing. # Taking configuration from input. # This should be invoke with configure file as stdin. @@ -341,6 +326,27 @@ FLUSH_FILES() } +# Show usage page +USAGE() +{ +cat <<EOF +Usage: runtest [-h] [-r<version>] [-all] [<host> ...] + -h + print this help page + -r<version> + do runtest for <version> + -all + launch tests for all pre-defined testing hosts + <host> + launch tests for <host> + +-all and <host> are contradictory and whichever is specified last, is +the one to take effect. If neither are given, do the test for the +local host. +EOF +} + + ################################# # Main ################################# @@ -356,6 +362,10 @@ errcode=0 # error code of the whole test ################################# while [ $# -gt 0 ]; do case "$1" in + -h) # help--show usage + USAGE + exit 0 + ;; -r*) # the version string has a leading _ but not for H5DIR name H5VER="$1" @@ -366,6 +376,11 @@ while [ $# -gt 0 ]; do -all) TESTHOST=$ALLHOSTS ;; + -*) # Unknow option + echo "Unknown option ($1)" + USAGE + exit 1 + ;; *) TESTHOST=$* break |