From 83c84667f57637fe5a7a6fc9905d6a9e9589d3e5 Mon Sep 17 00:00:00 2001 From: Michael Roth Date: Fri, 10 May 2013 17:46:09 -0500 Subject: 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 Reviewed-by: Laszlo Ersek Reviewed-by: Amos Kong Signed-off-by: Luiz Capitulino --- qapi-schema-test.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'qapi-schema-test.json') diff --git a/qapi-schema-test.json b/qapi-schema-test.json index 9eae350..4434fa3 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'} } -- cgit v1.1