I've created a new, much simpler way to build and run the xalan tests - a
single Ant build.xml file in xml-xalan/test. This will eventually replace
a number of the helper batch files and properties files in that directory,
as well as replacing the xml-xalan/test/java/build.* files and the cruft
that's in the xml-xalan/java.build.xml file for running tests.
If any of you who regularly use the Xalan tests could 'test' this new stuff
out, that would be great. In particular, feedback from Tom Amiro and Gary
Peskin would be great, since I know you two have used this stuff before.
8-) Yes, I will re-write the testing docs and post them in a little while.
Assumptions: you checkout both xml-xalan/java and xml-xalan/test to the
same location (if you put them in different locations, you *should* be able
to set the appropriate properties in Ant to make it work, but...)
-- Build Xalan and xsltc and the tests --
Note that both a build.bat and a build.sh are provided; they act mostly
similarly but treat JARDIR slightly differently so far. Suggestions on
setting classpath welcome (note: part of the classpath is controlled in the
bat/sh file, but most of it is controlled in the build.xml file).
cd xml-xalan/java
build clean jar xsltc.jar
cd xml-xalan/test
build clean (always clean up first)
build jar (build all the normal xalan tests)
build jar.xsltc (build the xsltc-specific tests)
-- Run some tests --
(You can either set JARDIR or not - I think it works, but haven't tested
thoroughly yet, esp. on UNIXes. Note all targets both print to the console
and produce result logs in either smoketest/ or results-*/ directories)
build minitest (automatically runs the minitest with xalan)
build smoketest (runs *part* of the smoktest on current xalan)
build conf -Dqetest.category=copy -Dqetest.flavor=trax.sax (runs the SAX
flavor conformance test on just the copy dir; note prefix of 'qetest.' is
required by Ant, but ripped off before being passed to the tests)
build api -DtestClass=TransformerAPITest (Runs just this one
org.apache.qetest.trax.TransformerAPITest; note *no* prefix on the
testClass setting)
build harness (Runs a whole bunch of API tests thru the harness)
build conf.xsltc -Dqetest.category=copy -Dqetest.flavor=trax.stream (runs
the Stream flavor conformance test on just the copy dir using the xsltc
implementation; note I can't get other flavors to work yet {like file and
systemId which should work})
Changing settings:
xml-xalan/test/build.xml is the build file that runs this stuff
xml-xalan/test/test.properties are default properties for testing. Note
the prefixes; 'conf.', 'api.', 'qetest.', etc are used within build.xml to
figure out which actual properties are passed to underlying test - the
prefixes are ripped off before the actual tests run
xml-xalan/test/my.test.properties if you create this file, it's settings
will override any settings in test.properties
You can also override everything by passing prefixed items on the Ant/java
command line. Note these are being set in your JVM, so must use the prefix
'qetest.' and the java format like: "-Dqetest.flavor=trax.file" and not
the old runtest.bat format like "-flavor trax.file"
- Shane