diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-18 18:48:46 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-24 22:20:33 +0300 |
commit | a8ce5c380c69539fe0c7c62c397634d9d0c9fde2 (patch) | |
tree | c8db5c9b99416ca4686af953387f474af15bc92e /xsd-tests/failed | |
parent | 7420f85ea19b0562ffdd8123442f32bc8bac1267 (diff) |
Switch to build2
Diffstat (limited to 'xsd-tests/failed')
-rw-r--r-- | xsd-tests/failed/.gitignore | 1 | ||||
-rw-r--r-- | xsd-tests/failed/buildfile | 27 | ||||
-rw-r--r-- | xsd-tests/failed/driver.cxx | 9 | ||||
-rw-r--r-- | xsd-tests/failed/test-00.xsd | 12 |
4 files changed, 49 insertions, 0 deletions
diff --git a/xsd-tests/failed/.gitignore b/xsd-tests/failed/.gitignore new file mode 100644 index 0000000..f691ede --- /dev/null +++ b/xsd-tests/failed/.gitignore @@ -0,0 +1 @@ +test-*.?xx diff --git a/xsd-tests/failed/buildfile b/xsd-tests/failed/buildfile new file mode 100644 index 0000000..8739001 --- /dev/null +++ b/xsd-tests/failed/buildfile @@ -0,0 +1,27 @@ +# file : failed/buildfile +# license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +# Just make sure that the schema files and the xsd-generated C++ mappings are +# compilable. +# +import libs = libxsd%lib{xsd} +import libs += libxerces-c%lib{xerces-c} + +fs = test-00 + +exe{driver}: {hxx cxx}{* -{$fs}} {hxx cxx}{$fs} $libs + +for f: $fs +{ + <{hxx cxx}{$f}>: xsd{$f} $xsd + {{ + diag xsd ($<[0]) # @@ TMP + + $xsd cxx-tree --std c++11 \ + --root-element-all \ + --output-dir $out_base \ + $path($<[0]) + }} +} + +cxx.poptions =+ "-I$out_base" diff --git a/xsd-tests/failed/driver.cxx b/xsd-tests/failed/driver.cxx new file mode 100644 index 0000000..a84b24c --- /dev/null +++ b/xsd-tests/failed/driver.cxx @@ -0,0 +1,9 @@ +// file : failed/driver.cxx +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#include "test-00.hxx" + +int +main (int, char*[]) +{ +} diff --git a/xsd-tests/failed/test-00.xsd b/xsd-tests/failed/test-00.xsd new file mode 100644 index 0000000..5223f82 --- /dev/null +++ b/xsd-tests/failed/test-00.xsd @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns="http://www.codesynthesis.com/xmlns/test" + targetNamespace="http://www.codesynthesis.com/xmlns/test"> + + <xsd:element name="foo"> + <xsd:complexType/> + </xsd:element> + +</xsd:schema> |