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

Re: Beginning a test suite

From: Alex Milowski <alex@milowski.org>
Date: Tue, 17 Apr 2007 20:26:29 -0700
Message-ID: <28d56ece0704172026w7f72e2eet6beca59e7a30f86d@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org
Very cool...

We should come up with a naming structure so that I can
put the solutions to our use cases into this test suite.

Those examples are all checked in to the 'use-cases'
directory but they now need to be updated (which I'll do).



On 4/17/07, Norman Walsh <Norman.Walsh@sun.com> wrote:
>
> 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.
>
>


-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics
Received on Wednesday, 18 April 2007 03:26:42 GMT

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