Skip to content

Apache Lucene open-source search software

LUCENE-4217: Make it easier to configure clover by adding correct test properties / mem size automatically

Uwe Schindlerbf7a69fe16bc
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index d6fbabb4fbd..160b2f239e6 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -95,7 +95,17 @@
<property name="tests.asserts.gracious" value="false"/>
<property name="tests.verbose" value="false"/>
<property name="tests.infostream" value="${tests.verbose}"/>
+
+ <condition property="tests.heapsize" value="768M">
+ <isset property="run.clover"/>
+ </condition>
<property name="tests.heapsize" value="512M"/>
+
+ <condition property="tests.clover.args" value="-XX:ReservedCodeCacheSize=128m">
+ <isset property="run.clover"/>
+ </condition>
+ <property name="tests.clover.args" value=""/>
+
<property name="tests.tempDir" value="${build.dir}/test"/>
<property name="tests.cachefile" location="${common.dir}/tools/junit4/cached-timehints.txt" />
@@ -788,6 +798,7 @@
<!-- JVM arguments and system properties. -->
<jvmarg line="${args}"/>
+ <jvmarg line="${tests.clover.args}"/>
<!-- set the number of times tests should run -->
<sysproperty key="tests.iters" value="${tests.iters}"/>