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

Proposed by Sorin Marian Nasoi
Status: Merged
Approved by: Sorin Marian Nasoi
Approved revision: 11504
Merged at revision: 11507
Proposed branch: lp:~zorba-coders/zorba/fix_bug_1187807
Merge into: lp:zorba
Diff against target: 228 lines (+45/-37)
3 files modified
test/fots/CMakeLists.txt (+4/-7)
test/fots_driver/environment.xq (+16/-5)
test/fots_driver/fots-driver.xq (+25/-25)
To merge this branch: bzr merge lp:~zorba-coders/zorba/fix_bug_1187807
Reviewer Review Type Date Requested Status
Sorin Marian Nasoi Approve
Chris Hillery Approve
Review via email: mp+168681@code.launchpad.net

Commit message

- temporary fix for lp:1187807: FOTS driver adds a base-uri in the prolog; the complete/clean fix requires lp:1133806 to be fixed.

To post a comment you must log in.
11501. By sorin.marian.nasoi <email address hidden>

- fix for lp:1187807

11502. By sorin.marian.nasoi <email address hidden>

- updated LP bug numbers.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) :
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_1187807-2013-06-11T14-55-55.909Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1, Needs Fixing < 1, Pending < 1, Needs Information < 1, Resubmit < 1. Got: 1 Approve, 1 Pending.

11503. By sorin.marian.nasoi <email address hidden>

- corrected LP byg number

Revision history for this message
Chris Hillery (ceejatec) :
review: Approve
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) :
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_1187807-2013-06-12T08-06-04.45Z 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 'test/fots/CMakeLists.txt'
--- test/fots/CMakeLists.txt 2013-06-11 15:47:07 +0000
+++ test/fots/CMakeLists.txt 2013-06-12 08:04:28 +0000
@@ -129,6 +129,7 @@
129EXPECTED_FOTS_FAILURE (DISPUTED fn-format-dateTime format-dateTime-006 22282)129EXPECTED_FOTS_FAILURE (DISPUTED fn-format-dateTime format-dateTime-006 22282)
130EXPECTED_FOTS_FAILURE (DISPUTED misc-XMLEdition XML10-4ed-Excluded-char-1 13869)130EXPECTED_FOTS_FAILURE (DISPUTED misc-XMLEdition XML10-4ed-Excluded-char-1 13869)
131EXPECTED_FOTS_FAILURE (DISPUTED prod-ModuleImport modules-22 22317)131EXPECTED_FOTS_FAILURE (DISPUTED prod-ModuleImport modules-22 22317)
132EXPECTED_FOTS_FAILURE (DISPUTED app-CatalogCheck Catalog011 22327)
132133
133# Next three possibly unique to old RQ machine, but they need to be134# Next three possibly unique to old RQ machine, but they need to be
134# marked for the RQ to pass.135# marked for the RQ to pass.
@@ -140,8 +141,6 @@
140# This test passes on the old and new RQ machines, but fails for Sorin.141# This test passes on the old and new RQ machines, but fails for Sorin.
141#EXPECTED_FOTS_FAILURE (fn-normalize-unicode fn-normalize-unicode-11 0)142#EXPECTED_FOTS_FAILURE (fn-normalize-unicode fn-normalize-unicode-11 0)
142143
143EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog010 1187807)
144EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog011 1187807)
145EXPECTED_FOTS_FAILURE (fn-fold-left fold-left-009 1187685)144EXPECTED_FOTS_FAILURE (fn-fold-left fold-left-009 1187685)
146EXPECTED_FOTS_FAILURE (fn-for-each-pair fn-for-each-pair-026 1187685)145EXPECTED_FOTS_FAILURE (fn-for-each-pair fn-for-each-pair-026 1187685)
147EXPECTED_FOTS_FAILURE (fn-format-number numberformat60a 1167609)146EXPECTED_FOTS_FAILURE (fn-format-number numberformat60a 1167609)
@@ -160,10 +159,8 @@
160EXPECTED_FOTS_FAILURE (fn-normalize-space fn-normalize-space-25 1187802)159EXPECTED_FOTS_FAILURE (fn-normalize-space fn-normalize-space-25 1187802)
161EXPECTED_FOTS_FAILURE (fn-normalize-unicode cbcl-fn-normalize-unicode-001 1187813)160EXPECTED_FOTS_FAILURE (fn-normalize-unicode cbcl-fn-normalize-unicode-001 1187813)
162EXPECTED_FOTS_FAILURE (fn-normalize-unicode cbcl-fn-normalize-unicode-006 1187813)161EXPECTED_FOTS_FAILURE (fn-normalize-unicode cbcl-fn-normalize-unicode-006 1187813)
163EXPECTED_FOTS_FAILURE (fn-parse-xml parse-xml-001 1187807)162EXPECTED_FOTS_FAILURE (fn-parse-xml parse-xml-010 1189927)
164EXPECTED_FOTS_FAILURE (fn-parse-xml parse-xml-010 1188260)163EXPECTED_FOTS_FAILURE (fn-parse-xml parse-xml-011 1188260)
165EXPECTED_FOTS_FAILURE (fn-parse-xml parse-xml-011 1187807)
166EXPECTED_FOTS_FAILURE (fn-parse-xml-fragment parse-xml-fragment-001 1187807)
167EXPECTED_FOTS_FAILURE (fn-parse-xml-fragment parse-xml-fragment-016 1188269)164EXPECTED_FOTS_FAILURE (fn-parse-xml-fragment parse-xml-fragment-016 1188269)
168EXPECTED_FOTS_FAILURE (fn-parse-xml-fragment parse-xml-fragment-017 1188269)165EXPECTED_FOTS_FAILURE (fn-parse-xml-fragment parse-xml-fragment-017 1188269)
169EXPECTED_FOTS_FAILURE (fn-parse-xml-fragment parse-xml-fragment-020 1188269)166EXPECTED_FOTS_FAILURE (fn-parse-xml-fragment parse-xml-fragment-020 1188269)
@@ -218,7 +215,7 @@
218EXPECTED_FOTS_FAILURE (prod-Annotation annotation-assertion-8 1172270)215EXPECTED_FOTS_FAILURE (prod-Annotation annotation-assertion-8 1172270)
219EXPECTED_FOTS_FAILURE (prod-Annotation annotation-assertion-9 1172270)216EXPECTED_FOTS_FAILURE (prod-Annotation annotation-assertion-9 1172270)
220EXPECTED_FOTS_FAILURE (prod-Annotation annotation-assertion-10 1172270)217EXPECTED_FOTS_FAILURE (prod-Annotation annotation-assertion-10 1172270)
221EXPECTED_FOTS_FAILURE (prod-BaseURIDecl K2-BaseURIProlog-5 1187807)218EXPECTED_FOTS_FAILURE (prod-BaseURIDecl K2-BaseURIProlog-5 1133806)
222EXPECTED_FOTS_FAILURE (prod-CastableExpr K-SeqExprCastable-5a 1188281)219EXPECTED_FOTS_FAILURE (prod-CastableExpr K-SeqExprCastable-5a 1188281)
223EXPECTED_FOTS_FAILURE (prod-CastExpr CastAsNamespaceSensitiveType-11 1188279)220EXPECTED_FOTS_FAILURE (prod-CastExpr CastAsNamespaceSensitiveType-11 1188279)
224EXPECTED_FOTS_FAILURE (prod-CastExpr CastAsNamespaceSensitiveType-12 1188279)221EXPECTED_FOTS_FAILURE (prod-CastExpr CastAsNamespaceSensitiveType-12 1188279)
225222
=== modified file 'test/fots_driver/environment.xq'
--- test/fots_driver/environment.xq 2013-05-17 23:57:15 +0000
+++ test/fots_driver/environment.xq 2013-06-12 08:04:28 +0000
@@ -82,16 +82,27 @@
82 : @param $env the non-local environment of the test-case, if any. It is an82 : @param $env the non-local environment of the test-case, if any. It is an
83 : environment specified either at the test-set level or at the catalog83 : environment specified either at the test-set level or at the catalog
84 : level and is referenced by the test-case.84 : level and is referenced by the test-case.
85 : @param $test the raw query text.
86 : @param $testSetURI the URI of the directory that contains the file of the
87 : associated test-set.
85 : @param $envCase the local environment of the test-case, if any.88 : @param $envCase the local environment of the test-case, if any.
86 : @return the declare base-uri prolog statement.89 : @return the declare base-uri prolog statement.
87 :)90 :)
88declare function env:decl-base-uri(91declare function env:decl-base-uri(
89 $env as element(fots:environment)?,92 $env as element(fots:environment)?,
90 $envCase as element(fots:environment)?93 $envCase as element(fots:environment)?,
94 $test as xs:string,
95 $testSetURI as xs:anyURI
91) as xs:string?96) as xs:string?
92{97{
93 for $baseURI in ($env/fots:static-base-uri, $envCase/fots:static-base-uri)98 if($env/fots:static-base-uri, $envCase/fots:static-base-uri) then
94 return concat("declare base-uri '", $baseURI/@uri, "';")99 for $baseURI in ($env/fots:static-base-uri, $envCase/fots:static-base-uri)
100 return concat('declare base-uri "', $baseURI/@uri, '";')
101 else if(not(contains($test,"declare base-uri ") or
102 contains($test,"xquery version ") or
103 contains($test,"declare(::)base-uri"))) then
104 concat('declare base-uri "', $testSetURI, '";')
105 else ()
95};106};
96107
97108
@@ -161,7 +172,7 @@
161 $test as xs:string172 $test as xs:string
162) as xs:boolean173) as xs:boolean
163{174{
164 contains($test, concat("import schema namespace ", $prefix))175 contains($test, concat('import schema namespace ', $prefix))
165};176};
166177
167178
168179
=== modified file 'test/fots_driver/fots-driver.xq'
--- test/fots_driver/fots-driver.xq 2013-05-17 23:57:15 +0000
+++ test/fots_driver/fots-driver.xq 2013-06-12 08:04:28 +0000
@@ -822,8 +822,8 @@
822 : @param $deps the dependencies that should be checked for given test-case.822 : @param $deps the dependencies that should be checked for given test-case.
823 : These may be defined at test-set level and/or test-case level.823 : These may be defined at test-set level and/or test-case level.
824 : @param $testSetName the name of the test-set.824 : @param $testSetName the name of the test-set.
825 : @param $testSetBaseURI the URI of the directory that contains the file of the825 : @param $testSetURI the URI of the directory that contains the file of the
826 associated test-set.826 : associated test-set.
827 : @param $verbose if true, the resulting XML tree will contain more details827 : @param $verbose if true, the resulting XML tree will contain more details
828 : about the test-case.828 : about the test-case.
829 : @param $expFailureTC the 'Test' element from the ExpectedFailures.xml file.829 : @param $expFailureTC the 'Test' element from the ExpectedFailures.xml file.
@@ -834,17 +834,17 @@
834 : @return an XML tree containing the result of running the test-case.834 : @return an XML tree containing the result of running the test-case.
835 :)835 :)
836declare %private %ann:sequential function driver:run-test-case(836declare %private %ann:sequential function driver:run-test-case(
837 $case as element(fots:test-case),837 $case as element(fots:test-case),
838 $env as element(fots:environment)?,838 $env as element(fots:environment)?,
839 $envBaseURI as xs:anyURI?,839 $envBaseURI as xs:anyURI?,
840 $deps as element(fots:dependency)*,840 $deps as element(fots:dependency)*,
841 $testSetName as xs:string,841 $testSetName as xs:string,
842 $testSetBaseURI as xs:anyURI,842 $testSetURI as xs:anyURI,
843 $verbose as xs:boolean,843 $verbose as xs:boolean,
844 $expFailureTC as element(Test)?,844 $expFailureTC as element(Test)?,
845 $ctestMode as xs:boolean,845 $ctestMode as xs:boolean,
846 $cliMode as xs:string,846 $cliMode as xs:string,
847 $usePlanSerializer as xs:boolean847 $usePlanSerializer as xs:boolean
848) as element(fots:test-case)?848) as element(fots:test-case)?
849{849{
850(:TODO Cover the "(:%VARDECL%:)"when there are tests in FOTS that use it:)850(:TODO Cover the "(:%VARDECL%:)"when there are tests in FOTS that use it:)
@@ -858,7 +858,7 @@
858858
859 variable $queryName := $case/@name;859 variable $queryName := $case/@name;
860860
861 variable $test as xs:string := util:get-value($case, $testSetBaseURI, "test");861 variable $test as xs:string := util:get-value($case, $testSetURI, "test");
862862
863 variable $envCase := $case/fots:environment;863 variable $envCase := $case/fots:environment;
864864
@@ -868,7 +868,7 @@
868 (868 (
869 env:add-xquery-version-decl(($deps, $case//fots:dependency), $test),869 env:add-xquery-version-decl(($deps, $case//fots:dependency), $test),
870870
871 env:decl-base-uri($env, $envCase),871 env:decl-base-uri($env, $envCase, $test, $testSetURI),
872872
873 env:decl-def-elem-namespace($env, $envCase),873 env:decl-def-elem-namespace($env, $envCase),
874874
@@ -877,7 +877,7 @@
877 env:decl-decimal-formats(($env/fots:decimal-format,877 env:decl-decimal-formats(($env/fots:decimal-format,
878 $envCase/fots:decimal-format)),878 $envCase/fots:decimal-format)),
879879
880 env:add-var-decl($env, $envCase, $envBaseURI, $testSetBaseURI),880 env:add-var-decl($env, $envCase, $envBaseURI, $testSetURI),
881881
882 $test882 $test
883 ),883 ),
@@ -888,7 +888,7 @@
888 $case,888 $case,
889 $env,889 $env,
890 $envBaseURI,890 $envBaseURI,
891 $testSetBaseURI,891 $testSetURI,
892 $deps);892 $deps);
893893
894 (:if $verbose then print the query to a file:)894 (:if $verbose then print the query to a file:)
@@ -902,7 +902,7 @@
902 variable $result := execute:xqxq-invoke($xqxqQuery,902 variable $result := execute:xqxq-invoke($xqxqQuery,
903 $case,903 $case,
904 $verbose,904 $verbose,
905 $testSetBaseURI,905 $testSetURI,
906 $usePlanSerializer);906 $usePlanSerializer);
907907
908 variable $duration := (datetime:current-dateTime() - $startDateTime);908 variable $duration := (datetime:current-dateTime() - $startDateTime);
@@ -953,7 +953,7 @@
953 $case/fots:result/*,953 $case/fots:result/*,
954 $err:code,954 $err:code,
955 $err:description,955 $err:description,
956 $testSetBaseURI),956 $testSetURI),
957 "fots-driver.xq:driver:test catch",957 "fots-driver.xq:driver:test catch",
958 $testSetName,958 $testSetName,
959 $env,959 $env,
@@ -975,7 +975,7 @@
975 : @param $case the test case.975 : @param $case the test case.
976 : @param $env the environment.976 : @param $env the environment.
977 : @param $envBaseURI URI of the environment.977 : @param $envBaseURI URI of the environment.
978 : @param $testSetBaseURI the URI of the directory that contains the file of the978 : @param $testSetURI the URI of the directory that contains the file of the
979 : associated test set.979 : associated test set.
980 : @param $deps the dependencies that should be checked for given test-case.980 : @param $deps the dependencies that should be checked for given test-case.
981 : These may be defined at test-set level and/or test-case level.981 : These may be defined at test-set level and/or test-case level.
@@ -986,18 +986,18 @@
986 $case as element(fots:test-case),986 $case as element(fots:test-case),
987 $env as element(fots:environment)?,987 $env as element(fots:environment)?,
988 $envBaseURI as xs:anyURI?,988 $envBaseURI as xs:anyURI?,
989 $testSetBaseURI as xs:anyURI,989 $testSetURI as xs:anyURI,
990 $deps as element(fots:dependency)*990 $deps as element(fots:dependency)*
991) as xs:string991) as xs:string
992{992{
993 let $resolver as xs:string? := env:resolver($case,993 let $resolver as xs:string? := env:resolver($case,
994 $env,994 $env,
995 $envBaseURI,995 $envBaseURI,
996 $testSetBaseURI)996 $testSetURI)
997 let $mapper as xs:string? := env:mapper($case,997 let $mapper as xs:string? := env:mapper($case,
998 $env,998 $env,
999 $envBaseURI,999 $envBaseURI,
1000 $testSetBaseURI)1000 $testSetURI)
1001 let $needsDTDValidation := exists($deps[@type="feature" and @value="infoset-dtd"])1001 let $needsDTDValidation := exists($deps[@type="feature" and @value="infoset-dtd"])
1002 return1002 return
1003 string-join1003 string-join
@@ -1063,9 +1063,9 @@
1063 else "&#xA;);"),1063 else "&#xA;);"),
10641064
1065 env:set-context-item($env, $envBaseURI, $needsDTDValidation),1065 env:set-context-item($env, $envBaseURI, $needsDTDValidation),
1066 env:set-context-item($case/fots:environment, $testSetBaseURI, $needsDTDValidation),1066 env:set-context-item($case/fots:environment, $testSetURI, $needsDTDValidation),
1067 env:set-variables($env, $envBaseURI),1067 env:set-variables($env, $envBaseURI),
1068 env:set-variables($case/fots:environment, $testSetBaseURI),1068 env:set-variables($case/fots:environment, $testSetURI),
10691069
1070 "xqxq:evaluate($queryID),",1070 "xqxq:evaluate($queryID),",
1071 "",1071 "",

Subscribers

People subscribed via source and target branches