22 Commits

Author SHA1 Message Date
Vadim Godunko
c93009269c Update expected result of expansion of \c 2025-01-31 13:17:40 +04:00
Vadim Godunko
b9f3188d3e Update expected results of complexType tests. 2025-01-31 13:14:53 +04:00
Vadim Godunko
6e12431035 Update expected data for tests of \? 2025-01-30 18:00:25 +04:00
Vadim Godunko
23c7835b4d Remove unnecessary pragma. 2025-01-20 08:13:06 +00:00
Nicolas Boulenguez
9e1bd23397 docs: remove erroneous execution permissions 2022-08-06 12:38:05 +02:00
Vasiliy Fofanov
26e0d6b450 Clean up redundant context clauses. UC14-034
Change-Id: I33ca879d3e0f670385b463dd13f2f10074398df2
2021-12-16 12:29:38 +00:00
Fabien Chouteau
512a7fc92d Rename shared.gpr into xmlada_shared.gpr
For the same reason as the external variables, shared.gpr can be a
source of conflict between different projects. For instance with AWS.

This change has no impact on the installation since shared.gpr is not
provided in the installation.

Part of T715-030.

Change-Id: Ie0ac01a23c34981b75055fbe8a45db9cc50a581f
2020-08-07 19:30:24 +02:00
Dmitriy Anisimkov
ecf9daa284 Fix Is_Valid_Base64Binary routine
S823-015

The character code in base64 encoding preceding the terminating '='
must be a multiple of 4. This change fixes situation where this
character could be any base64 character, which could happen when
one-but-last character code was a multiple of 16.

Change-Id: I9fe4fb266d07e127e9e64be9404571a91b32bcdb
2019-08-24 17:27:59 +02:00
Fedor Rybin
b1be3aa7a2 Q215-048 fix xmlada examples
Fix examples to import proper project names,
fix domschemaexample to not unset the namespeces feature,
add examples to the testing.

Change-Id: Ic5ba519f9ae80f4df3931757a1fcdb9b72e4f540
2017-02-22 13:05:36 +01:00
Emmanuel Briot
53dc51bf5c Update copyright notices
Change-Id: Iae1283292b460ead48dedc565d6f24259e497e69
2017-01-03 10:02:38 +01:00
Emmanuel Briot
50d313e1f8 Increase internal limit for maxOccurs
We still emit a warning for large values, but do not prevent validating
documents.

P812-015

Change-Id: If61b53425f27417f0ae108c5a79b8edd7f690f8c
2016-08-16 17:30:10 +02:00
Emmanuel Briot
0d89040fe6 Fix handling of <choice> with elements with maxOccurs
If a <choice> has two or more elements with a maxOccurs property,
they will allow a mix of the elements, when it should only allow a
repeat of one of the elements.

The simple fix to the state machine is in schema-schema_readers.adb.
But this change resulted in a regression in the testsuite, when one
of the elements in the <choice> is a <any>. At this point, we are
trying to replace the states in the state machine, but did not
properly chain them, and therefore some states accessible via
empty transitions were not properly accessible.

The order of suggested elements in error messages was reversed in
some cases, but the error message is still value, so adjust the
baseline.

P621-020

Change-Id: I1cfb58e2fd45cfd0fc1660fa8727ab679543ba5b
2016-06-23 13:50:48 +02:00
Emmanuel Briot
b02d093dc7 Fix handling of sequences with unbounded elements
The sequence itself was allowed to repeat itself

P616-033

Change-Id: I62f34a63b34da17da4a8c9a6afb253f88196a981
2016-06-17 11:14:32 +02:00
Emmanuel Briot
95931984d1 Improve support for filtering which tests are run and displayed
This helps to analyze memory leaks through valgrind
L328-026

Change-Id: Id56138a9c2e9a36221bf34268cd7f6dc9238f6fa
2016-02-17 18:02:08 +01:00
Emmanuel Briot
1262b6c064 Update copyright headers to 2016
Change-Id: I70135cb5146de304f14587d1a518c94e804a8e6c
2016-02-17 18:02:07 +01:00
Emmanuel Briot
24b968c74d Ensure the obj directory exists in the tests
Temporary files are stored there for each testsuite

Change-Id: Idd56705d519f6abbcfb2708414a7968c64437fdf
2015-10-28 10:49:33 +01:00
Vasiliy Fofanov
3937fca8b0 Correct last commit.
Change-Id: I0ca13bb58118f8bd24029ea08d4b9c8d70589366
TN:OA15-004
2015-10-20 12:47:27 +02:00
Emmanuel Briot
c4d2b5d724 anod always expected a diff file for some reason
OA15-004

Change-Id: I55aac362bf1b74775e7ce424b5e723eb34c533d4
2015-10-15 10:48:45 +02:00
Emmanuel Briot
3fbca59487 Add support for preloading multiple XSD files and reuse them
O930-031

XSD files with no namespace information cannot be mixed into the
same XML_Grammar, or they will conflict with each other. The
solution is therefore to preload each of them into its own XML_Grammar,
and then let the validating parser chose that grammar dynamically
by overriding the new primitive operation Parse_Grammar.

Change-Id: I337d09259c6b2b18d9b91b4ded847f7f8dcd6eab
2015-10-13 15:18:30 +02:00
Emmanuel Briot
ed403f38c3 Adapt to new behavior of Normalize_Pathname
(r317150 in the gnat repository)
Given a relative base directory, the function used to return a relative
filename, whereas it now always return an absolute filename. So the
testsuite was no longer looking for file in the schematest*/ directory.

OA12-034

Change-Id: I47e38978beb0dd16d6daf13fe4f22088cc539969
2015-10-13 12:28:52 +02:00
Emmanuel Briot
227a3814a6 Reorganize the Makefile for the testsuite
We now have a single makefile, and properly separate each test that
should be visible in the nightly tests. All results are stored in a
results/ directory to help integration with the nightly tests.

O710-005
2015-07-16 15:06:11 +02:00
Emmanuel Briot
63b47c6599 Reorganize testsuites
Move all the */test/ directories to tests/*
Move all tests that potentially contain customer code or data to tests/adacore
 These will be moved to a separate git repository

Part of O527-038

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@240170 936e1b1b-40f2-da11-902a-00137254ae57
2015-07-09 15:17:03 +02:00