[Swift-commit] r6633 - branches/release-0.94/tests
yadunandb at ci.uchicago.edu
yadunandb at ci.uchicago.edu
Wed Jul 10 15:03:41 CDT 2013
Author: yadunandb
Date: 2013-07-10 15:03:40 -0500 (Wed, 10 Jul 2013)
New Revision: 6633
Modified:
branches/release-0.94/tests/suite.sh
Log:
Updated suite.sh to allow a file to source in environment variable for the entire run
Modified: branches/release-0.94/tests/suite.sh
===================================================================
--- branches/release-0.94/tests/suite.sh 2013-07-10 18:58:38 UTC (rev 6632)
+++ branches/release-0.94/tests/suite.sh 2013-07-10 20:03:40 UTC (rev 6633)
@@ -18,6 +18,7 @@
printf "\t -v Verbose (set -x, HTML comments) \n"
printf "\t -l Stress level < 1/ 2/ 3/ 4> \n"
printf "\t -o output Location for cog and output \n"
+ printf "\t -z file Set environment for entire run \n"
printf "\t <GROUP> GROUP argument \n"
}
@@ -86,6 +87,9 @@
-l)
STRESS=$2
shift 2;;
+ -z)
+ ENV_FILE=$2
+ shift 2;;
-v)
VERBOSE=1
shift;;
@@ -116,6 +120,13 @@
fi
export STRESS="S$STRESS"
+if [ -x "$ENV_FILE" ]
+then
+ source $ENV_FILE
+else
+ echo "Could not load $ENV_FILE"
+fi
+
# Iterations per test (may want to run each test multiple times?)
ITERS_LOCAL=1
More information about the Swift-commit
mailing list