|
|
@@ -188,6 +188,7 @@ list of possible build targets. |
|
|
|
<property name="build.property.examples.mime.type" value="application/pdf"/> |
|
|
|
|
|
|
|
<property name="layoutengine.disabled" value="test/layoutengine/disabled-testcases.txt"/> |
|
|
|
<property name="fotree.disabled" value="test/fotree/disabled-testcases.txt"/> |
|
|
|
|
|
|
|
<property name="dist.bin.dir" value="${basedir}/dist-bin"/> |
|
|
|
<property name="dist.src.dir" value="${basedir}/dist-src"/> |
|
|
@@ -579,7 +580,7 @@ list of possible build targets. |
|
|
|
<!-- =================================================================== --> |
|
|
|
<!-- Testing --> |
|
|
|
<!-- =================================================================== --> |
|
|
|
<target name="junit" depends="package, transcoder-pkg" description="Runs FOP's JUnit tests" if="junit.present"> |
|
|
|
<target name="junit-compile" depends="package, transcoder-pkg" description="Runs FOP's JUnit tests" if="junit.present"> |
|
|
|
<mkdir dir="${build.dir}/test-classes"/> |
|
|
|
<javac destdir="${build.dir}/test-classes" fork="javac.fork" |
|
|
|
debug="${javac.debug}" deprecation="${javac.deprecation}" |
|
|
@@ -593,6 +594,9 @@ list of possible build targets. |
|
|
|
</fileset> |
|
|
|
</classpath> |
|
|
|
</javac> |
|
|
|
</target> |
|
|
|
|
|
|
|
<target name="junit" depends="junit-compile" description="Runs FOP's JUnit tests" if="junit.present"> |
|
|
|
<echo message="Running basic functionality tests for fop-transcoder.jar"/> |
|
|
|
<mkdir dir="${build.dir}/test-reports/fop-transcoder"/> |
|
|
|
<junit haltonerror="yes" fork="${junit.fork}"> |
|
|
@@ -683,6 +687,28 @@ list of possible build targets. |
|
|
|
</junit> |
|
|
|
</target> |
|
|
|
|
|
|
|
<target name="junit-fotree" depends="junit-compile" description="Runs FOP's FO tree JUnit tests" if="junit.present"> |
|
|
|
<echo message="Running fo tree tests"/> |
|
|
|
<junit haltonerror="yes" fork="${junit.fork}"> |
|
|
|
<sysproperty key="basedir" value="${basedir}"/> |
|
|
|
<sysproperty key="jawa.awt.headless" value="true"/> |
|
|
|
<sysproperty key="fop.layoutengine.disabled" value="${fotree.disabled}"/> |
|
|
|
<formatter type="brief" usefile="false"/> |
|
|
|
<classpath> |
|
|
|
<pathelement location="${build.dir}/test-classes"/> |
|
|
|
<path refid="libs-build-classpath"/> |
|
|
|
<fileset dir="build"> |
|
|
|
<include name="fop.jar"/> |
|
|
|
</fileset> |
|
|
|
</classpath> |
|
|
|
<batchtest todir="${build.dir}/test-reports/fop"> |
|
|
|
<fileset dir="${build.dir}/test-classes"> |
|
|
|
<include name="org/apache/fop/fotreetest/FOTreeTestSuite.class"/> |
|
|
|
</fileset> |
|
|
|
</batchtest> |
|
|
|
</junit> |
|
|
|
</target> |
|
|
|
|
|
|
|
<!-- =================================================================== --> |
|
|
|
<!-- Creates the API documentation --> |
|
|
|
<!-- =================================================================== --> |