Merge lp:~zorba-coders/zorba/fix_bug_1018737 into lp:zorba

Proposed by Sorin Marian Nasoi
Status: Merged
Approved by: Sorin Marian Nasoi
Approved revision: 10900
Merged at revision: 10956
Proposed branch: lp:~zorba-coders/zorba/fix_bug_1018737
Merge into: lp:zorba
Diff against target: 570 lines (+166/-61)
8 files modified
doc/zorba/conformance.dox (+19/-15)
doc/zorba/conformanceXQFTTS.dox (+7/-6)
doc/zorba/conformanceXQTS.dox (+8/-8)
doc/zorba/conformanceXQUTS.dox (+9/-8)
scripts/sanity_checks/README.txt (+19/-5)
scripts/sanity_checks/conformance_xqftts.xqi (+33/-4)
scripts/sanity_checks/conformance_xqts.xqi (+36/-9)
scripts/sanity_checks/conformance_xquts.xqi (+35/-6)
To merge this branch: bzr merge lp:~zorba-coders/zorba/fix_bug_1018737
Reviewer Review Type Date Requested Status
William Candillon Approve
Sorin Marian Nasoi Approve
Review via email: mp+116609@code.launchpad.net

Commit message

- added information about the Zorba and XQTS versions that were used in generating the reports
- updated the README.txt with info regarding conformance reports generation

Description of the change

- added information about the Zorba and XQTS versions that were used in generating the reports
- updated the README.txt with info regarding conformance reports generation

To post a comment you must log in.
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) :
review: Approve
Revision history for this message
William Candillon (wcandillon) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job fix_bug_1018737-2012-07-27T11-31-02.972Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/zorba/conformance.dox'
--- doc/zorba/conformance.dox 2012-07-24 08:48:48 +0000
+++ doc/zorba/conformance.dox 2012-07-25 09:24:20 +0000
@@ -59,6 +59,7 @@
5959
6060
61This is the W3C XQuery 1.0 conformance summary:61This is the W3C XQuery 1.0 conformance summary:
62 In generating the report we used Zorba version 2.5 that can be downloaded from https://launchpad.net/zorba/trunk/2.5 and XQTS version 'current' (XQTS taken from W3C CVS as of 2012-01-12).
62<table bgcolor="lightcyan">63<table bgcolor="lightcyan">
63 <tr>64 <tr>
64 <td>W3C XQuery 1.0 features</td>65 <td>W3C XQuery 1.0 features</td>
@@ -73,18 +74,18 @@
73 <tr bgcolor="lightcyan">74 <tr bgcolor="lightcyan">
74 <td bgcolor="lightcyan">Minimal Conformance</td>75 <td bgcolor="lightcyan">Minimal Conformance</td>
75 <td align="center" bgcolor="palegreen">17497/17499<br />99.99%</td>76 <td align="center" bgcolor="palegreen">17497/17499<br />99.99%</td>
76 <td align="center" bgcolor="palegreen">17497/17499<br />99.99%</td>77 <td align="center" bgcolor="palegreen">17495/17499<br />99.98%</td>
77 </tr>78 </tr>
78 <tr bgcolor="lightcyan">79 <tr bgcolor="lightcyan">
79 <td bgcolor="lightcyan">Optional Features</td>80 <td bgcolor="lightcyan">Optional Features</td>
80 <td align="center" bgcolor="palegreen">538/540<br />99.63%</td>81 <td align="center" bgcolor="palegreen">539/540<br />99.81%</td>
81 <td align="center" bgcolor="palegreen">538/540<br />99.63%</td>82 <td align="center" bgcolor="palegreen">539/540<br />99.81%</td>
82 </tr>83 </tr>
83 <tr bgcolor="lightcyan">84 <tr bgcolor="lightcyan">
84 <td bgcolor="lightcyan">  Schema Import Feature</td>85 <td bgcolor="lightcyan">  Schema Import Feature</td>
85 <td align="center" bgcolor="palegreen">178/179<br />86 <td align="center" bgcolor="mediumseagreen">179/179<br />
86 </td>87 </td>
87 <td align="center" bgcolor="palegreen">178/179<br />88 <td align="center" bgcolor="mediumseagreen">179/179<br />
88 </td>89 </td>
89 </tr>90 </tr>
90 <tr bgcolor="lightcyan">91 <tr bgcolor="lightcyan">
@@ -145,7 +146,7 @@
145 <td align="center" bgcolor="mediumseagreen">21/21<br />100%</td>146 <td align="center" bgcolor="mediumseagreen">21/21<br />100%</td>
146 </tr>147 </tr>
147 <tr bgcolor="lightcyan">148 <tr bgcolor="lightcyan">
148 <td bgcolor="lightcyan">FunctX -- A Collection of Functions</td>149 <td bgcolor="lightcyan">FunctX -- A Collection Of Functions</td>
149 <td align="center" bgcolor="mediumseagreen">1127/1127<br />100%</td>150 <td align="center" bgcolor="mediumseagreen">1127/1127<br />100%</td>
150 <td align="center" bgcolor="mediumseagreen">1127/1127<br />100%</td>151 <td align="center" bgcolor="mediumseagreen">1127/1127<br />100%</td>
151 </tr>152 </tr>
@@ -179,6 +180,7 @@
179</table>180</table>
180181
181This is the W3C XQuery Update Facility 1.0 conformance summary:182This is the W3C XQuery Update Facility 1.0 conformance summary:
183 In generating the report we used Zorba version 2.5 that can be downloaded from https://launchpad.net/zorba/trunk/2.5 and XQUTS version 'current' (XQUTS version taken from CVS as of 2012-01-12).
182<table bgcolor="lightcyan">184<table bgcolor="lightcyan">
183 <tr>185 <tr>
184 <td>W3C XQuery Update Facility 1.0 feature</td>186 <td>W3C XQuery Update Facility 1.0 feature</td>
@@ -215,14 +217,14 @@
215 </tr>217 </tr>
216 <tr bgcolor="lightcyan">218 <tr bgcolor="lightcyan">
217 <td bgcolor="lightcyan">Optional Features</td>219 <td bgcolor="lightcyan">Optional Features</td>
218 <td align="center" bgcolor="palegreen">99/126<br />78.57%</td>220 <td align="center" bgcolor="palegreen">97/126<br />76.98%</td>
219 <td align="center" bgcolor="palegreen">99/126<br />78.57%</td>221 <td align="center" bgcolor="palegreen">97/126<br />76.98%</td>
220 </tr>222 </tr>
221 <tr bgcolor="lightcyan">223 <tr bgcolor="lightcyan">
222 <td bgcolor="lightcyan">  Revalidation</td>224 <td bgcolor="lightcyan">  Revalidation</td>
223 <td align="center" bgcolor="mediumseagreen">77/77<br />225 <td align="center" bgcolor="palegreen">76/77<br />
224 </td>226 </td>
225 <td align="center" bgcolor="mediumseagreen">77/77<br />227 <td align="center" bgcolor="palegreen">76/77<br />
226 </td>228 </td>
227 </tr>229 </tr>
228 <tr bgcolor="lightcyan">230 <tr bgcolor="lightcyan">
@@ -241,9 +243,9 @@
241 </tr>243 </tr>
242 <tr bgcolor="lightcyan">244 <tr bgcolor="lightcyan">
243 <td bgcolor="lightcyan">  fn:put applied to nodes other than document and element nodes</td>245 <td bgcolor="lightcyan">  fn:put applied to nodes other than document and element nodes</td>
244 <td align="center" bgcolor="mediumseagreen">8/8<br />246 <td align="center" bgcolor="palegreen">7/8<br />
245 </td>247 </td>
246 <td align="center" bgcolor="mediumseagreen">8/8<br />248 <td align="center" bgcolor="palegreen">7/8<br />
247 </td>249 </td>
248 </tr>250 </tr>
249 <tr bgcolor="lightcyan">251 <tr bgcolor="lightcyan">
@@ -331,6 +333,8 @@
331</table>333</table>
332334
333This is the W3C XQuery and XPath Full Text 1.0 conformance summary:335This is the W3C XQuery and XPath Full Text 1.0 conformance summary:
336In generating the report we used Zorba version 2.5 that can be downloaded from https://launchpad.net/zorba/trunk/2.5 and XQFTTS version 'current' (XQFTTS taken from W3C CVS as of 2012-01-12).
337
334<table bgcolor="lightcyan">338<table bgcolor="lightcyan">
335 <tr>339 <tr>
336 <td>W3C XQuery and XPath Full Text 1.0 features</td>340 <td>W3C XQuery and XPath Full Text 1.0 features</td>
@@ -344,7 +348,7 @@
344 </tr>348 </tr>
345 <tr bgcolor="lightcyan">349 <tr bgcolor="lightcyan">
346 <td bgcolor="lightcyan">Minimal Conformance</td>350 <td bgcolor="lightcyan">Minimal Conformance</td>
347 <td align="center" bgcolor="palegreen">385/429<br />89.74%</td>351 <td align="center" bgcolor="palegreen">384/429<br />89.51%</td>
348 <td align="center" bgcolor="palegreen">374/429<br />87.18%</td>352 <td align="center" bgcolor="palegreen">374/429<br />87.18%</td>
349 </tr>353 </tr>
350 <tr bgcolor="lightcyan">354 <tr bgcolor="lightcyan">
@@ -354,8 +358,8 @@
354 </tr>358 </tr>
355 <tr bgcolor="lightcyan">359 <tr bgcolor="lightcyan">
356 <td bgcolor="lightcyan">Use Cases</td>360 <td bgcolor="lightcyan">Use Cases</td>
357 <td align="center" bgcolor="palegreen">121/135<br />89.63%</td>361 <td align="center" bgcolor="palegreen">120/135<br />88.89%</td>
358 <td align="center" bgcolor="palegreen">103/135<br />76.3%</td>362 <td align="center" bgcolor="palegreen">102/135<br />75.56%</td>
359 </tr>363 </tr>
360 <tr bgcolor="lightcyan">364 <tr bgcolor="lightcyan">
361 <td bgcolor="lightcyan">Consistency in XQFTTS Catalog</td>365 <td bgcolor="lightcyan">Consistency in XQFTTS Catalog</td>
362366
=== modified file 'doc/zorba/conformanceXQFTTS.dox'
--- doc/zorba/conformanceXQFTTS.dox 2012-07-24 08:48:48 +0000
+++ doc/zorba/conformanceXQFTTS.dox 2012-07-25 09:24:20 +0000
@@ -1,6 +1,7 @@
1/** \page conformanceXQFTTS W3C XQuery and XPath Full Text 1.0 Conformance1/** \page conformanceXQFTTS W3C XQuery and XPath Full Text 1.0 Conformance.
22
3 Zorba achieves 89.74% on minimal conformance (84.8% on Optional Features) for the W3C XPath Full Text 1.0 Test Suite.3 In generating the report we used Zorba version 2.5 that can be downloaded from https://launchpad.net/zorba/trunk/2.5 and XQFTTS version 'current' (XQFTTS taken from W3C CVS as of 2012-01-12).
4 Zorba achieves 89.51% on minimal conformance (and 84.8% on Optional Features) for the W3C XPath Full Text 1.0 Test Suite.
4 5
5Please see the table below for more details. 6Please see the table below for more details.
6<table bgcolor="lightcyan">7<table bgcolor="lightcyan">
@@ -236,7 +237,7 @@
236 </tr>237 </tr>
237 <tr bgcolor="lightcyan">238 <tr bgcolor="lightcyan">
238 <td bgcolor="lightcyan">              Full-Text Thesaurus Match Option</td>239 <td bgcolor="lightcyan">              Full-Text Thesaurus Match Option</td>
239 <td align="center" bgcolor="mediumseagreen">10/10</td>240 <td align="center" bgcolor="palegreen">9/10</td>
240 <td align="center" bgcolor="palegreen">7/10</td>241 <td align="center" bgcolor="palegreen">7/10</td>
241 </tr>242 </tr>
242 <tr bgcolor="lightcyan">243 <tr bgcolor="lightcyan">
@@ -466,8 +467,8 @@
466 </tr>467 </tr>
467 <tr bgcolor="lightcyan">468 <tr bgcolor="lightcyan">
468 <td bgcolor="lightcyan">  Use Case "FULL-TEXT-COMPOSABILITY"</td>469 <td bgcolor="lightcyan">  Use Case "FULL-TEXT-COMPOSABILITY"</td>
469 <td align="center" bgcolor="palegreen">6/7</td>470 <td align="center" bgcolor="palegreen">5/7</td>
470 <td align="center" bgcolor="palegreen">4/7</td>471 <td align="center" bgcolor="palegreen">3/7</td>
471 </tr>472 </tr>
472 <tr bgcolor="lightcyan">473 <tr bgcolor="lightcyan">
473 <td bgcolor="lightcyan">  Use Case "XQUERY-XPATH-COMPOSABILITY"</td>474 <td bgcolor="lightcyan">  Use Case "XQUERY-XPATH-COMPOSABILITY"</td>
@@ -485,4 +486,4 @@
485 <td align="center" bgcolor="mediumseagreen">3/3</td>486 <td align="center" bgcolor="mediumseagreen">3/3</td>
486 </tr>487 </tr>
487</table>488</table>
488*/489*/
489\ No newline at end of file490\ No newline at end of file
490491
=== modified file 'doc/zorba/conformanceXQTS.dox'
--- doc/zorba/conformanceXQTS.dox 2012-07-24 08:48:48 +0000
+++ doc/zorba/conformanceXQTS.dox 2012-07-25 09:24:20 +0000
@@ -1,8 +1,8 @@
1/** \page conformanceXQTS W3C XQuery 1.0 Conformance1/** \page conformanceXQTS W3C XQuery 1.0 Conformance
22
3Zorba achieves 99.99% on minimal conformance (and 99.63% on Optional Features) for the W3C XML Query Test Suite.3 In generating the report we used Zorba version 2.5 that can be downloaded from https://launchpad.net/zorba/trunk/2.5 and XQTS version 'current' (XQTS taken from W3C CVS as of 2012-01-12).
4Please see the table below for more details.4 Zorba achieves 99.99% on minimal conformance (and 99.81% on Optional Features) for the W3C XML Query Test Suite.
55Please see the table below for more details.
6<table bgcolor="lightcyan">6<table bgcolor="lightcyan">
7 <tr>7 <tr>
8 <td>W3C XQuery 1.0 features</td>8 <td>W3C XQuery 1.0 features</td>
@@ -687,12 +687,12 @@
687 <tr bgcolor="lightcyan">687 <tr bgcolor="lightcyan">
688 <td bgcolor="lightcyan">      Content</td>688 <td bgcolor="lightcyan">      Content</td>
689 <td align="center" bgcolor="mediumseagreen">126/126</td>689 <td align="center" bgcolor="mediumseagreen">126/126</td>
690 <td align="center" bgcolor="mediumseagreen">126/126</td>690 <td align="center" bgcolor="palegreen">125/126</td>
691 </tr>691 </tr>
692 <tr bgcolor="lightcyan">692 <tr bgcolor="lightcyan">
693 <td bgcolor="lightcyan">      White Space Element Content</td>693 <td bgcolor="lightcyan">      White Space Element Content</td>
694 <td align="center" bgcolor="mediumseagreen">83/83</td>694 <td align="center" bgcolor="mediumseagreen">83/83</td>
695 <td align="center" bgcolor="mediumseagreen">83/83</td>695 <td align="center" bgcolor="palegreen">82/83</td>
696 </tr>696 </tr>
697 <tr bgcolor="lightcyan">697 <tr bgcolor="lightcyan">
698 <td bgcolor="lightcyan">      Other Direct Constructors</td>698 <td bgcolor="lightcyan">      Other Direct Constructors</td>
@@ -1721,8 +1721,8 @@
1721 </tr>1721 </tr>
1722 <tr bgcolor="lightcyan">1722 <tr bgcolor="lightcyan">
1723 <td bgcolor="lightcyan">    Schema Import</td>1723 <td bgcolor="lightcyan">    Schema Import</td>
1724 <td align="center" bgcolor="palegreen">30/31</td>1724 <td align="center" bgcolor="mediumseagreen">31/31</td>
1725 <td align="center" bgcolor="palegreen">30/31</td>1725 <td align="center" bgcolor="mediumseagreen">31/31</td>
1726 </tr>1726 </tr>
1727 <tr bgcolor="lightcyan">1727 <tr bgcolor="lightcyan">
1728 <td bgcolor="lightcyan">    FOR Clause with TypeDeclaration</td>1728 <td bgcolor="lightcyan">    FOR Clause with TypeDeclaration</td>
@@ -3165,4 +3165,4 @@
3165 <td align="center" bgcolor="mediumseagreen">3/3</td>3165 <td align="center" bgcolor="mediumseagreen">3/3</td>
3166 </tr>3166 </tr>
3167</table>3167</table>
3168*/3168*/
3169\ No newline at end of file3169\ No newline at end of file
31703170
=== modified file 'doc/zorba/conformanceXQUTS.dox'
--- doc/zorba/conformanceXQUTS.dox 2012-07-24 08:48:48 +0000
+++ doc/zorba/conformanceXQUTS.dox 2012-07-25 09:24:20 +0000
@@ -1,8 +1,9 @@
1/** \page conformanceXQUTS W3C XQuery Update Facility 1.0 Conformance1/** \page conformanceXQUTS W3C XQuery Update Facility 1.0 Conformance
22
3Zorba achieves 100% on minimal conformance (and 78.57% on Optional Features) for the XQuery Update Facility Test Suite.3 In generating the report we used Zorba version 2.5 that can be downloaded from https://launchpad.net/zorba/trunk/2.5 and XQUTS version 'current' (XQUTS version taken from CVS as of 2012-01-12).
4Please see the table below for more details.4 Zorba achieves 100% on minimal conformance (and 76.98% on Optional Features) for the W3C XQuery Update Facility Test Suite.
55
6Please see the table below for more details.
6<table bgcolor="lightcyan">7<table bgcolor="lightcyan">
7 <tr>8 <tr>
8 <td>W3C XQuery Update Facility 1.0 features</td>9 <td>W3C XQuery Update Facility 1.0 features</td>
@@ -236,8 +237,8 @@
236 </tr>237 </tr>
237 <tr bgcolor="lightcyan">238 <tr bgcolor="lightcyan">
238 <td bgcolor="lightcyan">    Revalidation Declaration = strict + skip</td>239 <td bgcolor="lightcyan">    Revalidation Declaration = strict + skip</td>
239 <td align="center" bgcolor="mediumseagreen">1/1</td>240 <td align="center" bgcolor="coral">0/1</td>
240 <td align="center" bgcolor="mediumseagreen">1/1</td>241 <td align="center" bgcolor="coral">0/1</td>
241 </tr>242 </tr>
242 <tr bgcolor="lightcyan">243 <tr bgcolor="lightcyan">
243 <td bgcolor="lightcyan">  Update Facility Static Typing Feature</td>244 <td bgcolor="lightcyan">  Update Facility Static Typing Feature</td>
@@ -276,8 +277,8 @@
276 </tr>277 </tr>
277 <tr bgcolor="lightcyan">278 <tr bgcolor="lightcyan">
278 <td bgcolor="lightcyan">    fn:put() applied to attribute nodes</td>279 <td bgcolor="lightcyan">    fn:put() applied to attribute nodes</td>
279 <td align="center" bgcolor="mediumseagreen">1/1</td>280 <td align="center" bgcolor="coral">0/1</td>
280 <td align="center" bgcolor="mediumseagreen">1/1</td>281 <td align="center" bgcolor="coral">0/1</td>
281 </tr>282 </tr>
282 <tr bgcolor="lightcyan">283 <tr bgcolor="lightcyan">
283 <td bgcolor="lightcyan">    fn:put() applied to attribute nodes - unsupported</td>284 <td bgcolor="lightcyan">    fn:put() applied to attribute nodes - unsupported</td>
@@ -330,4 +331,4 @@
330 <td align="center" bgcolor="mediumseagreen">1/1</td>331 <td align="center" bgcolor="mediumseagreen">1/1</td>
331 </tr>332 </tr>
332</table>333</table>
333*/334*/
334\ No newline at end of file335\ No newline at end of file
335336
=== modified file 'scripts/sanity_checks/README.txt'
--- scripts/sanity_checks/README.txt 2012-07-24 08:48:48 +0000
+++ scripts/sanity_checks/README.txt 2012-07-25 09:24:20 +0000
@@ -1,17 +1,31 @@
1The command ./zorba -f -q /tmp/XQTS_current/run_xqts.xq generates:11) compile Zorba by setting the following flags:
2cmake -DZORBA_TEST_XQUERYX=ON -DZORBA_XQUERYX=ON -DZORBA_WITH_BIG_INTEGER=ON -DZORBA_TEST_W3C_TO_SUBMIT_RESULTS=ON -DZORBA_MODULES_DIR="/home" ..
3
42) import the 3 testsuites by running:
5$zorbaDir/test/rbkt/Scripts/w3c/import_w3c_testsuite.sh $zorbaDir
6$zorbaDir/test/rbkt/Scripts/w3c/import_w3c_full_text_testsuite.sh $zorbaDir
7$zorbaDir/test/update/Scripts/import_w3c_update_testsuite.sh $zorbaDir
8
93) Generate the conformance reports following the details provided in:
10 - test/rbtk/Scripts/w3c/Readme.txt
11 - test/update/Scripts/Readme.txt
12The latest reports can also be downloaded from the private wiki: http://my.zorba-xquery.com/dokuwiki/doku.php
13
144.1) The command ./zorba -f -q ../../scripts/sanity_checks/run_xqts.xq generates:
2- /tmp/XQTS_current/conformanceXQTS.dox15- /tmp/XQTS_current/conformanceXQTS.dox
3- /tmp/XQTS_current/conformanceXQTSSummary.dox16- /tmp/XQTS_current/conformanceXQTSSummary.dox
4Note: this takes quite a long time because there are over 28000 tests to be processed(14000 XQuery and the same for XQueryX)17Note: this should take around 2 minutes because there are over 28000 tests to be processed(14000 XQuery and the same for XQueryX)
5Also there are over 580 XQueryX tests for which there are no results reported in the submission XML.18Also there are over 402 XQueryX tests for which there are no results reported in the submission XML.
619
7The command ./zorba -f -q /tmp/XQTS_current/run_xquts.xq generates:204.2) The command ./zorba -f -q ../../scripts/sanity_checks/run_xquts.xq generates:
8- /tmp/XQUTS_current/conformanceXQUTS.dox21- /tmp/XQUTS_current/conformanceXQUTS.dox
9- /tmp/XQUTS_current/conformanceXQUTSSummary.dox22- /tmp/XQUTS_current/conformanceXQUTSSummary.dox
1023
11The command ./zorba -f -q /tmp/XQTS_current/run_xqftts.xq generates:244.3) The command ./zorba -f -q ../../scripts/sanity_checks/run_xqftts.xq generates:
12- /tmp/XQFTTS_current/conformanceXQFTTS.dox25- /tmp/XQFTTS_current/conformanceXQFTTS.dox
13- /tmp/XQFTTS_current/conformanceXQFTTSSummary.dox26- /tmp/XQFTTS_current/conformanceXQFTTSSummary.dox
1427
28
15Here is how the query work:29Here is how the query work:
16- they load the correct catalog(XQTSCatalog.xml, XQUTSCatalog.xml or XQFTTSCatalog.xml)30- they load the correct catalog(XQTSCatalog.xml, XQUTSCatalog.xml or XQFTTSCatalog.xml)
17- they load the submission XML's for XQuery and XQueryX31- they load the submission XML's for XQuery and XQueryX
1832
=== modified file 'scripts/sanity_checks/conformance_xqftts.xqi'
--- scripts/sanity_checks/conformance_xqftts.xqi 2012-07-24 08:48:48 +0000
+++ scripts/sanity_checks/conformance_xqftts.xqi 2012-07-25 09:24:20 +0000
@@ -57,9 +57,17 @@
57declare %private variable $conf:XQuery as xs:string := "XQuery";57declare %private variable $conf:XQuery as xs:string := "XQuery";
58declare %private variable $conf:XQueryX as xs:string := "XQueryX";58declare %private variable $conf:XQueryX as xs:string := "XQueryX";
5959
60declare %private variable $conf:infos := <infos/>;
60declare %private variable $conf:features := <features/>;61declare %private variable $conf:features := <features/>;
62declare %private variable $conf:numbers := <numbers/>;
6163
62declare %private variable $conf:numbers := <numbers/>;64declare %private %ann:sequential function conf:collect-info(
65 $name as xs:string,
66 $version as xs:string,
67 $info as xs:string)
68{
69 insert node <info name ="{$name}" version="{$version}" info="{$info}"/> as last into $conf:infos;
70};
6371
64declare %private %ann:sequential function conf:collect-feature(72declare %private %ann:sequential function conf:collect-feature(
65 $name as xs:string, 73 $name as xs:string,
@@ -327,7 +335,15 @@
327 variable $docXQ := fn:parse-xml(file:read-text(file:resolve-path($conf:XQFTTS_submission)));335 variable $docXQ := fn:parse-xml(file:read-text(file:resolve-path($conf:XQFTTS_submission)));
328 for $test in $docXQ/xqRes:test-suite-result//xqRes:test-case336 for $test in $docXQ/xqRes:test-suite-result//xqRes:test-case
329 return dml:apply-insert-nodes($conf:submissionXquery, $test);337 return dml:apply-insert-nodes($conf:submissionXquery, $test);
330 338
339 conf:collect-info("Zorba",
340 data($docXQ/xqRes:test-suite-result/xqRes:implementation/@version),
341 "");
342 conf:collect-info("XQFTTS",
343 data($docXQ/xqRes:test-suite-result/xqRes:test-run/xqRes:test-suite/@version),
344 normalize-space(data($docXQ/xqRes:test-suite-result/xqRes:test-run/xqRes:otherComments)));
345
346
331 (: collect features :)347 (: collect features :)
332 for $feature in $docXQ/xqRes:test-suite-result/xqRes:implementation/xqRes:features/xqRes:feature348 for $feature in $docXQ/xqRes:test-suite-result/xqRes:implementation/xqRes:features/xqRes:feature
333 return349 return
@@ -391,7 +407,7 @@
391 return407 return
392 concat("Zorba achieves ",408 concat("Zorba achieves ",
393 $minConf, 409 $minConf,
394 "% on minimal conformance (", 410 "% on minimal conformance (and ",
395 string-join(( for $number in $conf:numbers/number where xs:string($number/@name) eq "Optional Features" 411 string-join(( for $number in $conf:numbers/number where xs:string($number/@name) eq "Optional Features"
396 return concat(xs:string(data($number/@value)),"% on ",xs:string(data($number/@name)))),", "),412 return concat(xs:string(data($number/@value)),"% on ",xs:string(data($number/@name)))),", "),
397 ") for the W3C XPath Full Text 1.0 Test Suite.413 ") for the W3C XPath Full Text 1.0 Test Suite.
@@ -408,13 +424,24 @@
408 conf:create-collection($conf:XQueryX, $XQTS_catalog);424 conf:create-collection($conf:XQueryX, $XQTS_catalog);
409425
410 variable $pageNameSummary := "conformanceXQFTTSSummary";426 variable $pageNameSummary := "conformanceXQFTTSSummary";
411 variable $pathSummary := fn:concat($conf:XQFTTS_PATH, file:directory-separator(), $pageNameSummary, ".dox"); 427 variable $pathSummary := fn:concat($conf:XQFTTS_PATH, file:directory-separator(), $pageNameSummary, ".dox");
428 variable $details := concat("In generating the report we used Zorba version ",
429 tokenize(data($conf:infos//info[@name="Zorba"]/@version),"/")[last()],
430 " that can be downloaded from ",
431 data($conf:infos//info[@name="Zorba"]/@version),
432 " and XQFTTS version '",
433 data($conf:infos//info[@name="XQFTTS"]/@version),
434 "' (",
435 data($conf:infos//info[@name="XQFTTS"]/@info),
436 ").");
412 437
413 file:write(trace($pathSummary,"output file path"),438 file:write(trace($pathSummary,"output file path"),
414 ("/** \page conformanceXQFTTSSummary Summary W3C XQuery and XPath Full Text 1.0 conformance.439 ("/** \page conformanceXQFTTSSummary Summary W3C XQuery and XPath Full Text 1.0 conformance.
415440
416The following table shows the supported features:441The following table shows the supported features:
417",442",
443 {$details},"
444",
418 {conf:generate-features-table()},"445 {conf:generate-features-table()},"
419",446",
420 {conf:generate-summary-table($XQTS_catalog)}447 {conf:generate-summary-table($XQTS_catalog)}
@@ -429,6 +456,8 @@
429 ("/** \page conformanceXQFTTS W3C XQuery and XPath Full Text 1.0 Conformance.456 ("/** \page conformanceXQFTTS W3C XQuery and XPath Full Text 1.0 Conformance.
430457
431",458",
459 {$details},"
460",
432 {conf:create-summary-string()},"461 {conf:create-summary-string()},"
433",462",
434 {conf:generate-detailed-table($XQTS_catalog)}463 {conf:generate-detailed-table($XQTS_catalog)}
435464
=== modified file 'scripts/sanity_checks/conformance_xqts.xqi'
--- scripts/sanity_checks/conformance_xqts.xqi 2012-07-24 08:48:48 +0000
+++ scripts/sanity_checks/conformance_xqts.xqi 2012-07-25 09:24:20 +0000
@@ -63,13 +63,21 @@
63declare %private variable $conf:XQuery as xs:string := "XQuery";63declare %private variable $conf:XQuery as xs:string := "XQuery";
64declare %private variable $conf:XQueryX as xs:string := "XQueryX";64declare %private variable $conf:XQueryX as xs:string := "XQueryX";
6565
66declare %private variable $conf:infos := <infos/>;
66declare %private variable $conf:features := <features/>;67declare %private variable $conf:features := <features/>;
68declare %private variable $conf:numbers := <numbers/>;
6769
68declare %private variable $conf:numbers := <numbers/>;70declare %private %ann:sequential function conf:collect-info(
71 $name as xs:string,
72 $version as xs:string,
73 $info as xs:string)
74{
75 insert node <info name ="{$name}" version="{$version}" info="{$info}"/> as last into $conf:infos;
76};
6977
70declare %private %ann:sequential function conf:collect-feature(78declare %private %ann:sequential function conf:collect-feature(
71 $name as xs:string, 79 $name as xs:string,
72 $supported as xs:string) 80 $supported as xs:string)
73{81{
74 insert node <feature name ="{$name}" supported="{$supported}" /> as last into $conf:features;82 insert node <feature name ="{$name}" supported="{$supported}" /> as last into $conf:features;
75};83};
@@ -341,10 +349,17 @@
341 ddl:create($conf:submissionXquery);349 ddl:create($conf:submissionXquery);
342 350
343 variable $doc := fn:parse-xml(file:read-text(file:resolve-path($conf:XQTS_submission)));351 variable $doc := fn:parse-xml(file:read-text(file:resolve-path($conf:XQTS_submission)));
344352
345 for $test in $doc/xqRes:test-suite-result//xqRes:test-case353 for $test in $doc/xqRes:test-suite-result//xqRes:test-case
346 return dml:apply-insert-nodes($conf:submissionXquery, $test);354 return dml:apply-insert-nodes($conf:submissionXquery, $test);
347355
356 conf:collect-info("Zorba",
357 data($doc/xqRes:test-suite-result/xqRes:implementation/@version),
358 "");
359 conf:collect-info("XQTS",
360 data($doc/xqRes:test-suite-result/xqRes:test-run/xqRes:test-suite/@version),
361 normalize-space(data($doc/xqRes:test-suite-result/xqRes:test-run/xqRes:otherComments)));
362
348 (: collect features :)363 (: collect features :)
349 for $feature in $doc/xqRes:test-suite-result/xqRes:implementation/xqRes:features/xqRes:feature364 for $feature in $doc/xqRes:test-suite-result/xqRes:implementation/xqRes:features/xqRes:feature
350 return365 return
@@ -413,13 +428,12 @@
413{428{
414 let $minConf := for $number in $conf:numbers/number where xs:string($number/@name) eq "Minimal Conformance" return xs:string(data($number/@value))429 let $minConf := for $number in $conf:numbers/number where xs:string($number/@name) eq "Minimal Conformance" return xs:string(data($number/@value))
415 return430 return
416 concat("Zorba achieves ",431 concat( "Zorba achieves ",
417 $minConf, 432 $minConf,
418 "% on Minimal conformance (", 433 "% on minimal conformance (and ",
419 string-join(( for $number in $conf:numbers/number where xs:string($number/@name) eq "Optional Features" 434 string-join(( for $number in $conf:numbers/number where xs:string($number/@name) eq "Optional Features"
420 return concat(xs:string(data($number/@value)),"% on ",xs:string(data($number/@name)))),", "),435 return concat(xs:string(data($number/@value)),"% on ",xs:string(data($number/@name)))),", "),
421 ") for the W3C XML Query Test Suite.436 ") for the W3C XML Query Test Suite.
422
423Please see the table below for more details.")437Please see the table below for more details.")
424438
425};439};
@@ -443,12 +457,23 @@
443 conf:create-collection($conf:XQuery, $XQTS_catalog);457 conf:create-collection($conf:XQuery, $XQTS_catalog);
444 conf:create-collection($conf:XQueryX, $XQTS_catalog);458 conf:create-collection($conf:XQueryX, $XQTS_catalog);
445 459
460 variable $details := concat("In generating the report we used Zorba version ",
461 tokenize(data($conf:infos//info[@name="Zorba"]/@version),"/")[last()],
462 " that can be downloaded from ",
463 data($conf:infos//info[@name="Zorba"]/@version),
464 " and XQTS version '",
465 data($conf:infos//info[@name="XQTS"]/@version),
466 "' (",
467 data($conf:infos//info[@name="XQTS"]/@info),
468 ").");
446 variable $pageNameSummary := "conformanceXQTSSummary";469 variable $pageNameSummary := "conformanceXQTSSummary";
447 variable $pathSummary := fn:concat($conf:XQTS_PATH, file:directory-separator(), $pageNameSummary, ".dox");470 variable $pathSummary := fn:concat($conf:XQTS_PATH, file:directory-separator(), $pageNameSummary, ".dox");
448 file:write(trace($pathSummary,"output summary file path"),471 file:write(trace($pathSummary,"output summary file path"),
449 ("/** \page conformanceXQTSSummary Summary W3C XQuery 1.0 conformance472 ("/** \page conformanceXQTSSummary Summary W3C XQuery 1.0 conformance
450473
451",474",
475 {$details},"
476",
452 {conf:generate-features-table()},"477 {conf:generate-features-table()},"
453",478",
454 {conf:generate-summary-table($XQTS_catalog)}479 {conf:generate-summary-table($XQTS_catalog)}
@@ -460,9 +485,11 @@
460 variable $pathDetailed := fn:concat($conf:XQTS_PATH, file:directory-separator(), $pageNameDetailed, ".dox");485 variable $pathDetailed := fn:concat($conf:XQTS_PATH, file:directory-separator(), $pageNameDetailed, ".dox");
461486
462 file:write(trace($pathDetailed,"output detailed file path"),487 file:write(trace($pathDetailed,"output detailed file path"),
463 ("/** \page conformanceXQTS W3C XQuery 1.0 Conformance.488 ("/** \page conformanceXQTS W3C XQuery 1.0 Conformance
464489
465",490",
491 {$details},"
492",
466 {conf:create-summary-string()},"493 {conf:create-summary-string()},"
467",494",
468 {conf:generate-detailed-table($XQTS_catalog)}495 {conf:generate-detailed-table($XQTS_catalog)}
469496
=== modified file 'scripts/sanity_checks/conformance_xquts.xqi'
--- scripts/sanity_checks/conformance_xquts.xqi 2012-07-24 08:48:48 +0000
+++ scripts/sanity_checks/conformance_xquts.xqi 2012-07-25 09:24:20 +0000
@@ -51,16 +51,24 @@
51declare %private variable $conf:XQUTS_PATH as xs:string := "/tmp/XQUTS_current";51declare %private variable $conf:XQUTS_PATH as xs:string := "/tmp/XQUTS_current";
5252
53declare %private variable $conf:XQUTS_submission as xs:string := 53declare %private variable $conf:XQUTS_submission as xs:string :=
54"/tmp/XQUTS_current/ReportingResults/zorba_11674_xquts_current.xml";54"/tmp/XQUTS_current/ReportingResults/zorba_xquts_submission.xml";
55declare variable $conf:XQUTSX_submission as xs:string := 55declare variable $conf:XQUTSX_submission as xs:string :=
56"/tmp/XQUTS_current/ReportingResults/zorba_11674_xqutsx_current.xml";56"/tmp/XQUTS_current/ReportingResults/zorba_xqutsx_submission.xml";
5757
58declare %private variable $conf:XQuery as xs:string := "XQuery";58declare %private variable $conf:XQuery as xs:string := "XQuery";
59declare %private variable $conf:XQueryX as xs:string := "XQueryX";59declare %private variable $conf:XQueryX as xs:string := "XQueryX";
6060
61declare %private variable $conf:infos := <infos/>;
61declare %private variable $conf:features := <features/>;62declare %private variable $conf:features := <features/>;
63declare %private variable $conf:numbers := <numbers/>;
6264
63declare %private variable $conf:numbers := <numbers/>;65declare %private %ann:sequential function conf:collect-info(
66 $name as xs:string,
67 $version as xs:string,
68 $info as xs:string)
69{
70 insert node <info name ="{$name}" version="{$version}" info="{$info}"/> as last into $conf:infos;
71};
6472
65declare %private %ann:sequential function conf:collect-feature(73declare %private %ann:sequential function conf:collect-feature(
66 $name as xs:string, 74 $name as xs:string,
@@ -323,6 +331,13 @@
323 for $test in $doc/xqRes:test-suite-result//xqRes:test-case331 for $test in $doc/xqRes:test-suite-result//xqRes:test-case
324 return dml:apply-insert-nodes($conf:submissionXquery, $test);332 return dml:apply-insert-nodes($conf:submissionXquery, $test);
325333
334 conf:collect-info("Zorba",
335 data($doc/xqRes:test-suite-result/xqRes:implementation/@version),
336 "");
337 conf:collect-info("XQUTS",
338 data($doc/xqRes:test-suite-result/xqRes:test-run/xqRes:test-suite/@version),
339 normalize-space(data($doc/xqRes:test-suite-result/xqRes:test-run/xqRes:otherComments)));
340
326 (: collect features :)341 (: collect features :)
327 for $feature in $doc/xqRes:test-suite-result/xqRes:implementation/xqRes:features/xqRes:feature342 for $feature in $doc/xqRes:test-suite-result/xqRes:implementation/xqRes:features/xqRes:feature
328 return343 return
@@ -393,7 +408,7 @@
393 return408 return
394 concat("Zorba achieves ",409 concat("Zorba achieves ",
395 $minConf, 410 $minConf,
396 "% on Minimal conformance (", 411 "% on minimal conformance (and ",
397 string-join(( for $number in $conf:numbers/number where xs:string($number/@name) eq "Optional Features" 412 string-join(( for $number in $conf:numbers/number where xs:string($number/@name) eq "Optional Features"
398 return concat(xs:string(data($number/@value)),"% on ",xs:string(data($number/@name)))),", "),413 return concat(xs:string(data($number/@value)),"% on ",xs:string(data($number/@name)))),", "),
399 ") for the W3C XQuery Update Facility Test Suite.414 ") for the W3C XQuery Update Facility Test Suite.
@@ -409,13 +424,25 @@
409 conf:create-collection($conf:XQueryX, $XQTS_catalog);424 conf:create-collection($conf:XQueryX, $XQTS_catalog);
410 425
411 variable $pageNameSummary := "conformanceXQUTSSummary";426 variable $pageNameSummary := "conformanceXQUTSSummary";
412 variable $pathSummary := fn:concat($conf:XQUTS_PATH, file:directory-separator(), $pageNameSummary, ".dox"); 427 variable $pathSummary := fn:concat($conf:XQUTS_PATH, file:directory-separator(), $pageNameSummary, ".dox");
428
429 variable $details := concat("In generating the report we used Zorba version ",
430 tokenize(data($conf:infos//info[@name="Zorba"]/@version),"/")[last()],
431 " that can be downloaded from ",
432 data($conf:infos//info[@name="Zorba"]/@version),
433 " and XQUTS version '",
434 data($conf:infos//info[@name="XQUTS"]/@version),
435 "' (",
436 data($conf:infos//info[@name="XQUTS"]/@info),
437 ").");
413 438
414 file:write(trace($pathSummary,"output file path"),439 file:write(trace($pathSummary,"output file path"),
415 ("/** \page conformanceXQUTSSummary Summary W3C XQuery Update Facility 1.0 conformance440 ("/** \page conformanceXQUTSSummary Summary W3C XQuery Update Facility 1.0 conformance
416441
417The following table shows the supported features:442The following table shows the supported features:
418",443",
444 {$details},"
445",
419 {conf:generate-features-table()},"446 {conf:generate-features-table()},"
420",447",
421 {conf:generate-summary-table($XQTS_catalog)}448 {conf:generate-summary-table($XQTS_catalog)}
@@ -427,9 +454,11 @@
427 variable $pathDetailed := fn:concat($conf:XQUTS_PATH, file:directory-separator(), $pageNameDetailed, ".dox"); 454 variable $pathDetailed := fn:concat($conf:XQUTS_PATH, file:directory-separator(), $pageNameDetailed, ".dox");
428 455
429 file:write(trace($pathDetailed,"output file path"),456 file:write(trace($pathDetailed,"output file path"),
430 ("/** \page conformanceXQUTS W3C XQuery Update Facility 1.0 Conformance.457 ("/** \page conformanceXQUTS W3C XQuery Update Facility 1.0 Conformance
431458
432",459",
460 {$details},"
461",
433 {conf:create-summary-string()},"462 {conf:create-summary-string()},"
434",463",
435 {conf:generate-detailed-table($XQTS_catalog)}464 {conf:generate-detailed-table($XQTS_catalog)}

Subscribers

People subscribed via source and target branches