summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-06-06 03:57:39 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-06-06 03:57:39 (GMT)
commit735dd552beb7b8939d3e03c03b09b19de2452c89 (patch)
treef757205122c6417f39da74eb8f7e88a3dc99344a /bin
parent9bee7bdb2bc2b99c1089797a857b7c54f5124561 (diff)
downloadhdf5-735dd552beb7b8939d3e03c03b09b19de2452c89.zip
hdf5-735dd552beb7b8939d3e03c03b09b19de2452c89.tar.gz
hdf5-735dd552beb7b8939d3e03c03b09b19de2452c89.tar.bz2
[svn-r3965] Purpose:
new feature Description: added the command option of "setenv x y" for setting environment variable x=y. Platforms tested: Eirene
Diffstat (limited to 'bin')
-rwxr-xr-xbin/runtest7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/runtest b/bin/runtest
index f21dedd..a014cc8 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -290,6 +290,13 @@ RUNSNAPTEST()
SNAPCMD_OPT="$SNAPCMD_OPT $1 $2"
shift; shift
;;
+ setenv)
+ # set environment variable
+ shift
+ eval $1="$2"
+ export $1
+ shift; shift
+ ;;
*) # unknown test
echo "$0: unknown type of test ($1)"
retcode=1