Skip to content

Apache Lucene open-source search software

LUCENE-3808: rename tests.threadspercpu into tests.jvms.

Dawid Weiss2df0423244dd
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index 714c1f6bf60..5eb0c8790a0 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -77,7 +77,7 @@
<property name="args" value=""/>
<property name="tests.seed" value="" />
- <property name="tests.threadspercpu" value="auto" />
+ <property name="tests.jvms" value="auto" />
<property name="tests.multiplier" value="1" />
<property name="tests.codec" value="random" />
<property name="tests.postingsformat" value="random" />
@@ -891,12 +891,12 @@ ant -Dtests.slow=[false] - slow tests (@Slow)
#
# Run sequentially (one slave JVM).
-ant -Dtests.threadspercpu=1 test
+ant -Dtests.jvms=1 test
# Run with more slave JVMs than the default.
# Don't count hypercores for CPU-intense tests.
# Make sure there is enough RAM to handle child JVMs.
-ant -Dtests.threadspercpu=8 test
+ant -Dtests.jvms=8 test
# Use repeatable suite order on slave JVMs (disables job stealing).
ant -Dtests.dynamicAssignmentRatio=0 test
@@ -944,7 +944,7 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites
jars so we just order it after compile-test to ensure that -->
<target name="test" depends="compile-test,install-junit4-taskdef,validate" description="Runs unit tests">
<mkdir dir="${junit.output.dir}"/>
- <test-macro threadNum="${tests.threadspercpu}" />
+ <test-macro threadNum="${tests.jvms}" />
</target>
<!--
diff --git a/modules/analysis/uima/build.xml b/modules/analysis/uima/build.xml
index 0438d6a3e1a..c56b80db4b2 100644
--- a/modules/analysis/uima/build.xml
+++ b/modules/analysis/uima/build.xml
@@ -26,7 +26,7 @@
<property name="build.dir" location="../build/uima" />
<property name="dist.dir" location="../dist/uima" />
<property name="tests.userdir" value="src/test-files"/>
- <property name="tests.threadspercpu" value="0" />
+ <property name="tests.jvms" value="1" />
<path id="uimajars">
<pathelement path="lib/uimaj-core-2.3.1.jar"/>
diff --git a/modules/benchmark/build.xml b/modules/benchmark/build.xml
index c9bfcbf3257..000ac958331 100644
--- a/modules/benchmark/build.xml
+++ b/modules/benchmark/build.xml
@@ -31,7 +31,7 @@
<property name="working.dir" location="work"/>
<!-- the tests have some parallel problems -->
- <property name="tests.threadspercpu" value="0"/>
+ <property name="tests.jvms" value="1"/>
<target name="check-files">
<available file="temp/news20.tar.gz" property="news20.exists"/>
diff --git a/solr/contrib/dataimporthandler/build.xml b/solr/contrib/dataimporthandler/build.xml
index 991337e4ce1..8244b8d3c94 100644
--- a/solr/contrib/dataimporthandler/build.xml
+++ b/solr/contrib/dataimporthandler/build.xml
@@ -24,7 +24,7 @@
</description>
<!-- the tests have some parallel problems: writability to single copy of dataimport.properties -->
- <property name="tests.threadspercpu" value="0"/>
+ <property name="tests.jvms" value="1"/>
<import file="../contrib-build.xml"/>