mirror of https://github.com/apache/lucene.git
LUCENE-4168: Allow storing test execution statistics in an external file.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1354468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
52516ebb21
commit
21f39d3e1e
|
@ -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/**" />
|
||||
|
|
Loading…
Reference in New Issue