Bladeren bron

Separated JUnit tests into groups with separate targets, added fotree test to default JUnit target, test for the presence of hyphenation support as prerequisite for layout tests

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@307113 13f79535-47bb-0310-9956-ffa450edef68
pull/31/head
Manuel Mall 18 jaren geleden
bovenliggende
commit
272de87fde
1 gewijzigde bestanden met toevoegingen van 32 en 6 verwijderingen
  1. 32
    6
      build.xml

+ 32
- 6
build.xml Bestand weergeven

will generate a file called "fop.jar" in the "./build" directory. will generate a file called "fop.jar" in the "./build" directory.


If you experience any problems with the build please visit the FOP website for If you experience any problems with the build please visit the FOP website for
more information: http://xml.apache.org/fop
more information: http://xmlgraphics.apache.org/fop




Build targets Build targets
<manifest> <manifest>
<attribute name="Implementation-Title" value="${Name}"/> <attribute name="Implementation-Title" value="${Name}"/>
<attribute name="Implementation-Version" value="${version}"/> <attribute name="Implementation-Version" value="${version}"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xml.apache.org/fop/)"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)"/>
<attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/> <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
</manifest> </manifest>
</jar> </jar>
<!--attribute name="Class-Path" value="${manifest-classpath}"/--> <!--attribute name="Class-Path" value="${manifest-classpath}"/-->
<attribute name="Implementation-Title" value="${Name}"/> <attribute name="Implementation-Title" value="${Name}"/>
<attribute name="Implementation-Version" value="${version}"/> <attribute name="Implementation-Version" value="${version}"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xml.apache.org/fop/)"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)"/>
<attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/> <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
</manifest> </manifest>
</jar> </jar>
<manifest> <manifest>
<attribute name="Implementation-Title" value="${fop-transcoder.name}"/> <attribute name="Implementation-Title" value="${fop-transcoder.name}"/>
<attribute name="Implementation-Version" value="${fop-transcoder.version}"/> <attribute name="Implementation-Version" value="${fop-transcoder.version}"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xml.apache.org/fop/)"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)"/>
<attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/> <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
</manifest> </manifest>
</jar> </jar>
<manifest> <manifest>
<attribute name="Implementation-Title" value="${fop-transcoder.name}"/> <attribute name="Implementation-Title" value="${fop-transcoder.name}"/>
<attribute name="Implementation-Version" value="${fop-transcoder.version}"/> <attribute name="Implementation-Version" value="${fop-transcoder.version}"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xml.apache.org/fop/)"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)"/>
<attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/> <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
</manifest> </manifest>
</jar> </jar>
</javac> </javac>
</target> </target>


<target name="junit" depends="junit-compile" description="Runs FOP's JUnit tests" if="junit.present">
<target name="junit-transcoder" depends="junit-compile" description="Runs FOP's JUnit transcoder tests" if="junit.present">
<echo message="Running basic functionality tests for fop-transcoder.jar"/> <echo message="Running basic functionality tests for fop-transcoder.jar"/>
<mkdir dir="${build.dir}/test-reports/fop-transcoder"/> <mkdir dir="${build.dir}/test-reports/fop-transcoder"/>
<junit haltonerror="yes" fork="${junit.fork}"> <junit haltonerror="yes" fork="${junit.fork}">
</fileset> </fileset>
</batchtest> </batchtest>
</junit> </junit>
</target>

<target name="junit-basic" depends="junit-compile" description="Runs FOP's JUnit basic tests" if="junit.present">
<echo message="Running basic functionality tests for fop.jar"/> <echo message="Running basic functionality tests for fop.jar"/>
<mkdir dir="${build.dir}/test-reports/fop"/> <mkdir dir="${build.dir}/test-reports/fop"/>
<junit haltonerror="yes" fork="${junit.fork}"> <junit haltonerror="yes" fork="${junit.fork}">
</fileset> </fileset>
</batchtest> </batchtest>
</junit> </junit>
</target>

<target name="hyphenation-present" depends="junit-compile" if="junit.present">
<condition property="hyphenation.present">
<and><!-- All the hyphenation files required by the layout test cases to be listed here -->
<available resource="hyph/en.hyp" classpathref="libs-build-classpath"/>
<available resource="hyph/de.hyp" classpathref="libs-build-classpath"/>
</and>
</condition>
<condition property="hyphenation.message" value="Hyphenation Support PRESENT">
<equals arg1="${hyphenation.present}" arg2="true"/>
</condition>
<condition property="hyphenation.message" value="Hyphenation Support NOT Present - Some layout tests require hyphenation support">
<not>
<equals arg1="${hyphenation.present}" arg2="true"/>
</not>
</condition>
<echo message="${hyphenation.message}"/>
</target>

<target name="junit-layout" depends="hyphenation-present, junit-compile" description="Runs FOP's JUnit layout tests" if="hyphenation.present">
<echo message="Running layout engine tests"/> <echo message="Running layout engine tests"/>
<mkdir dir="${build.dir}/test-reports/fop"/> <mkdir dir="${build.dir}/test-reports/fop"/>
<junit haltonerror="yes" fork="${junit.fork}"> <junit haltonerror="yes" fork="${junit.fork}">
</junit> </junit>
</target> </target>


<target name="junit" depends="junit-basic, junit-transcoder, junit-layout, junit-fotree" description="Runs all of FOP's JUnit tests" if="junit.present" />

<!-- =================================================================== --> <!-- =================================================================== -->
<!-- Creates the API documentation --> <!-- Creates the API documentation -->
<!-- =================================================================== --> <!-- =================================================================== -->

Laden…
Annuleren
Opslaan