W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > April 2007

Beginning a test suite

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Tue, 17 Apr 2007 17:24:59 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87y7kqelsk.fsf@nwalsh.com>

I just checked in the rudimentary beginnings of a test suite at


The structure of each test is:


Where the base name of each file in the inputs directory is the name
of the input port and the base name of each file in the outputs
directory is the name of the output port.

If you run the pipeline and your outputs match the outputs in the
outputs directory, the test passses.

$ harness/xproc/run 
xproc -i source="./tests/valid/identity001/inputs/source.xml" -o result="./tests/valid/identity001/result.xml"  ./tests/valid/identity001/pipeline.xproc
xproc -i doca="./tests/valid/identity001/outputs/result.xml" -i docb="./tests/valid/identity001/result.xml"  harness/xproc/equal.xproc
xproc -i source="./tests/valid/xslt001/inputs/source.xml" -i style="./tests/valid/xslt001/inputs/style.xsl" -o result="./tests/valid/xslt001/result.xml"  ./tests/valid/xslt001/pipeline.xproc
xproc -i doca="./tests/valid/xslt001/outputs/result.xml" -i docb="./tests/valid/xslt001/result.xml"  harness/xproc/equal.xproc
Test report:
PASS identity001
PASS xslt001


                                        Be seeing you,

Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.

Received on Tuesday, 17 April 2007 21:25:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:42 UTC