Impossible to set context-item for rbkt test (externall)

Bug #923672 reported by David Graf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Chris Hillery

Bug Description

Currently, there is no way to set the context item before executing an rbkt test. Therefore, many tests of the w3c testsuite are rewritten and the context item passed via the variable input-context1, e.g. SchemaValidation/ValidateExpression/validateexpr-17.

Revision history for this message
Chris Hillery (ceejatec) wrote :

For the W3C tests, this is not a problem. In fact, the tests are not rewritten at all. The text of validateexpr-17.xq is exactly the same in the .zip we download from w3.org and when we execute the test. Passing the "context item" by setting the variable $input-context1 is a supported and documented way of running the XQTS; see

  http://dev.w3.org/2006/xquery-test-suite/PublicPagesStagingArea/Guidelines%20for%20Running%20the%20XML%20Query%20Test%20Suite.html

So there is no need to make any changes to testdriver to support XQTS.

If we want the ability to directly test the context item for our own testing, that's another story. But I would actually suggest that we add such an ability to the XQuery-based test driver that is being developed, rather than hacking yet another flag into the current testdriver.

Revision history for this message
David Graf (davidagraf) wrote : Re: [Bug 923672] Re: Impossible to set context-item for rbkt test (externall)

An. Sorry then. I didn't double check. But as you said, the feature is
really missing. Should we keep this bug entry then?

Ps: Are context items set from the external not checked at all by the w3c
tests? Crazy!

On Tuesday, January 31, 2012, Chris Hillery <email address hidden>
wrote:
> For the W3C tests, this is not a problem. In fact, the tests are not
> rewritten at all. The text of validateexpr-17.xq is exactly the same in
> the .zip we download from w3.org and when we execute the test. Passing
> the "context item" by setting the variable $input-context1 is a
> supported and documented way of running the XQTS; see
>
> http://dev.w3.org/2006/xquery-test-
>
suite/PublicPagesStagingArea/Guidelines%20for%20Running%20the%20XML%20Query%20Test%20Suite.html
>
> So there is no need to make any changes to testdriver to support XQTS.
>
> If we want the ability to directly test the context item for our own
> testing, that's another story. But I would actually suggest that we add
> such an ability to the XQuery-based test driver that is being developed,
> rather than hacking yet another flag into the current testdriver.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/923672
>
> Title:
> Impossible to set context-item for rbkt test (externall)
>
> Status in Zorba - The XQuery Processor:
> New
>
> Bug description:
> Currently, there is no way to set the context item before executing an
> rbkt test. Therefore, many tests of the w3c testsuite are rewritten
> and the context item passed via the variable input-context1, e.g.
> SchemaValidation/ValidateExpression/validateexpr-17.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zorba/+bug/923672/+subscriptions
>

--
28msec Inc.
http://www.28msec.com/
http://twitter.com/28msec

Changed in zorba:
importance: Undecided → Medium
assignee: nobody → Chris Hillery (ceejatec)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.