2002-03-03 17:25:28 -05:00
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Test targets -->
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<target name="test" depends="compile" description="Perform jUnit tests">
|
|
|
|
<mkdir dir="${build.test}"/>
|
|
|
|
<!-- Copy test files to build test dir -->
|
|
|
|
<copy todir="${build.test}" filtering="on">
|
|
|
|
<fileset dir="${test.dir}/${test.specific}"/>
|
|
|
|
</copy>
|
|
|
|
<!-- Compile tests -->
|
|
|
|
<javac srcdir="${build.test}"
|
|
|
|
destdir="${build.test}"
|
|
|
|
debug="${debug}"
|
|
|
|
optimize="${optimize}"
|
|
|
|
deprecation="${deprecation}"
|
|
|
|
target="${target.vm}">
|
|
|
|
<classpath refid="classpath"/>
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="${build.dest}" />
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
<junit printsummary="yes" haltonfailure="yes" fork="yes">
|
2002-03-14 06:05:10 -05:00
|
|
|
<sysproperty key="UTIL.testdata.path"
|
|
|
|
value="${test.dir}/org/apache/poi/util/data"/>
|
|
|
|
<sysproperty key="HSSF.testdata.path"
|
|
|
|
value="${test.dir}/org/apache/poi/hssf/data"/>
|
2002-03-03 17:25:28 -05:00
|
|
|
<classpath>
|
|
|
|
<pathelement location="${build.test}" />
|
|
|
|
<pathelement location="${build.dest}" />
|
|
|
|
<pathelement path="${java.class.path}" />
|
|
|
|
</classpath>
|
|
|
|
<classpath refid="classpath"/>
|
|
|
|
<formatter type="plain" usefile="no" />
|
|
|
|
<batchtest>
|
|
|
|
<fileset dir="${build.test}">
|
|
|
|
<include name="**/test/*TestCase.class"/>
|
|
|
|
<include name="**/*Test.class" />
|
|
|
|
<include name="**/Test*.class" />
|
|
|
|
<exclude name="**/AllTest.class" />
|
|
|
|
<exclude name="**/*$$*Test.class" />
|
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
</target>
|
2002-03-14 09:42:51 -05:00
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Testing that all major targets work; useful before a commit -->
|
|
|
|
<!-- =================================================================== -->
|
2002-03-19 09:34:21 -05:00
|
|
|
<target name="testmodule" depends="clean, docs, test, javadocs"
|
2002-03-14 09:42:51 -05:00
|
|
|
description="Testing that all major targets work; useful before a commit ">
|
|
|
|
</target>
|