mirror of https://github.com/apache/lucene.git
LUCENE-1709: force benchmark tests to run sequentially and enable threadsPerProcessor as arg to ant (default to 1)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@932878 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
287d4a657d
commit
9992282d53
|
@ -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
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
|
||||
<!-- 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"/>
|
||||
|
@ -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"/>
|
||||
|
|
|
@ -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: -->
|
||||
|
|
Loading…
Reference in New Issue