mirror of https://github.com/apache/lucene.git
SOLR-1441 -- Make it possible to run all tests in a package
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@816090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3b90c5eee5
commit
8817e583c7
|
@ -704,6 +704,8 @@ Build
|
||||||
|
|
||||||
5. SOLR-1386: In build.xml, use longfile="gnu" in tar task to avoid warnings about long file names
|
5. SOLR-1386: In build.xml, use longfile="gnu" in tar task to avoid warnings about long file names
|
||||||
(Mark Miller via shalin)
|
(Mark Miller via shalin)
|
||||||
|
|
||||||
|
6. SOLR-1441: Make it possible to run all tests in a package (shalin)
|
||||||
|
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
|
|
18
build.xml
18
build.xml
|
@ -368,7 +368,15 @@
|
||||||
|
|
||||||
<!-- no description so it doesn't show up in -projecthelp -->
|
<!-- no description so it doesn't show up in -projecthelp -->
|
||||||
<mkdir dir="${junit.output.dir}"/>
|
<mkdir dir="${junit.output.dir}"/>
|
||||||
|
<condition property="runall">
|
||||||
|
<not>
|
||||||
|
<or>
|
||||||
|
<isset property="testcase"/>
|
||||||
|
<isset property="testpackage"/>
|
||||||
|
<isset property="testpackageroot"/>
|
||||||
|
</or>
|
||||||
|
</not>
|
||||||
|
</condition>
|
||||||
<junit printsummary="on"
|
<junit printsummary="on"
|
||||||
haltonfailure="no"
|
haltonfailure="no"
|
||||||
errorProperty="tests.failed"
|
errorProperty="tests.failed"
|
||||||
|
@ -379,9 +387,15 @@
|
||||||
<formatter type="brief" usefile="false" if="junit.details"/>
|
<formatter type="brief" usefile="false" if="junit.details"/>
|
||||||
<classpath refid="test.run.classpath"/>
|
<classpath refid="test.run.classpath"/>
|
||||||
<formatter type="xml"/>
|
<formatter type="xml"/>
|
||||||
<batchtest fork="yes" todir="${junit.output.dir}" unless="testcase">
|
<batchtest fork="yes" todir="${junit.output.dir}" if="runall">
|
||||||
<fileset dir="src/test" includes="${junit.includes}"/>
|
<fileset dir="src/test" includes="${junit.includes}"/>
|
||||||
</batchtest>
|
</batchtest>
|
||||||
|
<batchtest fork="yes" todir="${junit.output.dir}" if="testpackage">
|
||||||
|
<fileset dir="src/test" includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java"/>
|
||||||
|
</batchtest>
|
||||||
|
<batchtest fork="yes" todir="${junit.output.dir}" if="testpackageroot">
|
||||||
|
<fileset dir="src/test" includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java"/>
|
||||||
|
</batchtest>
|
||||||
<batchtest fork="yes" todir="${junit.output.dir}" if="testcase">
|
<batchtest fork="yes" todir="${junit.output.dir}" if="testcase">
|
||||||
<fileset dir="src/test" includes="**/${testcase}.java"/>
|
<fileset dir="src/test" includes="**/${testcase}.java"/>
|
||||||
</batchtest>
|
</batchtest>
|
||||||
|
|
Loading…
Reference in New Issue