geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1023291 - in /geronimo/tck/branches/3.0: jaxb-tck-runner/run.sh stax-tck-runner/run.sh
Date Sat, 16 Oct 2010 14:26:20 GMT
Author: genspring
Date: Sat Oct 16 14:26:20 2010
New Revision: 1023291

URL: http://svn.apache.org/viewvc?rev=1023291&view=rev
Log:
modify scripts  for AHP automation setup

Modified:
    geronimo/tck/branches/3.0/jaxb-tck-runner/run.sh
    geronimo/tck/branches/3.0/stax-tck-runner/run.sh

Modified: geronimo/tck/branches/3.0/jaxb-tck-runner/run.sh
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/jaxb-tck-runner/run.sh?rev=1023291&r1=1023290&r2=1023291&view=diff
==============================================================================
--- geronimo/tck/branches/3.0/jaxb-tck-runner/run.sh (original)
+++ geronimo/tck/branches/3.0/jaxb-tck-runner/run.sh Sat Oct 16 14:26:20 2010
@@ -38,11 +38,16 @@ startAgent() {
 }
 
 runTests() {
-  TEST_ID=test-$$
 
-  echo "Running Tests. Test directory is: $TEST_ID"
+if [ "x$1" = "x" ]; then
+       TEST_DIR=./target/test-$$
+    else
+       TEST_DIR=./target/$1
+fi
 
-  java -jar $JAXB_HOME/lib/javatest.jar -config ./target/test-classes/jaxb.jti -workdir -create
./target/$TEST_ID -testSuite $JAXB_HOME -set jck.env.jaxb.testExecute.cmdAsFile $JAVA_HOME/bin/java
-startAgentPool -excludeList $JAXB_HOME/lib/jaxb_tck22.jtx -verbose -runtests -writereport
./target/$TEST_ID/report
+  echo "Running Tests. Test directory is: $TEST_DIR"
+
+  java -jar $JAXB_HOME/lib/javatest.jar -config ./target/test-classes/jaxb.jti -workdir -create
$TEST_DIR -testSuite $JAXB_HOME -set jck.env.jaxb.testExecute.cmdAsFile $JAVA_HOME/bin/java
-startAgentPool -excludeList $JAXB_HOME/lib/jaxb_tck22.jtx -verbose -runtests -writereport
$TEST_DIR/report
 
 }
 
@@ -58,5 +63,5 @@ trap control_c 2
 
 init $1
 startAgent
-runTests
+runTests $2
 stopAgent

Modified: geronimo/tck/branches/3.0/stax-tck-runner/run.sh
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/stax-tck-runner/run.sh?rev=1023291&r1=1023290&r2=1023291&view=diff
==============================================================================
--- geronimo/tck/branches/3.0/stax-tck-runner/run.sh (original)
+++ geronimo/tck/branches/3.0/stax-tck-runner/run.sh Sat Oct 16 14:26:20 2010
@@ -8,7 +8,7 @@ fi
 STAX_HOME=$STAX_HOME/com/bea/ts
 BASE_DIR=$PWD
 
-mvn install -q -DskipTests=true
+mvn install -q -DskipTests=true $1
 if [ "$?" -ne 0 ]; then echo "Error pulling in STAX dependencies"; exit 1; fi
 
 STAX_CLASSPATH=
@@ -30,7 +30,12 @@ do
   fi
 done
 
-TEST_DIR=$BASE_DIR/target/test-$$
+
+if [ "x$2" = "x" ]; then
+	TEST_DIR=$BASE_DIR/target/test-$$
+    else
+	TEST_DIR=$BASE_DIR/target/$2
+fi
 
 echo "Running Tests. Test directory is: $TEST_DIR"
 



Mime
View raw message