vl: Print -device help at most once
[qemu.git] / tests / qapi-schema / test-qapi.py
blob634ef2d00a64169d19f4221ce0bf91b179827c66
2 # QAPI parser test harness
4 # Copyright (c) 2013 Red Hat Inc.
6 # Authors:
7 # Markus Armbruster <armbru@redhat.com>
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.
13 from qapi import *
14 from pprint import pprint
15 import os
16 import sys
18 try:
19 exprs = parse_schema(sys.argv[1])
20 except SystemExit:
21 raise
23 pprint(exprs)
24 pprint(enum_types)
25 pprint(struct_types)