]> Git Repo - qemu.git/blob - tests/qapi-schema/test-qapi.py
tests: QAPI schema parser tests
[qemu.git] / tests / qapi-schema / test-qapi.py
1 #
2 # QAPI parser test harness
3 #
4 # Copyright (c) 2013 Red Hat Inc.
5 #
6 # Authors:
7 #  Markus Armbruster <[email protected]>
8 #
9 # This work is licensed under the terms of the GNU GPL, version 2 or later.
10 # See the COPYING file in the top-level directory.
11 #
12
13 from qapi import *
14 from pprint import pprint
15 import sys
16
17 try:
18     exprs = parse_schema(sys.stdin)
19 except:
20     print >>sys.stderr, "Crashed:", sys.exc_info()[0]
21     exit(1)
22
23 pprint(exprs)
24 pprint(enum_types)
25 pprint(struct_types)
This page took 0.025483 seconds and 4 git commands to generate.