diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2010-04-09 15:21:00 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2010-04-09 15:21:00 +0000 |
commit | 83f36b614c3f1f1a866ff70fe9363cd5be31e986 (patch) | |
tree | 6e96940806b3600d3bd964eb24611a43fa7e7505 /build.xml | |
parent | fad33d93cca6ce80d6291b7b36f8ed5f01f6b6d7 (diff) | |
download | xmlgraphics-fop-83f36b614c3f1f1a866ff70fe9363cd5be31e986.tar.gz xmlgraphics-fop-83f36b614c3f1f1a866ff70fe9363cd5be31e986.zip |
Added test cases to ensure that the event notification system runs smoothly
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@932461 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 72 |
1 files changed, 44 insertions, 28 deletions
@@ -360,7 +360,8 @@ list of possible build targets. <pathelement location="${build.codegen-classes.dir}"/> </classpath> </taskdef> - <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/events/event-model.xml" translationfile="${src.java.dir}/org/apache/fop/events/EventFormatter.xml"> + <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/events/event-model.xml" + translationfile="${src.java.dir}/org/apache/fop/events/EventFormatter.xml"> <fileset dir="${src.java.dir}"> <include name="**/*.java"/> <exclude name="org/apache/fop/render/*/**/*.java"/> @@ -369,43 +370,55 @@ list of possible build targets. </fileset> </eventResourceGenerator> <fixcrlf file="${src.java.dir}/org/apache/fop/events/EventFormatter.xml" tab="remove" tablength="2"/> - <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/accessibility/event-model.xml" translationfile="${src.java.dir}/org/apache/fop/accessibility/AccessibilityEventProducer.xml"> + <eventResourceGenerator + modelfile="${build.gensrc.dir}/org/apache/fop/accessibility/event-model.xml" + translationfile="${src.java.dir}/org/apache/fop/accessibility/AccessibilityEventProducer.xml"> <fileset dir="${src.java.dir}"> <include name="org/apache/fop/accessibility/**/*.java"/> </fileset> </eventResourceGenerator> <fixcrlf file="${src.java.dir}/org/apache/fop/afp/AFPEventProducer.xml" tab="remove" tablength="2"/> - <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/afp/event-model.xml" translationfile="${src.java.dir}/org/apache/fop/afp/AFPEventProducer.xml"> + <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/afp/event-model.xml" + translationfile="${src.java.dir}/org/apache/fop/afp/AFPEventProducer.xml"> <fileset dir="${src.java.dir}"> <include name="org/apache/fop/afp/**/*.java"/> </fileset> </eventResourceGenerator> <fixcrlf file="${src.java.dir}/org/apache/fop/afp/AFPEventProducer.xml" tab="remove" tablength="2"/> - <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/render/bitmap/event-model.xml" translationfile="${src.java.dir}/org/apache/fop/render/bitmap/BitmapRendererEventProducer.xml"> + <eventResourceGenerator + modelfile="${build.gensrc.dir}/org/apache/fop/render/bitmap/event-model.xml" + translationfile="${src.java.dir}/org/apache/fop/render/bitmap/BitmapRendererEventProducer.xml"> <fileset dir="${src.java.dir}"> <include name="org/apache/fop/render/bitmap/**/*.java"/> </fileset> </eventResourceGenerator> <fixcrlf file="${src.java.dir}/org/apache/fop/render/bitmap/BitmapRendererEventProducer.xml" tab="remove" tablength="2"/> - <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/render/pcl/event-model.xml" translationfile="${src.java.dir}/org/apache/fop/render/pcl/PCLEventProducer.xml"> + <eventResourceGenerator + modelfile="${build.gensrc.dir}/org/apache/fop/render/pcl/event-model.xml" + translationfile="${src.java.dir}/org/apache/fop/render/pcl/PCLEventProducer.xml"> <fileset dir="${src.java.dir}"> <include name="org/apache/fop/render/pcl/**/*.java"/> </fileset> </eventResourceGenerator> <fixcrlf file="${src.java.dir}/org/apache/fop/render/pcl/PCLEventProducer.xml" tab="remove" tablength="2"/> - <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/render/pdf/event-model.xml" translationfile="${src.java.dir}/org/apache/fop/render/pdf/PDFEventProducer.xml"> + <eventResourceGenerator + modelfile="${build.gensrc.dir}/org/apache/fop/render/pdf/event-model.xml" + translationfile="${src.java.dir}/org/apache/fop/render/pdf/PDFEventProducer.xml"> <fileset dir="${src.java.dir}"> <include name="org/apache/fop/render/pdf/**/*.java"/> </fileset> </eventResourceGenerator> <fixcrlf file="${src.java.dir}/org/apache/fop/render/pdf/PDFEventProducer.xml" tab="remove" tablength="2"/> - <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/render/ps/event-model.xml" translationfile="${src.java.dir}/org/apache/fop/render/ps/PSEventProducer.xml"> + <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/render/ps/event-model.xml" + translationfile="${src.java.dir}/org/apache/fop/render/ps/PSEventProducer.xml"> <fileset dir="${src.java.dir}"> <include name="org/apache/fop/render/ps/**/*.java"/> </fileset> </eventResourceGenerator> <fixcrlf file="${src.java.dir}/org/apache/fop/render/ps/PSEventProducer.xml" tab="remove" tablength="2"/> - <eventResourceGenerator modelfile="${build.gensrc.dir}/org/apache/fop/render/rtf/event-model.xml" translationfile="${src.java.dir}/org/apache/fop/render/rtf/RTFEventProducer.xml"> + <eventResourceGenerator + modelfile="${build.gensrc.dir}/org/apache/fop/render/rtf/event-model.xml" + translationfile="${src.java.dir}/org/apache/fop/render/rtf/RTFEventProducer.xml"> <fileset dir="${src.java.dir}"> <include name="org/apache/fop/render/rtf/**/*.java"/> </fileset> @@ -947,42 +960,45 @@ list of possible build targets. </target> <macrodef name="junit-run"> <attribute name="title"/> - <element name="tests"/> + <attribute name="basedir" default=""/> + <attribute name="testsuite"/> + <attribute name="outfile"/> <sequential> <echo message="Running @{title} tests..."/> <junit dir="${basedir}" haltonfailure="${junit.haltonfailure}" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure"> - <sysproperty key="basedir" value="${basedir}"/> + <sysproperty key="basedir" value="${basedir}/@{basedir}"/> <sysproperty key="jawa.awt.headless" value="true"/> <sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/> + <sysproperty key="fop.layoutengine.testset" value="standard"/> <formatter type="brief" usefile="false"/> <formatter type="plain" usefile="true"/> <formatter type="xml" usefile="true"/> <classpath> <pathelement location="${build.dir}/test-classes"/> <path refid="libs-build-tools-classpath"/> - <fileset dir="build"> - <include name="fop.jar"/> - </fileset> + <pathelement location="${build.dir}/fop.jar"/> </classpath> - <tests/> + <test name="@{testsuite}" todir="${junit.reports.dir}" outfile="@{outfile}"/> </junit> </sequential> </macrodef> - <target name="junit-area-tree-xml-format" depends="junit-compile" description="Runs FOP's area tree XML format JUnit tests" if="xmlunit.present"> - <junit-run title="area tree XML format"> - <tests> - <sysproperty key="fop.layoutengine.testset" value="standard"/> - <test name="org.apache.fop.intermediate.AreaTreeXMLFormatTestSuite" todir="${junit.reports.dir}" outfile="TEST-area-tree-xml-format"/> - </tests> - </junit-run> + <target name="junit-area-tree-xml-format" depends="junit-compile" + description="Runs FOP's area tree XML format JUnit tests" if="xmlunit.present"> + <junit-run title="area tree XML format" + testsuite="org.apache.fop.intermediate.AreaTreeXMLFormatTestSuite" + outfile="TEST-area-tree-xml-format"/> </target> - <target name="junit-intermediate-format" depends="junit-compile" description="Runs FOP's intermediate format JUnit tests" if="xmlunit.present"> - <junit-run title="intermediate format"> - <tests> - <sysproperty key="fop.layoutengine.testset" value="standard"/> - <test name="org.apache.fop.intermediate.IntermediateFormatTestSuite" todir="${junit.reports.dir}" outfile="TEST-intermediate-format"/> - </tests> - </junit-run> + <target name="junit-intermediate-format" depends="junit-compile" + description="Runs FOP's intermediate format JUnit tests" if="xmlunit.present"> + <junit-run title="intermediate format" + testsuite="org.apache.fop.intermediate.IntermediateFormatTestSuite" + outfile="TEST-intermediate-format"/> + </target> + <target name="junit-events" depends="junit-compile" + description="Runs FOP's event JUnit tests" if="junit.present"> + <junit-run title="event" basedir="test/events" + testsuite="org.apache.fop.events.EventProcessingTestCase" + outfile="TEST-events"/> </target> <target name="junit-text-linebreak" depends="junit-compile" description="Runs FOP's JUnit unicode linebreak tests" if="junit.present"> <echo message="Running tests for Unicode UAX#14 support"/> |