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/any-attribute/buildfile | 12 ++++++++++++ xsd-tests/schema/any-attribute/test.xsd | 22 ++++++++++++++++++++++ xsd-tests/schema/any-attribute/testscript | 8 ++++++++ 3 files changed, 42 insertions(+) create mode 100644 xsd-tests/schema/any-attribute/buildfile create mode 100644 xsd-tests/schema/any-attribute/test.xsd create mode 100644 xsd-tests/schema/any-attribute/testscript (limited to 'xsd-tests/schema/any-attribute') diff --git a/xsd-tests/schema/any-attribute/buildfile b/xsd-tests/schema/any-attribute/buildfile new file mode 100644 index 0000000..e4275a4 --- /dev/null +++ b/xsd-tests/schema/any-attribute/buildfile @@ -0,0 +1,12 @@ +# file : schema/any-attribute/buildfile +# license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +# Test that the invalid schema files compilation expectedly fails. +# +./: testscript xsd{*} $xsd + +testscript{*}: +{ + test = $xsd + test.arguments = cxx-tree --std c++11 +} diff --git a/xsd-tests/schema/any-attribute/test.xsd b/xsd-tests/schema/any-attribute/test.xsd new file mode 100644 index 0000000..55419c4 --- /dev/null +++ b/xsd-tests/schema/any-attribute/test.xsd @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + diff --git a/xsd-tests/schema/any-attribute/testscript b/xsd-tests/schema/any-attribute/testscript new file mode 100644 index 0000000..d9da7c1 --- /dev/null +++ b/xsd-tests/schema/any-attribute/testscript @@ -0,0 +1,8 @@ +# file : schema/any-attribute/testscript +# license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +: decl-after-any-attribute +: +$* --output-dir $~ $src_base/test.xsd 2>>/"EOE" != 0 + $src_base/test.xsd:12:44: error: anyAttribute must not be followed by other declarations + EOE -- cgit v1.1