result/relaxng

Branch


Log

Author Commit Date CI Message
Omar Siam 9760a14f 2025-06-30T13:47:33 relaxng: In the simplification step also unlink notAllowed refs from choice This fixes false reports of non allowed content compared to notAllowed as tag within the choice tag.
Seiya Nakata 5bb84b47 2024-04-04T11:55:28 relaxng: Fix tree corruption in xmlRelaxNGParseNameClass Don't create cycles in tree structure. This will lead to an infinite loop or call stack overflow later. Closes: https://gitlab.gnome.org/GNOME/libxml2/-/issues/711
Nick Wellnhofer f0df3e6d 2023-12-21T14:35:18 tests: Try to fix RelaxNG test cases These were added recently in ea695ac0 and 8074b881 but were a total mess of symbolic links and apparently mixed up files. Symbolic links don't work on Windows. Try to salvage one of the tests.
Nick Wellnhofer 83c6aeef 2023-12-18T21:12:29 relaxng: Improve error handling Pass RelaxNG structured error handler to XML parser. Handle malloc failure from xmlRaiseError. Remove argument from memory error handler. Use xmlRaiseMemoryError. Don't use xmlGenericError. Remove TODO macro.
Nick Wellnhofer 4de7f2ac 2022-04-04T03:28:21 Remove unused result files
Nick Wellnhofer f1c32b4c 2020-07-09T03:19:13 Allow missing result files in runtest Treat missing files as empty.
Nick Wellnhofer 48b03c84 2022-04-03T20:36:38 Remove major parts of old test suite Remove all the parts of the old test suite which are covered by runtest.c for quite some time. The following test programs are removed: - testC14N - testHTML - testReader - testRelax - testSAX - testSchemas - testURI - testXPath This also removes a few results of unimportant tests only run by the old test suite.
Jan Pokorný ea695ac0 2019-08-09T15:09:22 Fix unability to RelaxNG-validate grammar with choice-based name class Previously, test/relaxng/ambig_name-class2.xml would fail to validate against test/relaxng/ambig_name-class2.rng: > test/relaxng/ambig_name-class2.rng:4: > element attribute: Relax-NG parser error : > Found anyName attribute without oneOrMore ancestor > Relax-NG schema test/relaxng/ambig_name-class2.rng failed to compile Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Jan Pokorný 8074b881 2019-08-08T23:33:48 Fix unability to validate ambiguously constructed interleave for RelaxNG Previously, test/relaxng/ambig_name-class.xml would fail to validate for a simple reason -- interleave within "open-name-class" context is supposed to be fine with whatever else is pending the consumption, since effectively, it's unrelated from a higher parsing perspective. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Nikolai Weibull c64d4efb 2018-10-13T00:12:12 Remove redefined starts and defines inside include elements When including a grammar from another grammar, we need to make sure that any redefines of starts and includes that that grammar does inside any of its include elements are also removed.
Nikolai Weibull 46da8fc5 2018-10-12T23:46:24 Allow choice within choice in nameClass in RELAX NG The pattern nameClass allows for nested choice elements, for example <name> <choice> <choice> <name>a</name> <name>b</name> </choice> <name>c</name> </choice> </name> which is semantically equivalent to <name> <choice> <name>a</name> <name>b</name> <name>c</name> </choice> </name> The old code didn’t handle this correctly, as it never expected a choice inside another choice. This patch fixes this by flattening any nested choices. This pattern of nested choice elements comes up in RELAX NG simplification, where all choice elements are rewritten in this nested manner, see section 4.12 of the RELAX NG specification.
Nikolai Weibull 4338c310 2018-10-12T22:30:26 Look inside divs for starts and defines inside include RELAX NG allows for div elements inside of include elements. We need to look inside those div elements for start and define elements that may be redefining start and define elements in the included grammar.
Nick Wellnhofer 67f9f9d6 2017-06-12T19:25:01 Misc fixes for 'make tests' - Silence test output. - Clean up after doc/examples tests. - Adjust expected output for script tests. - Add missing results for relaxng/pattern3 There are still two test failures I can't comment on: - regexp/bug316338 - schemas/any4_0
Audric Schiltknecht cad102b8 2016-04-15T22:41:24 Do normalize string-based datatype value in RelaxNG facet checking Original patch is from Jan Pokorný <jpokorny redhat com> https://mail.gnome.org/archives/xml/2013-November/msg00028.html Improve it according to reviews and add test files.
David Kilzer 49bbfdb6 2016-03-14T15:53:16 Add missing RNG test files For https://bugzilla.gnome.org/show_bug.cgi?id=760249 Add missing test results from Bug 710744 for commit 6473a41a49601da8355c4b407b99474ada170213.
Daniel Veillard 2fab235d 2015-03-16T08:38:36 Fix support for except in nameclasses For https://bugzilla.gnome.org/show_bug.cgi?id=565219 The code was imply missing even if simple, added a few regression tests.
Shaun McCance 6473a41a 2013-10-23T14:51:33 Implement choice for name classes on attributes https://bugzilla.gnome.org/show_bug.cgi?id=710744
Daniel Veillard aa422d92 2009-09-24T11:31:48 595792 fixing a RelaxNG bug introduced in 2.7.4 * relaxng.c: refs definitions added from inported schemas should not be processed as refs from the main schemas * test/relaxng/595792* result/relaxng/595792*: add the test to the regression suite
Daniel Veillard 9332b48f 2009-09-23T18:28:43 Fix a Relaxng bug raised by libvirt test suite * xmlregexp.c: other fixes in 2.7.4 raised this internal error when comparing ranges, this affects among others detection of the determinism * test/relaxng/libvirt* result/relaxng/libvirt*: add a test case based on libvirt schemas and tests
Daniel Veillard 1ba2aca3 2009-08-31T16:47:39 492317 Fix Relax-NG validation problems * relaxng.c xmlregexp.c: a subtle problem when checking for compileable content model, if using the same elements in cases of choices. Handled by adding a special flag to the regexp compilation to detect transitions with different atoms using same strings. * test/relaxng/492317* result/relaxng/492317*: add the test to the regression suite
Daniel Veillard ec18c960 2009-08-26T18:37:43 558452 fight with reg test and error report * relaxng.c: tiny fix and provide more context on some errors * result/relaxng/558452_0* test/relaxng/558452*: add some regression tests for the bugs * Makefile.am runtest.c: fight with the fact streaming error messages can differ due to missing node context
Daniel Veillard be58a0a3 2006-10-13T16:39:14 Adding test file, Daniel
Daniel Veillard 79338009 2006-02-19T15:32:29 Added new regression tests for #331062, daniel
Daniel Veillard 60faf528 2005-08-10T16:23:57 fixed bug #307377 about validation of choices in list values. added * relaxng.c: fixed bug #307377 about validation of choices in list values. * test/relaxng/307377* result/relaxng/307377* Makefile.am runtest.c: added examples to the regression tests, problem is that streaming version gives slightly more informations. Daniel
Daniel Veillard f4644039 2005-06-13T11:41:31 fixed a bug exposed by Rob Richards in the mailing-list added the * relaxng.c: fixed a bug exposed by Rob Richards in the mailing-list * result//compare0* test//compare0*: added the regression test in the suite as this went unnoticed ! Daniel
Daniel Veillard 63d68a37 2005-03-31T13:50:00 fixed a problem in Relax-NG validation #159968 added the test to the * relaxng.c: fixed a problem in Relax-NG validation #159968 * test/relaxng/list.* result/relaxng/list_*: added the test to the regression suite Daniel
Daniel Veillard 9186a1fd 2005-01-15T12:38:10 fixed bug #157633 in relaxng choice optimization added regression tests * relaxng.c: fixed bug #157633 in relaxng choice optimization * result/relaxng/choice0* test/relaxng/choice0*: added regression tests about it. * doc/*: rebuilt * testdso.c: removed a warning due to a missing void in signature. Daniel
Daniel Veillard b021caa3 2004-05-15T18:51:42 Adding missing files, Daniel
William M. Brack 236c8c09 2004-03-20T11:32:36 added check for external reference in xmlRelaxNGGetElements (bug 137718) * relaxng.c: added check for external reference in xmlRelaxNGGetElements (bug 137718) * test/relaxng/rngbug-001.*, result/relaxng/rngbug-001*: added regression test for above
Daniel Veillard d21f61b5 2003-12-29T10:31:21 issue validation status on stderr, not stdout as suggested by Pawel * xmllint.c: issue validation status on stderr, not stdout as suggested by Pawel Palucha * result/relaxng/*: this change slightly all the output from RNG regressions. Daniel
Daniel Veillard ffbbed42 2003-10-10T14:46:54 fixed uninitialized new field. fixed a typo updating all messages Daniel * SAX2.c: fixed uninitialized new field. * result/VC/OneID2 result/relaxng/*.err: fixed a typo updating all messages Daniel
Daniel Veillard 4c004147 2003-10-07T11:33:24 switched Relax-NG module to teh new error reporting. Better default * error.c relaxng.c include/libxml/xmlerror.h: switched Relax-NG module to teh new error reporting. Better default report, adds the element associated if found, context and node are included in the xmlError * python/tests/reader2.py: the error messages changed. * result/relaxng/*: error message changed too. Daniel
Daniel Veillard 1ac24d36 2003-08-27T14:15:15 fixed an error reporting bug in Relax-NG when we end up with multiple * relaxng.c: fixed an error reporting bug in Relax-NG when we end up with multiple states, select the "best" one. Fix #120682 * result/relaxng/tutor11_2_3.err: small change resulting * xmlschemastypes.c: applied base64 support patch from Anthony Carrico
Daniel Veillard c1ffa0ab 2003-08-26T13:56:48 fixed bug #120386 again a problem introduced when trying to reuse automata * relaxng.c: fixed bug #120386 again a problem introduced when trying to reuse automata for content validation. Fix a bug report problem on zeroOrMore * result/relaxng/tutor3_7_err: change slightly error reporting. Daniel
Daniel Veillard d94849b0 2003-07-28T13:02:24 fixed a Relax-NG compilation/streaming bug introduced when fixing the * relaxng.c: fixed a Relax-NG compilation/streaming bug introduced when fixing the previous Relax-NG bugs * result/relaxng/*: This slightly changes the output messages of some regression tests. * configure.in: added support of -with-fexceptions for nested C++ support. Daniel
Daniel Veillard 2134ab18 2003-07-23T19:56:29 checked and fixed the compilation of RNG schemas, fixes a couple of bugs * relaxng.c result/relaxng/*: checked and fixed the compilation of RNG schemas, fixes a couple of bugs #117097 and #117001 . This slightly changes the output messages of some regression tests. Daniel
Daniel Veillard ac297930 2003-04-17T12:55:35 some cleanups extended the document to cover RelaxNG and tree operations * relaxng.c: some cleanups * doc/xmlreader.html: extended the document to cover RelaxNG and tree operations * python/tests/Makefile.am python/tests/reader[46].py: added some xmlReader example/regression tests * result/relaxng/tutor*.err: updated the output of a number of tests Daniel
Daniel Veillard ce192eb8 2003-04-16T15:58:05 more work on RelaxNG streaming validation trying to improve the subset * relaxng.c xmllint.c: more work on RelaxNG streaming validation trying to improve the subset compiled, and more testing. * doc/downloads.html doc/xml.html doc/xmlmem.html: some updates on the documentation * test/relaxng/tutor11_1_3.xml: fixes the DTD path * result/relaxng/*.err: fix some of the outputs Daniel
Daniel Veillard a507fbf3 2003-03-31T16:09:37 try to work on bug #109225 and provide better error reports. this change * relaxng.c: try to work on bug #109225 and provide better error reports. * result/relaxng/* : this change the output of a number of tests * xinclude.c: fixing the parsed entity redefinition problem raised on the list. * test/schemas/date_0.xsd: updated the date test c.f. E2-12 Daniel
Daniel Veillard e063f482 2003-03-21T16:53:17 another optimization, for choice this time cleanups. Daniel * relaxng.c: another optimization, for choice this time * result/relaxng/spec1* result/relaxng/tutor12_1* result/relaxng/tutor3_7: cleanups. Daniel
Daniel Veillard ef2e4ec1 2003-03-20T16:23:26 added integer and fixed one of the IDREFS regression tests pbm updated * xmlschemastypes.c: added integer and fixed one of the IDREFS regression tests pbm * result/relaxng/docbook_0.err: updated Daniel
Daniel Veillard 249d7bbe 2003-03-19T21:02:29 attempt to cope with ID/IDREF(S) declared both in the DTD and in the * valid.c xmlschemastypes.c: attempt to cope with ID/IDREF(S) declared both in the DTD and in the Schemas <grin/> * relaxng.c: more debug, added a big optimization for <mixed> * test/relaxng/testsuite.xml: augmented the testsuite * test/relaxng/ result/relaxng: added the RelaxNG spec and a DocBook example to the regression tests Daniel
Daniel Veillard fd573f18 2003-03-16T17:52:32 switched back to the previous Relax-NG code base, the derivation algorithm * relaxng.c: switched back to the previous Relax-NG code base, the derivation algorithm need severe constraining code to avoid combinatorial explosion. Fixed the problem with Sebastian Rahtz TEI based example and other bugs * result/relaxng/*err: updated the results * test/relaxng/testsuite.xml: started a new test suite Daniel
Daniel Veillard 5add868b 2003-03-10T13:13:58 stop generating wrong result file with * in name fixing the include bug * Makefile.am: stop generating wrong result file with * in name * relaxng.c: fixing the include bug raised by Sebastian Rahtz * result/relaxng/demo* test/relaxng/demo: added the tests from Sebastian reproducing the problem. Daniel
Daniel Veillard 42f12e99 2003-03-07T18:32:59 after and exchange with James Clark it appeared I had bug in URI parsing * test/xsdtest/xsdtest.xml uri.c: after and exchange with James Clark it appeared I had bug in URI parsing code ... * relaxng.c include/libxml/relaxng.h: completely revamped error reporting to not loose message from optional parts. * xmllint.c: added timing for RNG validation steps * result/relaxng/*: updated the result, all error messages changed Daniel
Daniel Veillard 17bed981 2003-02-24T20:11:43 preparing release 2.5.4 updated and rebuilt the docs removed warnings * configure.in: preparing release 2.5.4 * doc/*: updated and rebuilt the docs * relaxng.c: removed warnings * result/relaxng/*: updated the results Daniel
Daniel Veillard 44e1dd00 2003-02-21T23:23:28 fixing some nodeinfo in entities problem raised by Glenn W. Bach * parser.c: fixing some nodeinfo in entities problem raised by Glenn W. Bach * relaxng.c: implemented the first section 7.3 check * result/relaxng/*: updated the results Daniel
Daniel Veillard c5312d7c 2003-02-21T17:14:10 fixed some problems in the previous commit and finished implementing 4.16 * relaxng.c: fixed some problems in the previous commit and finished implementing 4.16 rules checking found 373 test schemas: 353 success 20 failures found 529 test instances: 519 success 6 failures * result/relaxng/*: updated the results Daniel
Daniel Veillard 1c745ade 2003-02-20T00:11:02 implemented the 4.20 and 4.21 simplification rules. updated the results * relaxng.c: implemented the 4.20 and 4.21 simplification rules. * result/relaxng/*: updated the results Daniel
Daniel Veillard ce14fa54 2003-02-19T17:32:48 more bugfixes updated the results Daniel * relaxng.c: more bugfixes * result/relaxng/*: updated the results Daniel
Daniel Veillard 2e9b165f 2003-02-19T13:29:45 patched to have shared libraries for Python regression tests and static * Makefile.am configure.in: patched to have shared libraries for Python regression tests and static binaries for gdb debug in my development environment * relaxng.c: more bugfixes found 373 test schemas: 296 success 77 failures found 529 test instances: 516 success 8 failures * result/relaxng/*: updated the results Daniel
Daniel Veillard d431074c 2003-02-18T21:12:46 float/double check bugfix exported a function for NMTOKEN validation add a * xmlschemastypes.c: float/double check bugfix * tree.c include/libxml/tree.h: exported a function for NMTOKEN validation * xmlreader.c: add a TODO for Jody * relaxng.c: bugfix bugfix bugfix found 373 test schemas: 300 success 73 failures found 529 test instances: 507 success 10 failures * result/relaxng/*: updated the results Daniel
Daniel Veillard 416589ae 2003-02-17T17:25:42 more work on the RelaxNG implementation conformance testing. found 373 * relaxng.c check-relaxng-test-suite.py: more work on the RelaxNG implementation conformance testing. found 373 test schemas: 284 success 89 failures found 529 test instances: 448 success 47 failures * result/relaxng/*: updated the results Daniel
Daniel Veillard d2298791 2003-02-14T16:54:11 more testing on the Relax-NG front, cleaning up the regression tests * check-relaxng-test-suite.py relaxng.c: more testing on the Relax-NG front, cleaning up the regression tests failures current state and I forgot support for "mixed": found 373 test schemas: 280 success 93 failures found 529 test instances: 401 success 68 failures * tree.c include/libxml/tree.h xmlschemastypes.c: finished and moved the Name, NCName and QName validation routine in tree.c * uri.c: fixed handling of URI ending up with #, i.e. having an empty fragment ID. * result/relaxng/*: updated the results Daniel
Daniel Veillard 1703c5fc 2003-02-10T14:28:44 OASIS RelaxNG testsuite python script to run regression against OASIS * test/relaxng/OASIS/spectest.xml: OASIS RelaxNG testsuite * check-relaxng-test-suite.py: python script to run regression against OASIS RelaxNG testsuite * relaxng.c: some cleanup tweaks * HTMLparser.c globals.c: cleanups in comments * doc/libxml2-api.xml: updated the API * result/relaxng/*: errors moved files, so large diffs but no changes at the semantic level. Daniel
Daniel Veillard 231d791f 2003-02-09T14:22:17 fixes a libtool problem on AMD 64bits builds found the validation problem * libxml.spec.in: fixes a libtool problem on AMD 64bits builds * relaxng.c: found the validation problem I had with interleave when not covering all remaining siblings * Makefile.am test.relaxng/* result/relaxng/*: augmented the testsuite and check the RNG schemas against the RNG schemas given in appendix A Daniel
Daniel Veillard 96a4b252 2003-02-06T08:22:32 started implementing some of the missing default simple types updated the * xmlschemastypes.c: started implementing some of the missing default simple types * result/relaxng/*: updated the results Daniel
Daniel Veillard 71531f33 2003-02-05T13:19:53 comments cleanups use xmllint for doing the RelaxNG tests preparing 2.5.2 * HTMLparser.c tree.c xmlIO.c: comments cleanups * Makefile.am: use xmllint for doing the RelaxNG tests * configure.in: preparing 2.5.2 made schemas support default to on instead of off * relaxng.c: removed the verbosity * xmllint.c: added --relaxng option * python/generator.py python/libxml_wrap.h: prepared the integration of the new RelaxNG module and schemas * result/relaxng/*: less verbose output Daniel
Daniel Veillard 419a7688 2003-02-03T23:22:49 more work on grammars and refs/defs augmented/updated the regression tests * relaxng: more work on grammars and refs/defs * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard 144fae16 2003-02-03T13:17:57 more work on name classes, except support augmented/updated the regression * relaxng: more work on name classes, except support * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard 1ed7f364 2003-02-03T10:57:45 more work on name classes, the "validate all" schemas seems to work now. * relaxng: more work on name classes, the "validate all" schemas seems to work now. * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard fc1a4503 2003-02-02T16:02:55 check all the namespace support was actually correct based on tutorial * test/relaxng/* result/relaxng/*: check all the namespace support was actually correct based on tutorial section 10. Daniel
Daniel Veillard e2a5a08b 2003-02-02T14:35:17 include seems to work okay now augmented/updated the regression tests * relaxng: include seems to work okay now * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard 80ec90ac 2003-01-30T14:12:27 More tests from section 9 of the tutorial, Daniel
Daniel Veillard 0fb01065 2003-01-30T13:41:41 Combine with interleave on attributes worked without chnages, daniel
Daniel Veillard 154877e5 2003-01-30T12:17:05 more work done in the train augmented/updated the regression tests Daniel * relaxng: more work done in the train * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard e431a27d 2003-01-29T23:02:33 debugging of externalRef augmented/updated the regression tests Daniel * relaxng.c: debugging of externalRef * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard 03e6e8d4 2003-01-29T21:32:01 Oops forgot some result files, daniel
Daniel Veillard d41f4f48 2003-01-29T21:07:52 more work on Relax-NG, implementing externalRef augmented/updated the * relaxng.c: more work on Relax-NG, implementing externalRef * test/relaxng/* result/relaxng/*: augmented/updated the regression tests * Makefile.am: cleanup to Relaxtests target Daniel
Daniel Veillard b08c9815 2003-01-28T23:09:49 more work on Relax-NG, implementing interleave augmented/updated the * relaxng.c: more work on Relax-NG, implementing interleave * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard 76fc5eda 2003-01-28T20:58:15 more work on Relax-NG, implementing interleave augmented/updated the * relaxng.c: more work on Relax-NG, implementing interleave * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard c6e997c9 2003-01-27T12:35:42 more work on Relax-NG augmented/updated the regression tests added a * relaxng.c: more work on Relax-NG * test/relaxng/* result/relaxng/*: augmented/updated the regression tests * xmlschemastypes.c: added a number of base type definition but not the associated checks, those are still TODOs Daniel
Daniel Veillard ea3f398c 2003-01-26T19:45:18 more work on Relax-NG augmented/updated the regression tests Daniel * relaxng.c: more work on Relax-NG * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard edc91928 2003-01-26T00:52:04 more work on Relax-NG augmented/updated the regression tests Daniel * relaxng.c: more work on Relax-NG * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard dd1655c5 2003-01-25T18:01:32 updated the policy on private mail answers more work on Relax-NG * README: updated the policy on private mail answers * relaxng.c: more work on Relax-NG * test/relaxng/* result/relaxng/*: augmented/updated the regression tests Daniel
Daniel Veillard 276be4a6 2003-01-24T01:03:34 more work on Relax-NG regenerated the docs updated and augmented the * relaxng.c: more work on Relax-NG * doc/*: regenerated the docs * test/relaxng/* result/relaxng/*: updated and augmented the Relax-NG regression tests and results Daniel
Daniel Veillard 6eadf63c 2003-01-23T18:29:16 First commit of the new Relax-NG validation code, not generally useful * Makefile.am configure.in relaxng.c include/libxml/relaxng.h: First commit of the new Relax-NG validation code, not generally useful yet. * test/relaxng/* result/relaxng/*: current state of the regression tests Daniel