summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-06-06 03:57:35 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-06-06 03:57:35 (GMT)
commit9cf66905ff55467ee241f1e6797ecd982b312d13 (patch)
tree2cb29918c93733b3a05ca463e4c5bc76de808569 /bin
parentdf707fb967a142aa7370001ec92eb673ece79b67 (diff)
downloadhdf5-9cf66905ff55467ee241f1e6797ecd982b312d13.zip
hdf5-9cf66905ff55467ee241f1e6797ecd982b312d13.tar.gz
hdf5-9cf66905ff55467ee241f1e6797ecd982b312d13.tar.bz2
[svn-r3964] 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 35ec892..9ec4518 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