diff options
| author | Eric Blake | 2015-05-14 14:50:56 +0200 |
|---|---|---|
| committer | Markus Armbruster | 2015-05-14 18:21:09 +0200 |
| commit | fce384b8e5193e02421f6b2c2880f3684abcbdc0 (patch) | |
| tree | 280923134e2ea8e0ee612a2184cce364b57ecfbf /tests/qapi-schema/qapi-schema-test.json | |
| parent | qapi: Make c_type() consistently convert qapi names (diff) | |
| download | qemu-fce384b8e5193e02421f6b2c2880f3684abcbdc0.tar.gz qemu-fce384b8e5193e02421f6b2c2880f3684abcbdc0.tar.xz qemu-fce384b8e5193e02421f6b2c2880f3684abcbdc0.zip | |
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.json | 3 |
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' ] } |
