summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-07-17 14:32:13 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-07-17 14:32:13 (GMT)
commit53f425a0013652f9ef6fd5bf33cf81ee72fb780d (patch)
tree5282a9ddea591928b9d72b062e142757bc86f2fa /bin
parentf594637c839347faad08107642893db1ef526cb2 (diff)
downloadhdf5-53f425a0013652f9ef6fd5bf33cf81ee72fb780d.zip
hdf5-53f425a0013652f9ef6fd5bf33cf81ee72fb780d.tar.gz
hdf5-53f425a0013652f9ef6fd5bf33cf81ee72fb780d.tar.bz2
[svn-r4227] Purpose:
Feature Description: Added the feature that ALLHOSTS can be set via the file allhostfile in the snapshot directory. This reduces the need to modify runtest for hosts changes. Platforms tested: eirene (did dry runs).
Diffstat (limited to 'bin')
-rwxr-xr-xbin/runtest15
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/runtest b/bin/runtest
index a014cc8..ca62f01 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -456,7 +456,8 @@ while [ $# -gt 0 ]; do
PROGNAME="$PROGNAME $H5VER"
;;
-all)
- TESTHOST=$ALLHOSTS
+ # cannot assign ALLHOSTS yet.
+ TESTHOST=-all
;;
-nocvs)
# do not do cvs commands
@@ -490,6 +491,18 @@ SNAPTESTCFG=${SNAPYARD}/snaptest.cfg
#################################
+# Setup test host(s)
+#################################
+ALLHOSTSFILE=${SNAPYARD}/allhostfile
+if [ -f $ALLHOSTSFILE ]; then
+ ALLHOSTS=`grep -v '#' $ALLHOSTSFILE`
+fi
+if [ "$TESTHOST" = -all ]; then
+ TESTHOST=$ALLHOSTS
+fi
+
+
+#################################
# Setup to print a trailer summary when exiting not via
# the normal end of the script.
#################################