tests/qapi-schema: Cover optional command arguments
Signed-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
tests/qapi-schema: Cover simple argument types
tests/qapi-schema: Cover anonymous union types
tests/qapi-schema: Cover complex types with base
tests/qapi-schema: Cover union types with base
tests/qapi-schema: Cover flat union types
The test demonstrates a generator bug: the generated structUserDefFlatUnion doesn't include members for the indirect baseUserDefZero.
Signed-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>...
OptsVisitor: introduce unit tests, with test cases for range flattening
According to commit 4f193e34("tests: Use qapi-schema-test.json as schema parser test")the "tests/qapi-schema/qapi-schema-test.out" file must be updated as well.
Signed-off-by: Laszlo Ersek <lersek@redhat.com>...
qapi.py: Fix schema parser to check syntax systematically
Fixes at least the following parser bugs:
Signed-off-by: Markus Armbruster <armbru@redhat.com>...
qapi.py: Fix diagnosing non-objects at a schema's top-level
Report syntax error instead of crashing.
Signed-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Message-id: 1374939721-7876-8-git-send-email-armbru@redhat.com...
qapi.py: Permit comments starting anywhere on the line
Signed-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Message-id: 1374939721-7876-10-git-send-email-armbru@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
View revisions
Also available in: Atom