~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to tests/qapi-schema/test-qapi.py

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
schema = QAPISchema(sys.argv[1])
57
57
schema.visit(QAPISchemaTestVisitor())
 
58
 
 
59
for doc in schema.docs:
 
60
    if doc.symbol:
 
61
        print 'doc symbol=%s' % doc.symbol
 
62
    else:
 
63
        print 'doc freeform'
 
64
    print '    body=\n%s' % doc.body
 
65
    for arg, section in doc.args.iteritems():
 
66
        print '    arg=%s\n%s' % (arg, section)
 
67
    for section in doc.sections:
 
68
        print '    section=%s\n%s' % (section.name, section)