geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1181661 - /geronimo/tck/branches/3.0/jcdi-tck-runner/run-parts.sh
Date Tue, 11 Oct 2011 08:44:53 GMT
Author: rwonly
Date: Tue Oct 11 08:44:53 2011
New Revision: 1181661

URL: http://svn.apache.org/viewvc?rev=1181661&view=rev
Log:
make run-parts.sh work

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=1181661&r1=1181660&r2=1181661&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 Oct 11 08:44:53 2011
@@ -1,17 +1,39 @@
 #!/bin/bash
 
 function cleanprocs {
-    ps ax | grep 'java.*javaagent' | grep -v grep | perl -pe 's/^(\d+).*/$1/' | while read
p; do
-	kill -9 $p
-    done
+#    ps ax | grep 'java.*javaagent' | grep -v grep | perl -pe 's/^(\d+).*/$1/' | while read
p; do
+#	     kill -9 $p
+#    done
+# use simple way to kill geronimo process
+    echo "Kill geronimo process..."
+	ps -ef|grep 'java.*javaagent'
+	ps -ef|grep 'java.*javaagent'|awk '{print $2}'|xargs -i kill -9 {}
 }
 
-for n in {1..7}; do
+export GERONIMO_OPTS=" -Xmx2048m -XX:MaxPermSize=1440m -ea "
 
-    cleanprocs
+dirname=`pwd`
+timestamp=`date +%Y%m%d%H%M`
 
+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
 
+# 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"
+        
+    echo "---------------------End part$n run---------------------"
+    echo .
+    echo .
+    echo .
+    echo .
     cleanprocs
-    
 done
+
+find . -name "*.log"|xargs grep "Time elapsed"  | tee /j2ee/porting/results/jcdi/$timestamp/result.log



Mime
View raw message