xref: /openbmc/qemu/tests/qapi-schema/test-qapi.py (revision a719a27c)
1#
2# QAPI parser test harness
3#
4# Copyright (c) 2013 Red Hat Inc.
5#
6# Authors:
7#  Markus Armbruster <armbru@redhat.com>
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
13from qapi import *
14from pprint import pprint
15import os
16import sys
17
18try:
19    exprs = parse_schema(sys.argv[1])
20except SystemExit:
21    raise
22
23pprint(exprs)
24pprint(enum_types)
25pprint(struct_types)
26