summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/runtest19
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