geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r1297333 - /geronimo/tck/branches/3.0/jcdi-tck-runner/run-parts.sh
Date Tue, 06 Mar 2012 03:13:34 GMT
Author: xiaming
Date: Tue Mar  6 03:13:34 2012
New Revision: 1297333

URL: http://svn.apache.org/viewvc?rev=1297333&view=rev
Log:
Sync run-parts.sh scripts for 3.0

Modified:
    geronimo/tck/branches/3.0/jcdi-tck-runner/run-parts.sh

Modified: geronimo/tck/branches/3.0/jcdi-tck-runner/run-parts.sh
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/jcdi-tck-runner/run-parts.sh?rev=1297333&r1=1297332&r2=1297333&view=diff
==============================================================================
--- geronimo/tck/branches/3.0/jcdi-tck-runner/run-parts.sh (original)
+++ geronimo/tck/branches/3.0/jcdi-tck-runner/run-parts.sh Tue Mar  6 03:13:34 2012
@@ -13,20 +13,30 @@ function cleanprocs {
 export GERONIMO_OPTS=" -Xmx2048m -XX:MaxPermSize=1440m -ea "
 
 dirname=`pwd`
-timestamp=`date +%Y%m%d%H%M`
+echo ">>>>>>>>>>>>>>scripts working dir=$dirname"
+repodir=$dirname/../../repository
+if [ -d $repodir ] ; then
+    echo ">>>>>>>>>>>>>>>>Maven local repository=$repodir"
+else
+    repodir="$HOME/.m2/repository"
+    echo  ">>>>>>>>>>>>>>>>Maven local repository=$repodir"
+fi
+#timestamp=`date +%Y%m%d%H%M`
+
+rm -rf $dirname/results
+mkdir $dirname/results
 
 for n in {1..7}; do
     echo "---------------------Start part$n run---------------------"
 	
     cleanprocs
-    rm build-part$n.log
-    mvn clean test -o -Dgeronimo-assembly -Dincontainer -DassemblyId=tomcat7-javaee6 -Dreleased
-DtckTests=tck-tests-released-part$n.xml | tee build-part$n.log
+    rm -rf $dirname/results/build-part$n.log
+    mvn clean test -Dmaven.repo.local=$repodir -Dgeronimo-assembly -Dincontainer -DassemblyId=tomcat7-javaee6
-Dreleased -DtckTests=tck-tests-released-part$n.xml | tee $dirname/results/build-part$n.log
 
 # save results
-    mkdir -p /j2ee/porting/results/jcdi/$timestamp/part$n
-    mv $dirname/target/surefire-reports /j2ee/porting/results/jcdi/$timestamp/part$n
-    cp $dirname/build-part$n.log /j2ee/porting/results/jcdi/$timestamp/
-    echo "Results saved to /j2ee/porting/results/jcdi/$timestamp"
+    mkdir -p $dirname/results/part$n
+    mv $dirname/target/surefire-reports $dirname/results/part$n
+    echo "Results saved to $dirname/results/part$n"
         
     echo "---------------------End part$n run---------------------"
     echo .
@@ -36,4 +46,4 @@ for n in {1..7}; do
     cleanprocs
 done
 
-find . -name "*.log"|xargs grep "Time elapsed"  | tee /j2ee/porting/results/jcdi/$timestamp/result.log
+find . -name "*.log"|xargs grep "Time elapsed"  | tee $dirname/results/summary.log



Mime
View raw message