Przeglądaj źródła

added support for easily using w3c testsuite for build target test


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194335 13f79535-47bb-0310-9956-ffa450edef68
pull/33/head
Keiron Liddle 23 lat temu
rodzic
commit
d6983bf19f

+ 15
- 1
build.xml Wyświetl plik

@@ -572,8 +572,22 @@ Sometimes ant gives out this warnings, but the build is finished without any pro

<target name="test" depends="package">
<echo message="Testing build in jar file ${build.dir}/${name}.jar against reference"/>
<runTest testSuite="basictests.xml" basedir="test/" reference="reference/fop.jar"
<runTest testSuite="basictests.xml" basedir="test/" reference="test/reference/fop.jar"
refVersion="FOP 0.19.0-CVS"/>
<runTest testSuite="bugtests.xml" basedir="test/" reference="test/reference/fop.jar"
refVersion="FOP 0.19.0-CVS"/>
<!--
<runTest testSuite="testsuite.xml" basedir="TestSuite/NIST/" reference="test/reference/fop.jar"
refVersion="FOP 0.19.0-CVS"/>
<runTest testSuite="testsuite.xml" basedir="TestSuite/contrib/IBM/" reference="test/reference/fop.jar"
refVersion="FOP 0.19.0-CVS"/>
<runTest testSuite="testsuite.xml" basedir="TestSuite/contrib/FOP/" reference="test/reference/fop.jar"
refVersion="FOP 0.19.0-CVS"/>
<runTest testSuite="testsuite.xml" basedir="TestSuite/contrib/XEP/" reference="test/reference/fop.jar"
refVersion="FOP 0.19.0-CVS"/>
<runTest testSuite="testsuite.xml" basedir="TestSuite/contrib/XSLFormatter/" reference="test/reference/fop.jar"
refVersion="FOP 0.19.0-CVS"/>
-->
</target>

<target name="all" depends="package"/> <!-- "all" target for us Makefile converts ;-) -->

+ 10
- 0
docs/xml-docs/fop/testing.xml Wyświetl plik

@@ -20,6 +20,16 @@ loaded to create the reference output.
</p>
</s2>

<s2 title="W3C TestSuite">
<p>
The testing is set up so that you can download the testsuite from
<jump href="http://www.w3.org/Style/XSL/TestSuite/">http://www.w3.org/Style/XSL/TestSuite/</jump>,
unzip the file into the base directory of FOP.
Then you can uncomment the lines in the build.xml file in the test target and it
will run through all the tests in the testsuite distribution.
</p>
</s2>

<s2 title="Writing a Test">
<p>
A test belongs to one of a few catagories. A basic test should excercise one

BIN
lib/buildtools.jar Wyświetl plik


+ 1
- 1
src/org/apache/fop/tools/anttasks/RunTest.java Wyświetl plik

@@ -114,7 +114,7 @@ public class RunTest extends Task {
//} else {
try {
ClassLoader loader = new URLClassLoader(
new URL[]{new URL("file:" + basedir + referenceJar)});
new URL[]{new URL("file:" + referenceJar)});
boolean failed = false;

try {

Ładowanie…
Anuluj
Zapisz