tests/qapi-schema: Convert test harness to QAPISchemaVisitor
authorMarkus Armbruster <armbru@redhat.com>
Wed, 16 Sep 2015 11:06:08 +0000 (13:06 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 21 Sep 2015 07:32:50 +0000 (09:32 +0200)
commit156402e5042193c45e70c378a93ccafd3832d8ff
tree25f6152f5ba3ca14b8af75de91f65cb47c0904a2
parent3f7dc21bee1e930d5cccf607b8f83831c3bbdb09
tests/qapi-schema: Convert test harness to QAPISchemaVisitor

The old code prints the result of parsing (list of expression
dictionaries), and partial results of semantic analysis (list of enum
dictionaries, list of struct dictionaries).

The new code prints a trace of a schema visit, i.e. what the back-ends
are going to use.  Built-in and array types are omitted, because
they're boring.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
16 files changed:
tests/qapi-schema/alternate-good.out
tests/qapi-schema/args-member-array.out
tests/qapi-schema/comments.out
tests/qapi-schema/empty.out
tests/qapi-schema/enum-empty.out
tests/qapi-schema/event-case.out
tests/qapi-schema/flat-union-reverse-define.out
tests/qapi-schema/ident-with-escape.out
tests/qapi-schema/include-relpath.out
tests/qapi-schema/include-repetition.out
tests/qapi-schema/include-simple.out
tests/qapi-schema/indented-expr.out
tests/qapi-schema/qapi-schema-test.out
tests/qapi-schema/returns-int.out
tests/qapi-schema/test-qapi.py
tests/qapi-schema/type-bypass.out