summaryrefslogtreecommitdiffstats
path: root/bin/runtest
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-09-25 21:48:51 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-09-25 21:48:51 (GMT)
commit74c322019f4c2731a014406dac44322891d3657c (patch)
tree1c2a8608b998e014d73dcbda83ffa318ed105b87 /bin/runtest
parent28776d10760a6904933dd9c554660bc255794186 (diff)
downloadhdf5-74c322019f4c2731a014406dac44322891d3657c.zip
hdf5-74c322019f4c2731a014406dac44322891d3657c.tar.gz
hdf5-74c322019f4c2731a014406dac44322891d3657c.tar.bz2
[svn-r9319] Purpose:
Feature Description: Added code to support the -configname feature. Platforms tested: no h5committest which does not test this command. ran it by hand in eirene comparing tg-login1 and tg-login2. Misc. update:
Diffstat (limited to 'bin/runtest')
-rwxr-xr-xbin/runtest8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/runtest b/bin/runtest
index 9382c54..988981c 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -742,6 +742,11 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then
n_test=0
runtest_type="hosts"
for h in $TESTHOST; do
+ # Must do CONFIGNAME before $h got changed by the second cut.
+ # cut returns the whole string if there is no / in the string
+ # at all. But that works okay for the CONFIGNAME too.
+ CONFIGNAME=`echo $h | cut -f2 -d/`
+ h=`echo $h | cut -f1 -d/`
n_test=`expr $n_test + 1`
TMP_OUTPUT="#$h.out"
(PRINT "=============="
@@ -751,7 +756,7 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then
# run the remote shell command with output to $TMP_OUTPUT
case "$RSH" in
rsh|ssh)
- CMD="$RSH $h -n $PROGNAME -configname $h"
+ CMD="$RSH $h -n $PROGNAME -configname $CONFIGNAME"
PRINT $CMD
# kludge: some how eirene and houdin can not have
# rsh connections too close. wait a few seconds
@@ -778,6 +783,7 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then
# wait for all launched tests to finish, then cat them back out.
wait
for h in $TESTHOST; do
+ h=`echo $h | cut -f1 -d/`
TMP_OUTPUT="#$h.out"
cat $TMP_OUTPUT
# Verify test script did complete by checking the last lines