Skip to content

Apache Lucene open-source search software

LUCENE-5283: allow top-level testcase filters.

Dawid Weiss8c02d253b2aa
diff --git a/build.xml b/build.xml
index 6cf53b99698..01467634853 100644
--- a/build.xml
+++ b/build.xml
@@ -36,10 +36,7 @@
depends="check-svn-working-copy,validate,documentation-lint"/>
<target name="test" description="Test both Lucene and Solr">
- <subant target="test" inheritall="false" failonerror="true">
- <fileset dir="lucene" includes="build.xml" />
- <fileset dir="solr" includes="build.xml" />
- </subant>
+ <subant buildpath="." antfile="extra-targets.xml" target="-run-test" inheritall="false" failonerror="true" />
</target>
<target name="pitest" description="Run PITest on both Lucene and Solr">
diff --git a/extra-targets.xml b/extra-targets.xml
index 9ac1e058dcc..214c17d911e 100644
--- a/extra-targets.xml
+++ b/extra-targets.xml
@@ -25,6 +25,27 @@
<import file="lucene/common-build.xml"/>
+ <target name="-run-test">
+ <mkdir dir="lucene/build" />
+ <tempfile property="tests.totals.tmpfile"
+ destdir="lucene/build"
+ prefix=".test-totals-"
+ suffix=".tmp"
+ deleteonexit="true"
+ createfile="true" />
+
+ <subant target="test" inheritall="false" failonerror="true">
+ <fileset dir="lucene" includes="build.xml" />
+ <fileset dir="solr" includes="build.xml" />
+ <propertyset>
+ <propertyref name="tests.totals.tmpfile" />
+ </propertyset>
+ </subant>
+
+ <property name="tests.totals.toplevel" value="true" />
+ <antcall target="-check-totals" />
+ </target>
+
<!--
Run after Junit tests.