XSLT Tests: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
= Getting the XSLT test suite = | = Getting the XSLT test suite = | ||
# Pick a directory under which the tests will live. From now on it will be referred to as <code>$ | # Pick a directory under which the tests will live. From now on it will be referred to as <code>$TESTHOME</code>. Note that the only thing created in <code>$TESTHOME</code> will be an <code>xml-xalan/</code> directory. | ||
# set CVSROOT to <code>:pserver:anoncvs@cvs.apache.org:/home/cvspublic</code> | # set CVSROOT to <code>:pserver:anoncvs@cvs.apache.org:/home/cvspublic</code> | ||
# Check out the <code>xml-xalan/test</code> module. | # Check out the <code>xml-xalan/test</code> module. | ||
Revision as of 20:57, 15 January 2006
Getting the XSLT test suite
- Pick a directory under which the tests will live. From now on it will be referred to as
$TESTHOME. Note that the only thing created in$TESTHOMEwill be anxml-xalan/directory. - set CVSROOT to
:pserver:anoncvs@cvs.apache.org:/home/cvspublic - Check out the
xml-xalan/testmodule.
For example, on a Unix system you might do
cd ~ env CVSROOT=:pserver:anoncvs@cvs.apache.org:/home/cvspublic cvs co xml-xalan/test
Running the tests
- Compile Seamonkey. This is needed to run the tests until the user interface is ported to Firefox.
- In
${TESTDIR}/xml-xalan/test/tests(this is the directory that hasconfandconf-goldas subdirectories) run the script found atcontent/xslt/tests/buster/helper/generate-rdf.plin your Mozilla source tree. This will generate a file calledxalan.rdfin the Xalantestsdirectory. - Start a build that does NOT have the changes being tested in it. Go to the Tools > Web Development > Xalan Tests menu option. This opens a "Xalan testcase harness" window. Resize this window to be big enough to show at least three lines of the tree at the bottom of the window.
- Click the "Browse" button and browse for the
xalan.rdffile that you created in step 2. - Select the "conf" item in the tree at the bottom of the "Xalan testcase harness" window.
- Click the button labeled "run checked tests"
- Wait until the test completes.
- Go to File > Save Results and save the results to a file of your choice.
- Repeat step 3 with a build that DOES have the changes being tested in it.
- Go to File > Import results and import the results you saved in step 8.
- Repeat steps 4-7.
- Compare the results -- the "Success" column will have the results with the changes being tested, while the "Previously" column is the baseline.