From 5e527213a2430bb3018e5eebd909aef294edf9b5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 18 Dec 2020 18:48:46 +0300 Subject: Switch to build2 --- xsd-tests/schema/inheritance/.gitignore | 1 + xsd-tests/schema/inheritance/buildfile | 30 +++++++++++++++++++ xsd-tests/schema/inheritance/cycle.xsd | 34 ++++++++++++++++++++++ .../schema/inheritance/sourced-forward/.gitignore | 1 + .../inheritance/sourced-forward/includee.xsd | 10 +++++++ .../inheritance/sourced-forward/includer.xsd | 14 +++++++++ xsd-tests/schema/inheritance/testscript | 8 +++++ 7 files changed, 98 insertions(+) create mode 100644 xsd-tests/schema/inheritance/.gitignore create mode 100644 xsd-tests/schema/inheritance/buildfile create mode 100644 xsd-tests/schema/inheritance/cycle.xsd create mode 100644 xsd-tests/schema/inheritance/sourced-forward/.gitignore create mode 100644 xsd-tests/schema/inheritance/sourced-forward/includee.xsd create mode 100644 xsd-tests/schema/inheritance/sourced-forward/includer.xsd create mode 100644 xsd-tests/schema/inheritance/testscript (limited to 'xsd-tests/schema/inheritance') diff --git a/xsd-tests/schema/inheritance/.gitignore b/xsd-tests/schema/inheritance/.gitignore new file mode 100644 index 0000000..9891c35 --- /dev/null +++ b/xsd-tests/schema/inheritance/.gitignore @@ -0,0 +1 @@ +cycle.?xx diff --git a/xsd-tests/schema/inheritance/buildfile b/xsd-tests/schema/inheritance/buildfile new file mode 100644 index 0000000..48c6dde --- /dev/null +++ b/xsd-tests/schema/inheritance/buildfile @@ -0,0 +1,30 @@ +# file : schema/inheritance/buildfile +# license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +fs = cycle sourced-forward/includer + +./: {hxx cxx}{$fs} + +# Make sure that the schema files are compilable. +# +for f: $fs +{ + <{hxx cxx}{$f}>: xsd{$f} $xsd + {{ + diag xsd ($<[0]) # @@ TMP + + $xsd cxx-tree --std c++11 \ + --output-dir $directory($path($>[0])) \ + $path($<[0]) + }} +} + +# Test that the invalid schema files compilation expectedly fails. +# +./: testscript xsd{** -{$fs}} $xsd + +testscript{*}: +{ + test = $xsd + test.arguments = cxx-tree --std c++11 +} diff --git a/xsd-tests/schema/inheritance/cycle.xsd b/xsd-tests/schema/inheritance/cycle.xsd new file mode 100644 index 0000000..c705311 --- /dev/null +++ b/xsd-tests/schema/inheritance/cycle.xsd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsd-tests/schema/inheritance/sourced-forward/.gitignore b/xsd-tests/schema/inheritance/sourced-forward/.gitignore new file mode 100644 index 0000000..4ec7484 --- /dev/null +++ b/xsd-tests/schema/inheritance/sourced-forward/.gitignore @@ -0,0 +1 @@ +includer.?xx diff --git a/xsd-tests/schema/inheritance/sourced-forward/includee.xsd b/xsd-tests/schema/inheritance/sourced-forward/includee.xsd new file mode 100644 index 0000000..531027d --- /dev/null +++ b/xsd-tests/schema/inheritance/sourced-forward/includee.xsd @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/xsd-tests/schema/inheritance/sourced-forward/includer.xsd b/xsd-tests/schema/inheritance/sourced-forward/includer.xsd new file mode 100644 index 0000000..7d18efc --- /dev/null +++ b/xsd-tests/schema/inheritance/sourced-forward/includer.xsd @@ -0,0 +1,14 @@ + + + + + + + + + + diff --git a/xsd-tests/schema/inheritance/testscript b/xsd-tests/schema/inheritance/testscript new file mode 100644 index 0000000..5cc649d --- /dev/null +++ b/xsd-tests/schema/inheritance/testscript @@ -0,0 +1,8 @@ +# file : schema/inheritance/testscript +# license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +: base-not-found +: +$* --output-dir $~ $src_base/sourced-forward/includee.xsd 2>>/"EOE" != 0 + $src_base/sourced-forward/includee.xsd:7:35: error: base type 'Base' not found in 'Derived' definition + EOE -- cgit v1.1