You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2012/07/14 12:11:50 UTC
svn commit: r1361512 - /lucene/dev/trunk/lucene/common-build.xml
Author: uschindler
Date: Sat Jul 14 10:11:50 2012
New Revision: 1361512
URL: http://svn.apache.org/viewvc?rev=1361512&view=rev
Log:
LUCENE-4217: Make it easier to configure clover by adding correct test properties / mem size automatically
Modified:
lucene/dev/trunk/lucene/common-build.xml
Modified: lucene/dev/trunk/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/common-build.xml?rev=1361512&r1=1361511&r2=1361512&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/common-build.xml (original)
+++ lucene/dev/trunk/lucene/common-build.xml Sat Jul 14 10:11:50 2012
@@ -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}"/>