diff options
author | Keiron Liddle <keiron@apache.org> | 2001-07-06 06:58:00 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-07-06 06:58:00 +0000 |
commit | 7e0a43a07a6d5a4ff7970940d0b6fad7e3faabca (patch) | |
tree | cd276041e4742b227c50e5772e3917b479706c5c | |
parent | c82713e4e2bbb94f17fb3a19df340ef9f34a1a4a (diff) | |
download | xmlgraphics-fop-7e0a43a07a6d5a4ff7970940d0b6fad7e3faabca.tar.gz xmlgraphics-fop-7e0a43a07a6d5a4ff7970940d0b6fad7e3faabca.zip |
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
-rw-r--r-- | build.xml | 16 | ||||
-rw-r--r-- | docs/xml-docs/fop/testing.xml | 10 | ||||
-rw-r--r-- | lib/buildtools.jar | bin | 42598 -> 42065 bytes | |||
-rw-r--r-- | src/org/apache/fop/tools/anttasks/RunTest.java | 2 |
4 files changed, 26 insertions, 2 deletions
@@ -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 ;-) --> diff --git a/docs/xml-docs/fop/testing.xml b/docs/xml-docs/fop/testing.xml index 34e27f581..a8a24c258 100644 --- a/docs/xml-docs/fop/testing.xml +++ b/docs/xml-docs/fop/testing.xml @@ -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 diff --git a/lib/buildtools.jar b/lib/buildtools.jar Binary files differindex 895c2793d..dcb5478bf 100644 --- a/lib/buildtools.jar +++ b/lib/buildtools.jar diff --git a/src/org/apache/fop/tools/anttasks/RunTest.java b/src/org/apache/fop/tools/anttasks/RunTest.java index 1693aa669..0cb25f627 100644 --- a/src/org/apache/fop/tools/anttasks/RunTest.java +++ b/src/org/apache/fop/tools/anttasks/RunTest.java @@ -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 { |