W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2008

Submitting test suite results to tests.xproc.org

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 04 Dec 2008 07:37:18 -0500
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2fxl4unep.fsf@nwalsh.com>
Dear implementors,

I've cooked up an XML format for reporting test suite results. It's defined
by the schema at http://tests.xproc.org/schemas/testreport.rnc (or .rng).
(Alas, there's no documentation yet.)

For an example of the format, you can download the XML Calabash report
From http://tests.xproc.org/results/calabash/report.xml

I'm open to suggestions for changes/improvements.

As an added incentive to use the format :-), I've created a web
service that will allow you to submit results in that format to
tests.xproc.org and have the results posted immediately. Like
the XML Calabash report at http://tests.xproc.org/results/calabash/

Send me the short name that you would like to use to identify your
implementation and a password that you'd like and I'll set it up.

The short name will appear in the URI:


If you don't want to make the results of public, but you want to
submit them to the WG, let me know and I'll setup something for that
(but first, I'll try to persuade you to publish your results!).

And finally, here's the pipeline that I use to run the tests and
submit the results. It's actually a fairly interesting pipeline.
Questions and/or suggestions for improvements most welcome.

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
		exclude-inline-prefixes="c cx"
<p:output port="result"/>
<p:option name="host" select="'tests.xproc.org'"/>
<p:option name="username" select="'calabash'"/>
<p:option name="password" select="''"/>

<p:documentation xmlns="http://www.w3.org/1999/xhtml">
  <p>This pipeline runs the XProc test suite and reports the results.</p>
  <p>It has three options: <code>host</code>, <code>username</code>, and
  <p>The <code>host</code> option is used to specify the host to use
  in the URIs of test suite documents. (Because Norm has a local copy of
  <a href="http://tests.xproc.org/">http://tests.xproc.org/</a>.)</p>
  <p>The <code>username</code> and <code>password</code> are used to submit
  the test results to <a href="http://tests.xproc.org/">http://tests.xproc.org</a>.
  If run without a password, it simply outputs the report document.</p>

<p:string-replace match="uri/text()">
  <p:input port="source">
  <p:with-option name="replace"

<p:exec command="/projects/src/calabash/runtests">
  <p:input port="source">
  <p:with-option name="args" select="string-join(//uri,' ')"/>

  <p:when test="$password = ''">
    <p:wrap wrapper="c:body" match="/">
      <p:input port="source" select="/c:result/*"/>

    <p:add-attribute match="c:body"

    <p:wrap wrapper="c:request" match="/"/>

    <p:add-attribute attribute-name="password" match="/c:request">
      <p:with-option name="attribute-value" select="$password"/>

    <p:add-attribute attribute-name="username" match="/c:request">
      <p:with-option name="attribute-value" select="$username"/>

    <p:set-attributes match="c:request">
      <p:input port="attributes">
	  <c:request href="http://tests.xproc.org/results/submit/report"
		     method="post" auth-method="Basic"



                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | Men are more like the times they live
http://nwalsh.com/            | in than they are like their
                              | fathers.--Ali Ibn-abi-talib

Received on Thursday, 4 December 2008 12:40:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:04 UTC