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:56 -0600
committerMarkus Armbruster <armbru@redhat.com>2015-05-14 18:21:09 +0200
commitfce384b8e5193e02421f6b2c2880f3684abcbdc0 (patch)
tree280923134e2ea8e0ee612a2184cce364b57ecfbf /tests/qapi-schema/qapi-schema-test.json
parentc6405b54b7b09a876f2f2fba2aa6f8ac87189cb9 (diff)
downloadqemu-fce384b8e5193e02421f6b2c2880f3684abcbdc0.tar.gz
qapi: Support downstream enums
Enhance the testsuite to cover a downstream enum type and enum string. Update the generator to mangle the enum name 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.json3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qapi-schema/qapi-schema-test.json b/tests/qapi-schema/qapi-schema-test.json
index 8193dc13a9..5f9af66764 100644
--- a/tests/qapi-schema/qapi-schema-test.json
+++ b/tests/qapi-schema/qapi-schema-test.json
@@ -107,3 +107,6 @@
'data': { '*a': 'int', '*b': 'UserDefOne', 'c': 'str' } }
{ 'event': 'EVENT_D',
'data': { 'a' : 'EventStructOne', 'b' : 'str', '*c': 'str', '*enum3': 'EnumOne' } }
+
+# test that we correctly compile downstream extensions
+{ 'enum': '__org.qemu_x-Enum', 'data': [ '__org.qemu_x-value' ] }