lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sh...@apache.org
Subject svn commit: r932878 - in /lucene/dev/trunk/lucene: CHANGES.txt common-build.xml contrib/benchmark/build.xml
Date Sun, 11 Apr 2010 12:18:17 GMT
Author: shaie
Date: Sun Apr 11 12:18:16 2010
New Revision: 932878

URL: http://svn.apache.org/viewvc?rev=932878&view=rev
Log:
LUCENE-1709: force benchmark tests to run sequentially and enable threadsPerProcessor as arg
to ant (default to 1)

Modified:
    lucene/dev/trunk/lucene/CHANGES.txt
    lucene/dev/trunk/lucene/common-build.xml
    lucene/dev/trunk/lucene/contrib/benchmark/build.xml

Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=932878&r1=932877&r2=932878&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Sun Apr 11 12:18:16 2010
@@ -478,6 +478,12 @@ Build
 * LUCENE-2074: Regenerating StandardTokenizerImpl files now needs
   JFlex 1.5 (currently only available on SVN). (Uwe Schindler)
 
+* LUCENE-1709: Tests are now parallelized by default (except for benchmark). You
+  can force them to run sequentially by passing -Drunsequential=1 on the command
+  line. The number of threads that are spwaned per CPU defaults to '1'. If you 
+  wish to change that, you can run the tests with -DthreadsPerProcessor=[num].
+  (Robert Muir, Shai Erera) 
+
 Test Cases
 
 * LUCENE-2037 Allow Junit4 tests in our envrionment (Erick Erickson

Modified: lucene/dev/trunk/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/common-build.xml?rev=932878&r1=932877&r2=932878&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/common-build.xml (original)
+++ lucene/dev/trunk/lucene/common-build.xml Sun Apr 11 12:18:16 2010
@@ -54,7 +54,8 @@
 
   <!-- default arguments to pass to JVM executing tests -->
   <property name="args" value=""/>
-
+  <property name="threadsPerProcessor" value="1" />
+    
   <property name="javac.deprecation" value="off"/>
   <property name="javac.debug" value="on"/>
   <property name="javac.source" value="1.5"/>
@@ -484,7 +485,7 @@
   </target>
 
   <target name="junit-parallel" unless="runsequential">
-    <parallel threadsPerProcessor="2">
+    <parallel threadsPerProcessor="${threadsPerProcessor}">
      <test-macro pattern="A"/>
      <test-macro pattern="B"/>
      <test-macro pattern="C"/>

Modified: lucene/dev/trunk/lucene/contrib/benchmark/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/contrib/benchmark/build.xml?rev=932878&r1=932877&r2=932878&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/contrib/benchmark/build.xml (original)
+++ lucene/dev/trunk/lucene/contrib/benchmark/build.xml Sun Apr 11 12:18:16 2010
@@ -8,6 +8,9 @@
     <import file="../contrib-build.xml"/>
     <property name="working.dir" location="work"/>
 
+    <!-- the tests have some parallel problems -->
+    <property name="runsequential" value="true"/>
+
     <contrib-uptodate name="highlighter" property="highlighter.uptodate" classpath.property="highlighter.jar"/>
     <contrib-uptodate name="icu" property="icu.uptodate" classpath.property="icu.jar"/>
     <!-- analyzers common needs a hack for the jar file: -->



Mime
View raw message