summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/include-relpath.out
diff options
context:
space:
mode:
authorMarkus Armbruster2015-09-16 13:06:08 +0200
committerMarkus Armbruster2015-09-21 09:32:50 +0200
commit156402e5042193c45e70c378a93ccafd3832d8ff (patch)
tree25f6152f5ba3ca14b8af75de91f65cb47c0904a2 /tests/qapi-schema/include-relpath.out
parentqapi: New QAPISchemaVisitor (diff)
downloadqemu-156402e5042193c45e70c378a93ccafd3832d8ff.tar.gz
qemu-156402e5042193c45e70c378a93ccafd3832d8ff.tar.xz
qemu-156402e5042193c45e70c378a93ccafd3832d8ff.zip
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>
Diffstat (limited to 'tests/qapi-schema/include-relpath.out')
-rw-r--r--tests/qapi-schema/include-relpath.out4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/qapi-schema/include-relpath.out b/tests/qapi-schema/include-relpath.out
index 4ce3dcf12f..6161b90e91 100644
--- a/tests/qapi-schema/include-relpath.out
+++ b/tests/qapi-schema/include-relpath.out
@@ -1,3 +1 @@
-[OrderedDict([('enum', 'Status'), ('data', ['good', 'bad', 'ugly'])])]
-[{'enum_name': 'Status', 'enum_values': ['good', 'bad', 'ugly']}]
-[]
+enum Status ['good', 'bad', 'ugly']