From 67ad0519fd165acee4a4d2a94fa502e9e4847bd0 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 23 Mar 2009 10:34:13 +0100 Subject: Long live Qt! --- tests/auto/xmlpatternsdiagnosticsts/.gitattributes | 6 + tests/auto/xmlpatternsdiagnosticsts/.gitignore | 2 + tests/auto/xmlpatternsdiagnosticsts/Baseline.xml | 2 + .../TestSuite/DiagnosticsCatalog.xml | 1046 ++++++++++++++++++++ .../ExpectedTestResults/ShouldFail/fail-1.txt | 1 + .../ExpectedTestResults/ShouldFail/fail-2.txt | 1 + .../ExpectedTestResults/ShouldFail/fail-3.txt | 1 + .../ExpectedTestResults/ShouldFail/succeed-10.txt | 1 + .../ShouldFail/succeed-11-1.txt | 1 + .../ShouldFail/succeed-11-2.txt | 1 + .../ShouldFail/succeed-12-1.txt | 1 + .../ShouldFail/succeed-12-2.txt | 1 + .../ExpectedTestResults/ShouldFail/succeed-9-1.txt | 1 + .../ExpectedTestResults/ShouldFail/succeed-9-2.txt | 1 + .../ExpectedTestResults/ShouldFail/succeed-9-3.txt | 1 + .../ShouldSucceed/succeed-1.txt | 1 + .../ShouldSucceed/succeed-11.txt | 1 + .../ShouldSucceed/succeed-13.txt | 1 + .../ShouldSucceed/succeed-14.txt | 3 + .../ShouldSucceed/succeed-2-1.txt | 1 + .../ShouldSucceed/succeed-2-2.txt | 1 + .../ShouldSucceed/succeed-2-3.txt | 1 + .../ShouldSucceed/succeed-2-4.txt | 1 + .../ShouldSucceed/succeed-2-5.txt | 1 + .../ShouldSucceed/succeed-2-6.txt | 1 + .../ShouldSucceed/succeed-6-1.txt | 1 + .../ShouldSucceed/succeed-6-2.txt | 1 + .../ShouldSucceed/succeed-7-1.txt | 1 + .../ShouldSucceed/succeed-7-2.txt | 1 + .../ShouldSucceed/succeed-8.txt | 1 + .../ShouldSucceed/succeed-9.txt | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-1.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-10.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-11.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-12.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-14.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-15.xq | 2 + .../TestSuite/Queries/XQuery/ShouldFail/fail-16.xq | 2 + .../TestSuite/Queries/XQuery/ShouldFail/fail-17.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-18.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-2.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-3.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-4.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-5.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-6.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-7.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-8.xq | 1 + .../TestSuite/Queries/XQuery/ShouldFail/fail-9.xq | 1 + .../Queries/XQuery/ShouldSucceed/succeed-1.xq | 1 + .../Queries/XQuery/ShouldSucceed/succeed-10.xq | 1 + .../Queries/XQuery/ShouldSucceed/succeed-11.xq | 3 + .../Queries/XQuery/ShouldSucceed/succeed-12.xq | 2 + .../Queries/XQuery/ShouldSucceed/succeed-13.xq | 1 + .../Queries/XQuery/ShouldSucceed/succeed-14.xq | 2 + .../Queries/XQuery/ShouldSucceed/succeed-2.xq | 2 + .../Queries/XQuery/ShouldSucceed/succeed-3.xq | 1 + .../Queries/XQuery/ShouldSucceed/succeed-4.xq | 1 + .../Queries/XQuery/ShouldSucceed/succeed-5.xq | 1 + .../Queries/XQuery/ShouldSucceed/succeed-6.xq | 1 + .../Queries/XQuery/ShouldSucceed/succeed-7.xq | 1 + .../Queries/XQuery/ShouldSucceed/succeed-8.xq | 2 + .../Queries/XQuery/ShouldSucceed/succeed-9.xq | 1 + .../TestSuite/TestSources/bib2.xml | 40 + .../TestSuite/TestSources/emptydoc.xml | 1 + .../xmlpatternsdiagnosticsts/TestSuite/validate.sh | 3 + tests/auto/xmlpatternsdiagnosticsts/test/test.pro | 32 + .../test/tst_xmlpatternsdiagnosticsts.cpp | 80 ++ .../xmlpatternsdiagnosticsts.pro | 4 + 68 files changed, 1284 insertions(+) create mode 100644 tests/auto/xmlpatternsdiagnosticsts/.gitattributes create mode 100644 tests/auto/xmlpatternsdiagnosticsts/.gitignore create mode 100644 tests/auto/xmlpatternsdiagnosticsts/Baseline.xml create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/DiagnosticsCatalog.xml create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-1.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-2.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-3.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-10.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-1.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-2.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-1.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-2.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-1.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-2.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-3.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-1.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-11.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-13.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-14.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-1.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-2.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-3.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-4.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-5.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-6.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-1.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-2.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-1.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-2.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-8.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-9.txt create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-1.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-10.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-11.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-12.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-14.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-15.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-16.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-17.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-18.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-2.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-3.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-4.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-5.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-6.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-7.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-8.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-9.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-1.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-10.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-11.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-12.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-13.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-14.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-2.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-3.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-4.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-5.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-6.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-7.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-8.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-9.xq create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/TestSources/bib2.xml create mode 100644 tests/auto/xmlpatternsdiagnosticsts/TestSuite/TestSources/emptydoc.xml create mode 100755 tests/auto/xmlpatternsdiagnosticsts/TestSuite/validate.sh create mode 100644 tests/auto/xmlpatternsdiagnosticsts/test/test.pro create mode 100644 tests/auto/xmlpatternsdiagnosticsts/test/tst_xmlpatternsdiagnosticsts.cpp create mode 100644 tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro (limited to 'tests/auto/xmlpatternsdiagnosticsts') diff --git a/tests/auto/xmlpatternsdiagnosticsts/.gitattributes b/tests/auto/xmlpatternsdiagnosticsts/.gitattributes new file mode 100644 index 0000000000..d3009543c0 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/.gitattributes @@ -0,0 +1,6 @@ +TestSuite/DiagnosticsCatalog.xml -crlf +TestSuite/Queries/XQuery/ShouldSucceed/succeed-11.xq -crlf +TestSuite/Queries/XQuery/ShouldSucceed/succeed-12.xq -crlf +TestSuite/Queries/XQuery/ShouldSucceed/succeed-13.xq -crlf +TestSuite/Queries/XQuery/ShouldSucceed/succeed-8.xq -crlf +TestSuite/Queries/XQuery/ShouldSucceed/succeed-9.xq -crlf diff --git a/tests/auto/xmlpatternsdiagnosticsts/.gitignore b/tests/auto/xmlpatternsdiagnosticsts/.gitignore new file mode 100644 index 0000000000..76d03d1af0 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/.gitignore @@ -0,0 +1,2 @@ +CandidateBaseline.xml +tst_xmlpatternsdiagnosticsts diff --git a/tests/auto/xmlpatternsdiagnosticsts/Baseline.xml b/tests/auto/xmlpatternsdiagnosticsts/Baseline.xml new file mode 100644 index 0000000000..e965e0e206 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/Baseline.xml @@ -0,0 +1,2 @@ + +

Patternist is an implementation written in C++ and with the Qt/KDE libraries. It is licensed under GNU LGPL and part of KDE, the K Desktop Environment.

XQuery
\ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/DiagnosticsCatalog.xml b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/DiagnosticsCatalog.xml new file mode 100644 index 0000000000..5a96441a72 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/DiagnosticsCatalog.xml @@ -0,0 +1,1046 @@ + + + + + + + KXQTS Harness Test Suite + This collection of test cases in the XQTS format does not exist + for testing an XPath, XQuery or XSL-T implementation, but to verify + the test harness tool that runs an actual XQTS test suite. Therefore, + some tests intentionally fail in this test suite. + + + + + XQuery 1.0: An XML Query Language + http://www.w3.org/TR/2004/WD-xquery-20041029/ + + + XQuery 1.0 and XPath 2.0 Functions and Operators + http://www.w3.org/TR/2004/WD-xpath-functions-20041029/ + + + XQuery 1.0 and XPath 2.0 Data Model + http://www.w3.org/TR/2004/WD-xpath-datamodel-20041029/ + + + XQuery 1.0 and XPath 2.0 Formal Semantics + http://www.w3.org/TR/2004/WD-xquery-semantics-20040220/ + + + XML Schema Part 2: Datatypes + http://www.w3.org/TR/xmlschema-2/ + + + XML Schema Errata + Current practice is to have one Errata document for all parts of Schema. + http://www.w3.org/2001/05/xmlschema-errata + + + XML Query Use Cases + http://www.w3c.org/TR/xquery-use-cases/ + + + + + + The XML InfoSets should be canonicalized and compared. + + + A 'fragment' refers to an XML based instance which has multiple top-level elements and NO XML declaration. + The comparator for this should simply wrap the entire fragment in a container element and perform XML comparisson. + + + + + Each line of non-whitespace text should match. New-line sequences + may vary and should be neutralized. Due to issues with the XML serialization of certain characters (e.g. '<'), + it is not possible to simply compare the actual and expected results. Rather (as is the case with the 'Fragment' comparator) + the test harness should convert the results into valid XML (by adding a container element) and perform comparisson + on the XML canonicalized versions of the results. + + + + + Only the presence/absence of this file is significant, + not its content. + + + + + Automated comparison is not possible. the output should be + inspected by a human. + + + + + + + + This is the source that is handed in to the processor as the + initial input sequence, setting the "evaluation context" as described in XQuery chapter 2. + + + + + These are sources that may be read by functions such as + fn:document() as the query is evaluated. + + + + + These are schema definitions that may be referenced by sources + or in the query. + + + + + These are dtd definitions that may be referenced by sources + or in the query. + + + + + This is an output (either text or XML) that will contain the + query results. If the processor invocation sequence accepts a filename for results, this name may be + passed, possibly prefixed by a partial directory path to allow storage of the results in a separate + directory tree. + + + + + This is an output (text file tagged .log) that will contain the + captured "console" output for a command-line invocation, or equivalent messages from a harness. The + main goal is to capture error messages that came from the processor. + + + A test lab may choose to capture console output for every test case, in which case the presence + of this element is a signal that the console log of this test contains messages that are significant to + the pass/fail determination. + + + + + + + + A query this is expected to produce valid results. Principal input should always be specified, even if the query doesn't have any PathExpr. + + + + + A query this is expected to raise a parsing/syntax error at query parse time. Principal input should always be specified, even if the query doesn't have any PathExpr. + + + + + A query this is expected to raise a runtime error at query parse time. Runtime errors in this case include those raised by static typing rules. Principal input should always be specified, even if the query doesn't have any PathExpr. + + + + + + + XQuery Test Suite Catalog + + + Bibliography example with extra comments and PIs. + + + Contains just a "doc" element, no comments/text/PIs. + + + Data about a filesystem represented in XML. + + + Data about a filesystem represented in XML with namespace-qualified names. + + + Small tree with element names in mixed namespaces. + Use @index to identify elements precisely. + + + Customer name/address file with some non-ASCII characters. + + + Like TreeCompass, but with comments and PIs off the root. PI targets vary. + All text nodes must have non-whitespace characters. + + + A "compass" tree that has just one child, of an abnormal name, off the center node. + One attribute each on west and center. + + + A "compass" tree that has just a text node and no child element off the center node. + + + A tree intended to allow many kinds of path expressions. + Need multiple attributes on center, west, and south, plus @mark scattered around. + Mix of text and element children in many places, but east should have only a text node. + All text nodes must have non-whitespace characters. + Top element is far-north. + + + A "compass" tree that has just one "south" element at the top, bearing one "mark" attribute. + + + A "compass" tree that has center elements off the real center node. + Use @mark to distinguish center elements. + "Real" center must have multiple element children, some with duplicate names (south-east). + Repeating attribute names used, including same name on elements of the same name. + Comments and text nodes are strewn about. All text nodes must have non-whitespace characters. + + + A "compass" tree that has several "south" elements, some stacked within each other. + Use "mark" attributes at several levels and on all south elements. + + + A "compass" tree that has no content at all in center or west, no attributes anywhere. + + + Data that fits first example in XQuery 3.11. + + + Data that fits later examples in XQuery 3.11. + + + Simple document with all node kinds + + + Simple document with namespaces + + + Source document for namespace copy modes + + + Data for various NIST tests + + + Data for various NIST tests (abbreviated, unabbreviated syntax) + + + Data for fn:lang tests. + + + Data for various NIST tests + + + Source document for Function Declaration tests + + + Data for the the XML Query XMP use cases + + + Data for the the XML Query XMP use cases + + + Data for the the XML Query XMP use cases + + + Data for the the XML Query XMP use cases + + + Data for the the XML Query TREE use cases + + + Data for the the XML Query SEQ use cases + + + Data for the the XML Query RDB use cases + + + Data for the the XML Query RDB use cases + + + Data for the the XML Query RDB use cases + + + Data for the the XML Query STRING use cases + + + Data for the the XML Query STRING use cases + + + Data for the the XML Query NS use cases + + + Data for the the XML Query PARTS use cases + + + Data for the the XML Query SGML use cases + + + A Schema validated xml file, that contains values for data types. Can be used by any test. + + + A Schema validated xml file, that contains values for some of the order by tests generated by NIST. + + + Data for id and idref related functions. + + + A Schema validated XML file containing certain special types e.g. interleave types, union types, anySimpleType + + + A schema validated XML file containing QName and QName derived types. + + + A Scehma validated xml file with NOTATION elements + + + Data for normalize-space functions + + + Schema for XQTSCatalog + + + A Schema for atomic.xml + + + A Schema for orderData.xml + + + A Schema containing certain special types e.g. interleave types, union types, anySimpleType + + + A schema containing QName and QName derived types + + + A Schema for NOTATION data + + + A schema for simple context tests + + + Library module for "modules-none" query + + + Library module with empty namespace + + + Simple library module + + + Library module with namespace URI set to empty string. + + + Simple library module + + + Library module with colliding definitions + + + Library module with colliding definitions + + + Library module with circular includes + + + Library module with circular includes + + + Library module with interesting context + + + Library module with definitions for various NIST tests. + + + + + + The version of Unicode that is used to construct expressions. + + + The statically-known collations. + + + The implicit timezone. + + + The circumstances in which warnings are raised, and the ways in which warnings are handled. + + + The method by which errors are reported to the external processing environment. + + + Whether the implementation is based on the rules of [XML 1.0] and [XML Names] or the rules of [XML 1.1] and [XML Names 1.1]. One of these sets of rules must be applied consistently by all aspects of the implementation. + + + Any components of the static context or dynamic context that are overwritten or augmented by the implementation. + + + Which of the optional axes are supported by the implementation, if the Full-Axis Feature is not supported. + + + The default handling of empty sequences returned by an ordering key (sortspec) in an order by clause (empty least or empty greatest). + + + The names and semantics of any extension expressions (pragmas) recognized by the implementation. + + + The names and semantics of any option declarations recognized by the implementation. + + + Protocols (if any) by which parameters can be passed to an external function, and the result of the function can returned to the invoking query. + + + The process by which the specific modules to be imported by a module import are identified, if the Module Feature is supported (includes processing of location hints, if any.) + + + Any static typing extensions supported by the implementation, if the Static Typing Feature is supported. + + + The means by which serialization is invoked, if the Serialization Feature is supported. + + + The default values for the byte-order-mark, encoding, media-type, normalization-form, omit-xml-declaration, standalone, and version parameters, if the Serialization Feature is supported. + + + Limits on ranges of values for various data types, as enumerated in 5.3 Data Model Conformance. + + + The destination of the trace output is implementation-defined. See 4 The Trace Function. + + + For xs:integer operations, implementations that support limited-precision integer operations must either raise an error [err:FOAR0002] or provide an implementation-defined mechanism that allows users to choose between raising an error and returning a result that is modulo the largest representable integer value. See 6.2 Operators on Numeric Values. + + + For xs:decimal values the number of digits of precision returned by the numeric operators is implementation-defined. See 6.2 Operators on Numeric Values. See also 17.1.3.3 Casting to xs:decimal and 17.1.3.4 Casting to xs:integer. + + + If the number of digits in the result exceeds the number of digits that the implementation supports, the result is truncated or rounded in an implementation-defined manner. See 6.2 Operators on Numeric Values. See also 17.1.3.3 Casting to xs:decimal and 17.1.3.4 Casting to xs:integer. + + + It is implementation-defined which version of Unicode is supported by the features defined in this specification, but it is recommended that the most recent version of Unicode be used. See 7.1 String Types. + + + For 7.4.6 fn:normalize-unicode, conforming implementations must support normalization form "NFC" and may support normalization forms "NFD", "NFKC", "NFKD", "FULLY-NORMALIZED". They may also support other normalization forms with implementation-defined semantics. + + + The ability to decompose strings into collation units suitable for substring matching is an implementation-defined property of a collation. See 7.5 Functions Based on Substring Matching. + + + All minimally conforming processors must support year values with a minimum of 4 digits (i.e., YYYY) and a minimum fractional second precision of 1 millisecond or three digits (i.e., s.sss). However, conforming processors may set larger implementation-defined limits on the maximum number of digits they support in these two situations. See 10.1.1 Limits and Precision. + + + Various aspects of the processing provided by 15.5.4 fn:doc are implementation-defined. Implementations may provide external configuration options that allow any aspect of the processing to be controlled by the user. + + + Support for additional user-defined or implementation-defined types is implementation-defined. (See 2.6.1 Representation of Types) + + + Some typed values in the data model are undefined. Attempting to access an undefined property is always an error. Behavior in these cases is implementation-defined and the host language is responsible for determining the result. (See 5 Accessors) + + + For any implementation-defined output method, it is implementation-defined whether sequence normalization process takes place. (See 2 Sequence Normalization) + + + If the namespace URI is non-null for the method serialization parameter, then the parameter specifies an implementation-defined output method. (See 3 Serialization Parameters) + + + If the value of the normalization-form form parameter is not NFC, NFD, NFKC, NFKD, fully-normalized, or none then the meaning of the value and it's effect is implementation-defined. (See 4 Phases of Serialization) + + + The effect of additional serialization parameters on the output of the serializer, where the name of such a parameter must be namespace-qualified, is implementation-defined or implementation-dependent. The extent of this effect on the output must not override the provisions of this specification. (See 3 Serialization Parameters) + + + The effect of providing an option that allows the encoding phase to be skipped, so that the result of serialization is a stream of Unicode characters, is implementation-defined. The serializer is not required to support such an option. (See 4 Phases of Serialization) + + + An serializer may provide an implementation-defined mechanism to place CDATA sections in the result tree. (See 5.1.4 XML Output Method: the cdata-section-elements Parameter) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Failing Tests + These tests should fail -- it's intentional. + + + + + The query is a syntax error, but the test-case requires a pass. + + + + + emptydoc + fail-1.txt + + + + + The query is a dynamic error due to call to fn:error(), but the test-case requires a pass. + + + + + emptydoc + fail-2.txt + + + + + + The query evaluates to a xs:string, but the test-case requires + a parse-error with error code XPST0003. + + + + + emptydoc + XPST0003 + + + + + + The query evaluates to a xs:string, but the test-case requires + a runtime-error with error code FORG0006. + + + + + emptydoc + FORG0006 + + + + + + The query evaluates to a parse error with error code XPST0003, but the + test case required a parse error with code XPST0081. + + + + + emptydoc + XPST0081 + + + + + + The query evaluates to a parse error with error code XPST0003, but the + test case required a runtime error with code FORG0006. + + + + + emptydoc + FORG0006 + + + + + + The query evaluates to a dynamic error with error code FOER0000, but the + test case required a parse error with code FOER0000. + + + + + emptydoc + FOER0000 + + + + + + The query evaluates to a dynamic error with error code FOER0000, but the + test case required a parse error with code FORG0006. + + + + + emptydoc + FORG0006 + + + + + + The query evaluates to an xs:string, but none of the baselines match. + + + + + emptydoc + succeed-9-1.txt + succeed-9-2.txt + succeed-9-3.txt + + + + + + The query evaluates to an xs:string, but the baseline doesn't match. + + + + + emptydoc + succeed-10.txt + + + + + + The query contains a parse error, but none of the baselines match. + + + + + emptydoc + succeed-11-1.txt + succeed-11-2.txt + FOER0000 + + + + + + The query contains a runtime error due to call to fn:error(), but none of the baselines match. + + + + + emptydoc + succeed-12-1.txt + succeed-12-2.txt + FORG0006 + + + + + + The test-case requires a parse error with error code XPST0003, + but the query file does not exist. + + + + + emptydoc + XPST0003 + + + + + + The query evaluates to a xs:string literal, but the specified + baseline file does not exist. + + + + + emptydoc + + fail-DOESNOTEXIST.txt + + + + + An "Ignore" baseline with a query that generates a runtime error. + + emptydoc + + + + + An "Ignore" baseline with a query that generates a parse error. + + emptydoc + + + + + Space is significant. + + emptydoc + fail-3.txt + + + + Test that XML documents that differs on the top level, are flagged(type being runtime-error). + + emptydoc + fail-18.txt + + + + Test that XML documents that differs on the top level, are flagged(type being runtime-error, comparing as Fragment). + + emptydoc + fail-18.txt + + + + Test that XML documents that differs on the top level, are flagged(type being standard, comparing as XML). + + emptydoc + fail-18.txt + + + + Test that XML documents that differs on the top level, are flagged(type being standard, comparing as fragment). + + emptydoc + fail-18.txt + + + + Top elements differing in name, should fail. + + emptydoc + fail-22.txt + + + + Attributes differing with the XML prefix, should fail. + + emptydoc + fail-23.txt + + + + Test that XML documents that differs on the top level, are flagged(type being runtime-error, comparing as Fragment). + + emptydoc + fail-18.txt + + + + + + + Succeeding Tests + These tests should succeed. + + + + A 'success' test where the query, which is a + string literal, evaluates to a string, which must match the baseline. + + + + + emptydoc + succeed-1.txt + + + + + + A 'success' test where multiple output baselines exists. + + + + + emptydoc + + succeed-2-1.txt + succeed-2-2.txt + succeed-2-3.txt + succeed-2-4.txt + succeed-2-5.txt + succeed-2-6.txt + + + + + A 'parse-error' specifying error code XPST0003, + and where the query also is that; a syntax error. + + + + + emptydoc + + XPST0003 + + + + + A 'runtime-error' specifying error code FOER0000, + and where the query, containing a call to fn:error(), also results in that. + + + + + emptydoc + + FOER0000 + + + + + A 'runtime-error' specifying error code XPTY0004, + and where the query, contains an invalid operator mapping. While the test case + is specified as a runtime error, some implementations detects it at compile time, but + should nevertheless flag it as a passed test case(even though it failed at compile time + instead of runtime). + + + + + emptydoc + + XPTY0004 + + + + + The query results in a parse error with error code XPST0003, while the test-case contains + many baselines, one of them the error code XPST0003. + + + + emptydoc + + succeed-6-1.txt + succeed-6-2.txt + XPTY0004 + XPST0003 + + + + + The query results in a runtime error with error code FOER0000, while the test-case contains + many baselines, one of them the error code FOER0000. + + + + + emptydoc + + succeed-7-1.txt + succeed-7-2.txt + XPTY0004 + FOER0000 + + + + A 'standard' test with multiple baselines that caused an assert crash in KXQTS. + + emptydoc + succeed-8.txt + XQST0046 + + + + A test whose comparison method is 'Fragment'. Caused assert in KXQTS. + + bib2 + succeed-9.txt + + + A test which accepts any runtime error code, by specifying "*". + + emptydoc + * + + + A 'standard' test that accept output, a particular error code, plus any error code(yes, it makes no sense). + + emptydoc + succeed-11.txt + XQST0038 + * + + + + An "Ignore" baseline with a query that generates output. + + emptydoc + + + + + The scenario is runtime-error despite it not having an error baseline, and despite that we succeed on a non-error baseline. This could the driver not handle. + + succeed-13.txt + + + + Check that an XML prolog is not considered a processing instruction when comparing. + + succeed-14.txt + + + + + + diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-1.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-1.txt new file mode 100644 index 0000000000..dcaa1e1262 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-1.txt @@ -0,0 +1 @@ +This is the expected output \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-2.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-2.txt new file mode 100644 index 0000000000..638e013b04 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-2.txt @@ -0,0 +1 @@ +This is the expected output(fail-2) \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-3.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-3.txt new file mode 100644 index 0000000000..a06c409f19 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-3.txt @@ -0,0 +1 @@ + diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-10.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-10.txt new file mode 100644 index 0000000000..3c7d064c14 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-10.txt @@ -0,0 +1 @@ +312 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-1.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-1.txt new file mode 100644 index 0000000000..9d239ff807 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-1.txt @@ -0,0 +1 @@ +321 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-2.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-2.txt new file mode 100644 index 0000000000..d800886d9c --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-2.txt @@ -0,0 +1 @@ +123 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-1.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-1.txt new file mode 100644 index 0000000000..9d239ff807 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-1.txt @@ -0,0 +1 @@ +321 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-2.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-2.txt new file mode 100644 index 0000000000..3c7d064c14 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-2.txt @@ -0,0 +1 @@ +312 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-1.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-1.txt new file mode 100644 index 0000000000..565f1b06a1 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-1.txt @@ -0,0 +1 @@ +231 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-2.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-2.txt new file mode 100644 index 0000000000..dd1ec209f3 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-2.txt @@ -0,0 +1 @@ +132 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-3.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-3.txt new file mode 100644 index 0000000000..3c7d064c14 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-3.txt @@ -0,0 +1 @@ +312 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-1.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-1.txt new file mode 100644 index 0000000000..680ad50f44 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-1.txt @@ -0,0 +1 @@ +This XQuery query/XPath expression is a xs:string literal. \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-11.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-11.txt new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-11.txt @@ -0,0 +1 @@ +1 diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-13.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-13.txt new file mode 100644 index 0000000000..56a6051ca2 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-13.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-14.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-14.txt new file mode 100644 index 0000000000..09a420c71f --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-14.txt @@ -0,0 +1,3 @@ + + + diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-1.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-1.txt new file mode 100644 index 0000000000..b410461e15 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-1.txt @@ -0,0 +1 @@ +2 3 1 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-2.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-2.txt new file mode 100644 index 0000000000..5a03540bfb --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-2.txt @@ -0,0 +1 @@ +1 3 2 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-3.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-3.txt new file mode 100644 index 0000000000..354bbaf399 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-3.txt @@ -0,0 +1 @@ +3 1 2 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-4.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-4.txt new file mode 100644 index 0000000000..0f847fe0d5 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-4.txt @@ -0,0 +1 @@ +2 1 3 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-5.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-5.txt new file mode 100644 index 0000000000..703ca85bc6 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-5.txt @@ -0,0 +1 @@ +1 2 3 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-6.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-6.txt new file mode 100644 index 0000000000..df610b0b02 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-6.txt @@ -0,0 +1 @@ +3 2 1 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-1.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-1.txt new file mode 100644 index 0000000000..d800886d9c --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-1.txt @@ -0,0 +1 @@ +123 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-2.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-2.txt new file mode 100644 index 0000000000..9d239ff807 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-2.txt @@ -0,0 +1 @@ +321 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-1.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-1.txt new file mode 100644 index 0000000000..9d239ff807 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-1.txt @@ -0,0 +1 @@ +321 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-2.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-2.txt new file mode 100644 index 0000000000..d800886d9c --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-2.txt @@ -0,0 +1 @@ +123 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-8.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-8.txt new file mode 100644 index 0000000000..f32a5804e2 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-8.txt @@ -0,0 +1 @@ +true \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-9.txt b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-9.txt new file mode 100644 index 0000000000..56a6051ca2 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-9.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-1.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-1.xq new file mode 100644 index 0000000000..744f6c25dc --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-1.xq @@ -0,0 +1 @@ +"This xs:string literal is not terminated(syntax error) \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-10.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-10.xq new file mode 100644 index 0000000000..7629350a2a --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-10.xq @@ -0,0 +1 @@ +"This query is fully valid, and consists of one string literal." \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-11.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-11.xq new file mode 100644 index 0000000000..744f6c25dc --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-11.xq @@ -0,0 +1 @@ +"This xs:string literal is not terminated(syntax error) \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-12.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-12.xq new file mode 100644 index 0000000000..6f4fbc4f60 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-12.xq @@ -0,0 +1 @@ +error() \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-14.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-14.xq new file mode 100644 index 0000000000..480eb99e06 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-14.xq @@ -0,0 +1 @@ +"This query is fully valid, and consists of one xs:string literal." \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-15.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-15.xq new file mode 100644 index 0000000000..d8248187a9 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-15.xq @@ -0,0 +1,2 @@ +xquery version "1.0"; +fn:error() diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-16.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-16.xq new file mode 100644 index 0000000000..6b0185bd35 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-16.xq @@ -0,0 +1,2 @@ +xquery version "1.0"; +"a parse error diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-17.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-17.xq new file mode 100644 index 0000000000..10a7e703b2 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-17.xq @@ -0,0 +1 @@ + diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-18.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-18.xq new file mode 100644 index 0000000000..94cd6cde3e --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-18.xq @@ -0,0 +1 @@ +, diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-2.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-2.xq new file mode 100644 index 0000000000..6f4fbc4f60 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-2.xq @@ -0,0 +1 @@ +error() \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-3.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-3.xq new file mode 100644 index 0000000000..7629350a2a --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-3.xq @@ -0,0 +1 @@ +"This query is fully valid, and consists of one string literal." \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-4.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-4.xq new file mode 100644 index 0000000000..7629350a2a --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-4.xq @@ -0,0 +1 @@ +"This query is fully valid, and consists of one string literal." \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-5.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-5.xq new file mode 100644 index 0000000000..744f6c25dc --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-5.xq @@ -0,0 +1 @@ +"This xs:string literal is not terminated(syntax error) \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-6.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-6.xq new file mode 100644 index 0000000000..744f6c25dc --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-6.xq @@ -0,0 +1 @@ +"This xs:string literal is not terminated(syntax error) \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-7.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-7.xq new file mode 100644 index 0000000000..6f4fbc4f60 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-7.xq @@ -0,0 +1 @@ +error() \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-8.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-8.xq new file mode 100644 index 0000000000..6f4fbc4f60 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-8.xq @@ -0,0 +1 @@ +error() \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-9.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-9.xq new file mode 100644 index 0000000000..7629350a2a --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-9.xq @@ -0,0 +1 @@ +"This query is fully valid, and consists of one string literal." \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-1.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-1.xq new file mode 100644 index 0000000000..ab4c980fe6 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-1.xq @@ -0,0 +1 @@ +"This XQuery query/XPath expression is a xs:string literal." \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-10.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-10.xq new file mode 100644 index 0000000000..529429cce4 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-10.xq @@ -0,0 +1 @@ +"This query yields a type error, XPTY0004." + 1 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-11.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-11.xq new file mode 100644 index 0000000000..90fde74bab --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-11.xq @@ -0,0 +1,3 @@ +xquery version "1.0"; +declare default collation "xspanish"; +1 diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-12.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-12.xq new file mode 100644 index 0000000000..5125f534b5 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-12.xq @@ -0,0 +1,2 @@ +xquery version "1.0"; +"This query evaluates to arbitrary output", 1, 2, 3 diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-13.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-13.xq new file mode 100644 index 0000000000..f33dfa25aa --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-13.xq @@ -0,0 +1 @@ +1 diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-14.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-14.xq new file mode 100644 index 0000000000..a9d9741ae6 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-14.xq @@ -0,0 +1,2 @@ +, + diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-2.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-2.xq new file mode 100644 index 0000000000..ea815e2489 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-2.xq @@ -0,0 +1,2 @@ +unordered{1, 2, 3} + diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-3.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-3.xq new file mode 100644 index 0000000000..d050b9e2f5 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-3.xq @@ -0,0 +1 @@ +"This xs:string literal is not terminated(syntax error) diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-4.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-4.xq new file mode 100644 index 0000000000..f62b454cb0 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-4.xq @@ -0,0 +1 @@ +error() diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-5.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-5.xq new file mode 100644 index 0000000000..648bf79435 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-5.xq @@ -0,0 +1 @@ +"Can't multiply an xs:string with an xs:integer." * 1 \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-6.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-6.xq new file mode 100644 index 0000000000..744f6c25dc --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-6.xq @@ -0,0 +1 @@ +"This xs:string literal is not terminated(syntax error) \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-7.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-7.xq new file mode 100644 index 0000000000..6f4fbc4f60 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-7.xq @@ -0,0 +1 @@ +error() \ No newline at end of file diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-8.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-8.xq new file mode 100644 index 0000000000..13589a4d79 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-8.xq @@ -0,0 +1,2 @@ +declare base-uri "abc"; +ends-with(fn:static-base-uri(), "abc") diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-9.xq b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-9.xq new file mode 100644 index 0000000000..f33dfa25aa --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-9.xq @@ -0,0 +1 @@ +1 diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/TestSources/bib2.xml b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/TestSources/bib2.xml new file mode 100644 index 0000000000..e7c0e60d8e --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/TestSources/bib2.xml @@ -0,0 +1,40 @@ + + + + + + + TCP/IP Illustrated + StevensW. + Addison-Wesley + 65.95 + + + + Advanced Programming in the Unix environment + StevensW. + Addison-Wesley + 65.95 + + + + Data on the Web + AbiteboulSerge + BunemanPeter + SuciuDan + Morgan Kaufmann Publishers + 39.95 + + + + The Economics of Technology and Content for Digital TV + + GerbargDarcy + CITI + + Kluwer Academic Publishers + 129.95 + + + + diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/TestSources/emptydoc.xml b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/TestSources/emptydoc.xml new file mode 100644 index 0000000000..69d62f2c9a --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/TestSources/emptydoc.xml @@ -0,0 +1 @@ + diff --git a/tests/auto/xmlpatternsdiagnosticsts/TestSuite/validate.sh b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/validate.sh new file mode 100755 index 0000000000..13b3d516a1 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/TestSuite/validate.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set p4Where `p4 where //depot/autotests/4.4/tests/auto/xmlpatternsxqts/XQTS/XQTSCatalog.xsd` +xmllint --xinclude --noout --schema $4 DiagnosticsCatalog.xml diff --git a/tests/auto/xmlpatternsdiagnosticsts/test/test.pro b/tests/auto/xmlpatternsdiagnosticsts/test/test.pro new file mode 100644 index 0000000000..aeff89649a --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/test/test.pro @@ -0,0 +1,32 @@ +load(qttest_p4) +SOURCES += tst_xmlpatternsdiagnosticsts.cpp \ + ../../qxmlquery/TestFundament.cpp + +include (../../xmlpatterns.pri) + +TARGET = tst_xmlpatternsdiagnosticsts +DESTDIR = .. +win32 { + CONFIG(debug, debug|release): DESTDIR = ../debug + else: DESTDIR = ../release +} + +contains(QT_CONFIG, xmlpatterns) { +HEADERS += ../../xmlpatternsxqts/test/tst_suitetest.h +SOURCES += ../../xmlpatternsxqts/test/tst_suitetest.cpp +LIBS += -l$$XMLPATTERNS_SDK +} + +QT += xml + +INCLUDEPATH += $$(QTSRCDIR)/tests/auto/xmlpatternsxqts/lib/ \ + $$(QTDIR)/include/QtXmlPatterns/private \ + $$(QTSRCDIR)/tests/auto/xmlpatternsxqts/test \ + ../../xmlpatternsxqts/test \ + ../../xmlpatternsxqts/lib + +wince*: { + catalog.sources = TestSuite Baseline.xml + catalog.path = . + DEPLOYMENT += catalog +} diff --git a/tests/auto/xmlpatternsdiagnosticsts/test/tst_xmlpatternsdiagnosticsts.cpp b/tests/auto/xmlpatternsdiagnosticsts/test/tst_xmlpatternsdiagnosticsts.cpp new file mode 100644 index 0000000000..60037f9d18 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/test/tst_xmlpatternsdiagnosticsts.cpp @@ -0,0 +1,80 @@ +/**************************************************************************** +** +** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Contact: Qt Software Information (qt-info@nokia.com) +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the either Technology Preview License Agreement or the +** Beta Release License Agreement. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain +** additional rights. These rights are described in the Nokia Qt LGPL +** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this +** package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU General Public License version 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at qt-sales@nokia.com. +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include + +#ifdef QTEST_XMLPATTERNS + +#include "tst_suitetest.h" + +/*! + \class tst_XmlPatternsDiagnosticsTS + \internal + \since 4.5 + \brief Test QtXmlPatterns test suite driver in tests/auto/xmlpatternsxqts/lib/. + */ +class tst_XmlPatternsXSLTS : public tst_SuiteTest +{ + Q_OBJECT +public: + tst_XmlPatternsXSLTS(); +protected: + virtual void catalogPath(QString &write) const; +}; + +tst_XmlPatternsXSLTS::tst_XmlPatternsXSLTS() : tst_SuiteTest(false, true) +{ +} + +void tst_XmlPatternsXSLTS::catalogPath(QString &write) const +{ + write = QLatin1String("TestSuite/DiagnosticsCatalog.xml"); +} + +QTEST_MAIN(tst_XmlPatternsXSLTS) + +#include "tst_xmlpatternsdiagnosticsts.moc" +#else +QTEST_NOOP_MAIN +#endif + +// vim: et:ts=4:sw=4:sts=4 diff --git a/tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro b/tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro new file mode 100644 index 0000000000..e90b335d76 --- /dev/null +++ b/tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro @@ -0,0 +1,4 @@ +TEMPLATE = subdirs +CONFIG += ordered + +SUBDIRS = ../xmlpatternsxqts test -- cgit v1.2.3