Apache Lucene open-source search software
LUCENE-4168: Allow storing test execution statistics in an external file.
Dawid Weiss21f39d3e1e23
diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex 539d626b393..62914a2815b 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -95,7 +95,10 @@<property name="tests.verbose" value="false"/><property name="tests.infostream" value="${tests.verbose}"/><property name="tests.heapsize" value="512M"/>- <property name="tests.tempDir" value="${build.dir}/test"/>+ <property name="tests.tempDir" value="${build.dir}/test"/>++ <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. -->@@ -670,12 +673,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/**" />