summaryrefslogtreecommitdiffstats
path: root/bin/runtest
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-10-19 05:20:44 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-10-19 05:20:44 (GMT)
commit7e76f7b0d17557fea7bc2a7e78e8b459574076da (patch)
tree0f50bd4c903018ee0fdfaa2bb505513577e5db29 /bin/runtest
parent3b2053492a7bb326c118633ad5e5d50985b7bf2b (diff)
downloadhdf5-7e76f7b0d17557fea7bc2a7e78e8b459574076da.zip
hdf5-7e76f7b0d17557fea7bc2a7e78e8b459574076da.tar.gz
hdf5-7e76f7b0d17557fea7bc2a7e78e8b459574076da.tar.bz2
[svn-r4556] Purpose:
Feature (actually a kludge) Description: The old "setenv" option for the snaptest.cfg cannot handle if there are white spaces in the setenv value part. Added a "setenv2" that expects the value consists of 2 parts. A better solution (like can parse in double quoted values) is needed. Platforms tested: eirene with houdin (solaris 2.7)
Diffstat (limited to 'bin/runtest')
-rwxr-xr-xbin/runtest9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/runtest b/bin/runtest
index 7d12481..0813062 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -317,6 +317,15 @@ RUNSNAPTEST()
export $1
shift
;;
+ setenv2)
+ # set environment variable with 2 values
+ # a kludge now--the extra single quotes are needed
+ # else eval complains.
+ shift
+ eval $1="'$2 $3'"
+ export $1
+ shift; shift
+ ;;
*) # unknown test
PRINT "$0: unknown type of test ($1)"
retcode=1