diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2013-05-10 17:46:09 -0500 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-05-23 09:44:21 -0400 |
commit | 83c84667f57637fe5a7a6fc9905d6a9e9589d3e5 (patch) | |
tree | 3af4cfd47933f9efb1e1dbce4e88b55b9710d102 /qapi-schema-test.json | |
parent | 8addacddfece619f1795fcf6cb9a3c49f800e7b9 (diff) |
qapi: add native list coverage for QMP output visitor tests
This exercises schema-generated visitors for native list types and does
some sanity checking on validity of serialized data.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Amos Kong <akong@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema-test.json')
-rw-r--r-- | qapi-schema-test.json | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qapi-schema-test.json b/qapi-schema-test.json index 9eae3501d7..4434fa3961 100644 --- a/qapi-schema-test.json +++ b/qapi-schema-test.json @@ -32,6 +32,21 @@ { 'union': 'UserDefUnion', 'data': { 'a' : 'UserDefA', 'b' : 'UserDefB' } } +# for testing native lists +{ 'union': 'UserDefNativeListUnion', + 'data': { 'integer': ['int'], + 's8': ['int8'], + 's16': ['int16'], + 's32': ['int32'], + 's64': ['int64'], + 'u8': ['uint8'], + 'u16': ['uint16'], + 'u32': ['uint32'], + 'u64': ['uint64'], + 'number': ['number'], + 'boolean': ['bool'], + 'string': ['str'] } } + # testing commands { 'command': 'user_def_cmd', 'data': {} } { 'command': 'user_def_cmd1', 'data': {'ud1a': 'UserDefOne'} } |