diff options
author | Finn Bock <bckfnn@apache.org> | 2005-09-12 09:08:52 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2005-09-12 09:08:52 +0000 |
commit | 4d97f973f6b2ac210cb94f98d90a59fa3fb7d0aa (patch) | |
tree | e2bd972eeee941d3e22a5e033360a53dc9e8c6c9 /build.xml | |
parent | c1e2d2af42a624b91b950b9849b252262fcc6db1 (diff) | |
download | xmlgraphics-fop-4d97f973f6b2ac210cb94f98d90a59fa3fb7d0aa.tar.gz xmlgraphics-fop-4d97f973f6b2ac210cb94f98d90a59fa3fb7d0aa.zip |
Enabled fotree junit tests.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280298 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -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 --> <!-- =================================================================== --> |