You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2012/06/27 14:48:04 UTC

svn commit: r1354474 - /lucene/dev/branches/branch_4x/lucene/common-build.xml

Author: dweiss
Date: Wed Jun 27 12:48:03 2012
New Revision: 1354474

URL: http://svn.apache.org/viewvc?rev=1354474&view=rev
Log:
LUCENE-4168: Allow storing test execution statistics in an external file.

Modified:
    lucene/dev/branches/branch_4x/lucene/common-build.xml

Modified: lucene/dev/branches/branch_4x/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/common-build.xml?rev=1354474&r1=1354473&r2=1354474&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/common-build.xml (original)
+++ lucene/dev/branches/branch_4x/lucene/common-build.xml Wed Jun 27 12:48:03 2012
@@ -96,6 +96,9 @@
   <property name="tests.infostream" value="${tests.verbose}"/>
   <property name="tests.heapsize" value="512M"/>
 
+  <property name="tests.cachefile" location="${common.dir}/tools/junit4/cached-timehints.txt" />
+  <property name="tests.cachefilehistory" value="20" />
+
   <!-- Override these in your local properties to your desire. -->
   <!-- Show simple class names (no package) in test suites. -->
   <property name="tests.useSimpleNames" value="false" />
@@ -669,12 +672,11 @@
   </macrodef>
 
   <target name="test-updatecache" description="Overwrite tests' timings cache for balancing." depends="install-junit4-taskdef">
-    <mergehints file="${common.dir}/tools/junit4/cached-timehints.txt">
+    <touch file="${tests.cachefile}" mkdirs="true" verbose="false" />
+    <mergehints file="${tests.cachefile}" historyLength="${tests.cachefilehistory}">
       <resources>
         <!-- The order is important. Include previous stats first, then append new stats. -->
-        <fileset dir="${common.dir}/tools/junit4">
-          <include name="*.txt" />
-        </fileset>
+        <file file="${tests.cachefile}" />
         <fileset dir="${common.dir}/..">
           <include name="**/tests-timehints.txt" />
           <exclude name="lucene/tools/junit4/**" />