diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2003-08-28 04:41:11 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2003-08-28 04:41:11 (GMT) |
commit | b89fbdd877c687edb489d02f5f286a33e9af251f (patch) | |
tree | 69ab6672f01bd5b3cdadad7aa894b43e2b63ee8e /bin/runtest | |
parent | 42d84aa44fe19a20271008a853c175c1cc26fc70 (diff) | |
download | hdf5-b89fbdd877c687edb489d02f5f286a33e9af251f.zip hdf5-b89fbdd877c687edb489d02f5f286a33e9af251f.tar.gz hdf5-b89fbdd877c687edb489d02f5f286a33e9af251f.tar.bz2 |
[svn-r7425] Purpose:
new feature
Description:
Added a new option of "setenvN" which does
set environment variable with $1 values
e.g., setenvN 3 x a b c is same as setenv x="a b c".
Platforms tested:
No h5committest. Tested by hand in copper.
Misc. update:
Diffstat (limited to 'bin/runtest')
-rwxr-xr-x | bin/runtest | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/runtest b/bin/runtest index a8ae9fe..d746676 100755 --- a/bin/runtest +++ b/bin/runtest @@ -324,6 +324,25 @@ RUNSNAPTEST() export $1 shift; shift; shift ;; + setenvN) + # set environment variable with $1 values + # e.g., setenvN 3 x a b c is same as setenv x="a b c". + # a kludge now--the extra single quotes are needed + # else eval complains. + shift + envN=$1 + shift + envname=$1 + envalue= + while test $envN -gt 0; do + shift + envalue="$envalue $1" + envN=`expr $envN - 1` + done + eval $envname="'$envalue'" + export $envname + export + ;; skip) # skip this test skiptest=yes |