[Swift-commit] r4731 - trunk/tests

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Sat Jul 2 17:28:51 CDT 2011


Author: hategan
Date: 2011-07-02 17:28:51 -0500 (Sat, 02 Jul 2011)
New Revision: 4731

Modified:
   trunk/tests/suite.sh
Log:
add ability to specify comman line arguments for a test with "name.args"

Modified: trunk/tests/suite.sh
===================================================================
--- trunk/tests/suite.sh	2011-07-02 18:53:00 UTC (rev 4730)
+++ trunk/tests/suite.sh	2011-07-02 22:28:51 UTC (rev 4731)
@@ -722,6 +722,7 @@
   CHECKSCRIPT=${SWIFTSCRIPT%.swift}.check.sh
   CLEANSCRIPT=${SWIFTSCRIPT%.swift}.clean.sh
   TIMEOUTFILE=${SWIFTSCRIPT%.swift}.timeout
+  ARGSFILE=${SWIFTSCRIPT%.swift}.args
 
   TEST_SHOULD_FAIL=0
   if [ -x $GROUP/$SETUPSCRIPT ]; then
@@ -731,6 +732,11 @@
    html "  "
    html_~td
   fi
+  
+  ARGS=""
+  if [ -f $GROUP/$ARGSFILE ]; then
+  	ARGS=`cat $GROUP/$ARGSFILE`
+  fi
 
   CDM=
   [ -r fs.data ] && CDM="-cdm.file fs.data"
@@ -748,7 +754,7 @@
                        -config swift.properties         \
                        -sites.file sites.xml            \
                        -tc.file tc.data                 \
-                       $CDM $SWIFTSCRIPT
+                       $CDM $SWIFTSCRIPT $ARGS
 
   TEST_SHOULD_FAIL=0
   if [ -x $GROUP/$CHECKSCRIPT ]; then




More information about the Swift-commit mailing list