summaryrefslogtreecommitdiff
path: root/tests/qapi-schema/qapi-schema-test.json
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2015-05-14 06:50:57 -0600
committerMarkus Armbruster <armbru@redhat.com>2015-05-14 18:21:13 +0200
commit83a02706bb1fd31c93eab755de543dfe228682d4 (patch)
tree2308a27e06b553170fe9b9d27beb5e3b9a0a67ed /tests/qapi-schema/qapi-schema-test.json
parentfce384b8e5193e02421f6b2c2880f3684abcbdc0 (diff)
downloadqemu-83a02706bb1fd31c93eab755de543dfe228682d4.tar.gz
qapi: Support downstream structs
Enhance the testsuite to cover downstream structs, including struct members and base structs. Update the generator to mangle the struct names in the appropriate places. Signed-off-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/qapi-schema-test.json')
-rw-r--r--tests/qapi-schema/qapi-schema-test.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qapi-schema/qapi-schema-test.json b/tests/qapi-schema/qapi-schema-test.json
index 5f9af66764..ca9b34ce38 100644
--- a/tests/qapi-schema/qapi-schema-test.json
+++ b/tests/qapi-schema/qapi-schema-test.json
@@ -110,3 +110,7 @@
# test that we correctly compile downstream extensions
{ 'enum': '__org.qemu_x-Enum', 'data': [ '__org.qemu_x-value' ] }
+{ 'struct': '__org.qemu_x-Base',
+ 'data': { '__org.qemu_x-member1': '__org.qemu_x-Enum' } }
+{ 'struct': '__org.qemu_x-Struct', 'base': '__org.qemu_x-Base',
+ 'data': { '__org.qemu_x-member2': 'str' } }