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/ref-type/invalid/buildfile | 12 ++++++++++++ xsd-tests/schema/ref-type/invalid/invalid-0.xsd | 17 +++++++++++++++++ xsd-tests/schema/ref-type/invalid/invalid-1.xsd | 11 +++++++++++ xsd-tests/schema/ref-type/invalid/testscript | 16 ++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 xsd-tests/schema/ref-type/invalid/buildfile create mode 100644 xsd-tests/schema/ref-type/invalid/invalid-0.xsd create mode 100644 xsd-tests/schema/ref-type/invalid/invalid-1.xsd create mode 100644 xsd-tests/schema/ref-type/invalid/testscript (limited to 'xsd-tests/schema/ref-type/invalid') diff --git a/xsd-tests/schema/ref-type/invalid/buildfile b/xsd-tests/schema/ref-type/invalid/buildfile new file mode 100644 index 0000000..42c7bfb --- /dev/null +++ b/xsd-tests/schema/ref-type/invalid/buildfile @@ -0,0 +1,12 @@ +# file : schema/ref-type/invalid/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/ref-type/invalid/invalid-0.xsd b/xsd-tests/schema/ref-type/invalid/invalid-0.xsd new file mode 100644 index 0000000..7ce82ed --- /dev/null +++ b/xsd-tests/schema/ref-type/invalid/invalid-0.xsd @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/xsd-tests/schema/ref-type/invalid/invalid-1.xsd b/xsd-tests/schema/ref-type/invalid/invalid-1.xsd new file mode 100644 index 0000000..d989065 --- /dev/null +++ b/xsd-tests/schema/ref-type/invalid/invalid-1.xsd @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/xsd-tests/schema/ref-type/invalid/testscript b/xsd-tests/schema/ref-type/invalid/testscript new file mode 100644 index 0000000..ce2e049 --- /dev/null +++ b/xsd-tests/schema/ref-type/invalid/testscript @@ -0,0 +1,16 @@ +# file : schema/ref-type/invalid/testscript +# license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +: unresolvable-namespace-prefix +: +$* --output-dir $~ $src_base/invalid-0.xsd 2>>~%EOE%d != 0 + %\.+invalid-0.xsd:10:75: error: unable to resolve namespace ''% + %\.+invalid-0.xsd:11:77: error: unable to resolve namespace prefix 't' in 't:author'% + %\.+invalid-0.xsd:15:81: error: unable to resolve namespace 'http://www.codesynthesis.com/xmlns/phony'% + EOE + +: unresolvable-type +: +$* --output-dir $~ $src_base/invalid-1.xsd 2>>~%EOE%d != 0 + %\.+invalid-1.xsd:9:79: error: unable to resolve type 'author' in namespace 'http://www.codesynthesis.com/xmlns/test'% + EOE -- cgit v1.1