Impossible to set context-item for rbkt test (externall)
Bug #923672 reported by
David Graf
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. SchemaValidatio
Changed in zorba: | |
importance: | Undecided → Medium |
assignee: | nobody → Chris Hillery (ceejatec) |
To post a comment you must log in.
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/ PublicPagesStag ingArea/ 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.