blob: 7570d4dabb93364b5f7dbaa2e8ee9786dbf7ef3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# file : tests/testscript
# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
: version
:
$* --version >>~/EOO/
/CodeSynthesis XSD XML Schema to C\+\+ compiler .+/
/.*/*
EOO
: basics
:
cat <<EOI >=test.xsd;
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="hello_t">
<xsd:sequence>
<xsd:element name="greeting" type="xsd:string"/>
<xsd:element name="name" type="xsd:string" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="hello" type="hello_t"/>
</xsd:schema>
EOI
$* cxx-tree --generate-inline test.xsd &test.hxx &test.ixx &test.cxx;
test -f test.hxx && test -f test.ixx && test -f test.cxx
|