]> git.proxmox.com Git - qemu.git/blame - tests/qapi-schema/test-qapi.py
qdev-properties-system.c: Allow vlan or netdev for -device, not both
[qemu.git] / tests / qapi-schema / test-qapi.py
CommitLineData
98626572
MA
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 sys
16
17try:
18 exprs = parse_schema(sys.stdin)
2caba36c
MA
19except SystemExit:
20 raise
98626572
MA
21except:
22 print >>sys.stderr, "Crashed:", sys.exc_info()[0]
23 exit(1)
24
25pprint(exprs)
26pprint(enum_types)
27pprint(struct_types)