qapi: Add tests of redefined expressions
commitcfdd5bcad515a8371af59dba9625e31a6f6f733e
authorEric Blake <eblake@redhat.com>
Mon, 4 May 2015 15:05:16 +0000 (4 09:05 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 5 May 2015 16:39:01 +0000 (5 18:39 +0200)
tree9f34ae56607396e9838ebc5b2c1f7468d2b92cb4
parent0545f6b8874c28d97369f2c83e5077e0461d4f12
qapi: Add tests of redefined expressions

Demonstrate that the qapi generator doesn't deal very well with
redefined expressions.  At the parse level, they are silently
accepted; and while the testsuite just stops at parsing, I've
further tested that many of them cause generator crashes or
invalid C code if they were appended to qapi-schema-test.json.
A later patch will tighten things up and adjust the testsuite
to match.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
25 files changed:
tests/Makefile
tests/qapi-schema/command-int.err [new file with mode: 0644]
tests/qapi-schema/command-int.exit [new file with mode: 0644]
tests/qapi-schema/command-int.json [new file with mode: 0644]
tests/qapi-schema/command-int.out [new file with mode: 0644]
tests/qapi-schema/event-max.err [new file with mode: 0644]
tests/qapi-schema/event-max.exit [new file with mode: 0644]
tests/qapi-schema/event-max.json [new file with mode: 0644]
tests/qapi-schema/event-max.out [new file with mode: 0644]
tests/qapi-schema/redefined-builtin.err [new file with mode: 0644]
tests/qapi-schema/redefined-builtin.exit [new file with mode: 0644]
tests/qapi-schema/redefined-builtin.json [new file with mode: 0644]
tests/qapi-schema/redefined-builtin.out [new file with mode: 0644]
tests/qapi-schema/redefined-command.err [new file with mode: 0644]
tests/qapi-schema/redefined-command.exit [new file with mode: 0644]
tests/qapi-schema/redefined-command.json [new file with mode: 0644]
tests/qapi-schema/redefined-command.out [new file with mode: 0644]
tests/qapi-schema/redefined-event.err [new file with mode: 0644]
tests/qapi-schema/redefined-event.exit [new file with mode: 0644]
tests/qapi-schema/redefined-event.json [new file with mode: 0644]
tests/qapi-schema/redefined-event.out [new file with mode: 0644]
tests/qapi-schema/redefined-type.err [new file with mode: 0644]
tests/qapi-schema/redefined-type.exit [new file with mode: 0644]
tests/qapi-schema/redefined-type.json [new file with mode: 0644]
tests/qapi-schema/redefined-type.out [new file with mode: 0644]