Beginning a test suite

Folks,

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

  .../XML/XProc/testsuite

The structure of each test is:

  .../testsuite/tests/valid/pipeline.xproc
  .../testsuite/tests/inputs/*.*
  .../testsuite/tests/outputs/*.*

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

Whee!!!

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.

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