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

More tests in the test suite

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 27 Apr 2007 16:57:38 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87d51p8ri5.fsf@nwalsh.com>
I checked in a more substantial collection of tests under
.../XML/XProc/testsuite

choose001
count001
delete001
head001
identity001
insert001
labelelements001
load001
matchingdocuments001
namespacerename001
rename001
replace001
tail001
unescapemarkup001
unwrap001
validrng001
validxsd001
wrap001
xinclude001
xslt001

Each of those is a directory that contains a pipeline called
'pipeline.xproc'. The inputs to the pipeline are in inputs/ and the
results are in outputs/. The base name of each file is the name
of the input or output port.

So given identity001 which contains

  pipeline.xproc
  outputs/result.xml
  inputs/source.xml

If you run pipeline.xproc with the 'source' input bound to
inputs/source.xml and what you get is "the same as" outputs/result.xml,
then you passed.

I'm using XPath 2.0's deep-equal function to determine "the same as".

                                        Be seeing you,
                                          norm

hephaistos:/projects/w3c/WWW/XML/XProc/testsuite$ harness/xproc/run
[...]
Test report:
PASS choose001
PASS count001
PASS delete001
PASS head001
PASS identity001
PASS insert001
PASS labelelements001
PASS load001
PASS matchingdocuments001
PASS namespacerename001
PASS rename001
PASS replace001
PASS tail001
PASS unescapemarkup001
PASS unwrap001
PASS validrng001
PASS validxsd001
PASS wrap001
PASS xinclude001
PASS xslt001

Whee!

-- 
Norman Walsh <ndw@nwalsh.com> | Curiosity never killed anything except
http://nwalsh.com/            | maybe a few hours.

Received on Friday, 27 April 2007 20:57:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:50 GMT