diff options
Diffstat (limited to 'xsd-tests/schema/inheritance/buildfile')
-rw-r--r-- | xsd-tests/schema/inheritance/buildfile | 30 |
1 files changed, 30 insertions, 0 deletions
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 +} |