qemu-e2k/tests/qapi-schema
Eric Blake 9f08c8ec73 qapi: Lazy creation of array types
Commit ac88219a had several TODO markers about whether we needed
to automatically create the corresponding array type alongside
any other type.  It turns out that most of the time, we don't!

There are a few exceptions: 1) We have a few situations where we
use an array type in internal code but do not expose that type
through QMP; fix it by declaring a dummy type that forces the
generator to see that we want to use the array type.

2) The builtin arrays (such as intList for QAPI ['int']) must
always be generated, because of the way our QAPI_TYPES_BUILTIN
compile guard works: we have situations (at the very least
tests/test-qmp-output-visitor.c) that include both top-level
"qapi-types.h" (via "error.h") and a secondary
"test-qapi-types.h". If we were to only emit the builtin types
when used locally, then the first .h file would not include all
types, but the second .h does not declare anything at all because
the first .h set QAPI_TYPES_BUILTIN, and we would end up with
compilation error due to things like unknown type 'int8List'.

Actually, we may need to revisit how we do type guards, and
change from a single QAPI_TYPES_BUILTIN over to a different
usage pattern that does one #ifdef per qapi type - right now,
the only types that are declared multiple times between two qapi
.json files for inclusion by a single .c file happen to be the
builtin arrays.  But now that we have QAPI 'include' statements,
it is logical to assume that we will soon reach a point where
we want to reuse non-builtin types (yes, I'm thinking about what
it will take to add introspection to QGA, where we will want to
reuse the SchemaInfo type and friends).  One #ifdef per type
will help ensure that generating the same qapi type into more
than one qapi-types.h won't cause collisions when both are
included in the same .c file; but we also have to solve how to
avoid creating duplicate qapi-types.c entry points.  So that
is a problem left for another day.

Generated code for qapi-types and qapi-visit is drastically
reduced; less than a third of the arrays that were blindly
created were actually needed (a quick grep shows we dropped
from 219 to 69 *List types), and the .o files lost more than
30% of their bulk.  [For best results, diff the generated
files with 'git diff --patience --no-index pre post'.]

Interestingly, the introspection output is unchanged - this is
because we already cull all types that are not indirectly
reachable from a command or event, so introspection was already
using only a subset of array types.  The subset of types
introspected is now a much larger percentage of the overall set
of array types emitted in qapi-types.h (since the larger set
shrunk), but still not 100% (evidence that the array types
emitted for our new Dummy structs, and the new struct itself,
don't affect QMP).

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1444710158-8723-9-git-send-email-eblake@redhat.com>
[Moved array info tracking to a later patch]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2015-10-15 08:39:08 +02:00
..
include qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
alternate-array.err qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
alternate-array.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-array.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
alternate-array.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-base.err qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
alternate-base.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-base.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
alternate-base.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-clash.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
alternate-clash.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-clash.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
alternate-clash.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-conflict-dict.err qapi: Use 'alternate' to replace anonymous union 2015-05-05 18:39:00 +02:00
alternate-conflict-dict.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-conflict-dict.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
alternate-conflict-dict.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-conflict-string.err qapi: Use 'alternate' to replace anonymous union 2015-05-05 18:39:00 +02:00
alternate-conflict-string.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-conflict-string.json qapi: Use 'alternate' to replace anonymous union 2015-05-05 18:39:00 +02:00
alternate-conflict-string.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-empty.err qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
alternate-empty.exit qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
alternate-empty.json qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
alternate-empty.out qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
alternate-nested.err qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
alternate-nested.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-nested.json qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
alternate-nested.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-unknown.err qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
alternate-unknown.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
alternate-unknown.json qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
alternate-unknown.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
args-alternate.err qapi-tests: New tests for union, alternate command arguments 2015-09-04 15:47:15 +02:00
args-alternate.exit qapi-tests: New tests for union, alternate command arguments 2015-09-04 15:47:15 +02:00
args-alternate.json qapi-tests: New tests for union, alternate command arguments 2015-09-04 15:47:15 +02:00
args-alternate.out qapi-tests: New tests for union, alternate command arguments 2015-09-04 15:47:15 +02:00
args-any.err qapi: Introduce a first class 'any' type 2015-09-21 09:56:49 +02:00
args-any.exit qapi: Introduce a first class 'any' type 2015-09-21 09:56:49 +02:00
args-any.json qapi: Introduce a first class 'any' type 2015-09-21 09:56:49 +02:00
args-any.out qapi: Introduce a first class 'any' type 2015-09-21 09:56:49 +02:00
args-array-empty.err tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-array-empty.exit tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-array-empty.json tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-array-empty.out tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-array-unknown.err qapi: Simplify error reporting for array types 2015-09-04 15:47:16 +02:00
args-array-unknown.exit tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-array-unknown.json tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-array-unknown.out tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-int.err tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-int.exit tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-int.json tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-int.out tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-invalid.err qapi: Fix errors for non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
args-invalid.exit tests/qapi-schema: Cover non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
args-invalid.json qapi: Fix errors for non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
args-invalid.out tests/qapi-schema: Cover non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
args-member-array-bad.err tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-member-array-bad.exit tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-member-array-bad.json tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-member-array-bad.out tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-member-unknown.err tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-member-unknown.exit tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-member-unknown.json tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-member-unknown.out tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-name-clash.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
args-name-clash.exit qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
args-name-clash.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
args-name-clash.out qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
args-union.err qapi: Fix to reject union command and event arguments 2015-09-04 15:47:15 +02:00
args-union.exit qapi: Fix to reject union command and event arguments 2015-09-04 15:47:15 +02:00
args-union.json qapi: Fix to reject union command and event arguments 2015-09-04 15:47:15 +02:00
args-union.out qapi: Fix to reject union command and event arguments 2015-09-04 15:47:15 +02:00
args-unknown.err tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-unknown.exit tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-unknown.json tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
args-unknown.out tests/qapi-schema: Rename tests from data- to args- 2015-09-04 15:47:15 +02:00
bad-base.err qapi: Prefer 'struct' over 'type' in generator 2015-05-05 18:39:01 +02:00
bad-base.exit qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
bad-base.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
bad-base.out qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
bad-data.err qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
bad-data.exit qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
bad-data.json qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
bad-data.out qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
bad-ident.err qapi: Prefer 'struct' over 'type' in generator 2015-05-05 18:39:01 +02:00
bad-ident.exit qapi: Require valid names 2015-05-05 18:39:01 +02:00
bad-ident.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
bad-ident.out qapi: Require valid names 2015-05-05 18:39:01 +02:00
bad-type-bool.err qapi: Prefer 'struct' over 'type' in generator 2015-05-05 18:39:01 +02:00
bad-type-bool.exit qapi: Add some expr tests 2015-05-05 18:39:01 +02:00
bad-type-bool.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
bad-type-bool.out qapi: Add some expr tests 2015-05-05 18:39:01 +02:00
bad-type-dict.err qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
bad-type-dict.exit qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
bad-type-dict.json qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
bad-type-dict.out qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
bad-type-int.err qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
bad-type-int.exit qapi: Add some expr tests 2015-05-05 18:39:01 +02:00
bad-type-int.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
bad-type-int.out qapi: Add some expr tests 2015-05-05 18:39:01 +02:00
command-int.err qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
command-int.exit qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
command-int.json qapi: Command returning anonymous type doesn't work, outlaw 2015-09-04 15:47:15 +02:00
command-int.out qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
comments.err
comments.exit
comments.json
comments.out qapi: New QMP command query-qmp-schema for QMP introspection 2015-09-21 09:56:49 +02:00
double-data.err qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
double-data.exit qapi: Add some expr tests 2015-05-05 18:39:01 +02:00
double-data.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
double-data.out qapi: Add some expr tests 2015-05-05 18:39:01 +02:00
double-type.err qapi: Prefer 'struct' over 'type' in generator 2015-05-05 18:39:01 +02:00
double-type.exit qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
double-type.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
double-type.out qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
duplicate-key.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
duplicate-key.exit
duplicate-key.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
duplicate-key.out
empty.err
empty.exit
empty.json
empty.out qapi: New QMP command query-qmp-schema for QMP introspection 2015-09-21 09:56:49 +02:00
enum-bad-name.err qapi: Require valid names 2015-05-05 18:39:01 +02:00
enum-bad-name.exit qapi: Require valid names 2015-05-05 18:39:01 +02:00
enum-bad-name.json qapi: Require valid names 2015-05-05 18:39:01 +02:00
enum-bad-name.out qapi: Require valid names 2015-05-05 18:39:01 +02:00
enum-bad-prefix.err qapi: allow override of default enum prefix naming 2015-09-15 10:59:28 +01:00
enum-bad-prefix.exit qapi: allow override of default enum prefix naming 2015-09-15 10:59:28 +01:00
enum-bad-prefix.json qapi: allow override of default enum prefix naming 2015-09-15 10:59:28 +01:00
enum-bad-prefix.out qapi: allow override of default enum prefix naming 2015-09-15 10:59:28 +01:00
enum-clash-member.err qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-clash-member.exit qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-clash-member.json qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-clash-member.out qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-dict-member.err qapi: Require valid names 2015-05-05 18:39:01 +02:00
enum-dict-member.exit qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-dict-member.json qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-dict-member.out qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-int-member.err qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-int-member.exit qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-int-member.json qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-int-member.out qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-max-member.err qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-max-member.exit qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-max-member.json qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-max-member.out qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-missing-data.err qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
enum-missing-data.exit qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-missing-data.json qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-missing-data.out qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-union-clash.err qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
enum-union-clash.exit qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
enum-union-clash.json qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
enum-union-clash.out qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
enum-wrong-data.err qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-wrong-data.exit qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-wrong-data.json qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
enum-wrong-data.out qapi: Better error messages for bad enums 2015-05-05 18:39:00 +02:00
escape-outside-string.err qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-outside-string.exit qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-outside-string.json qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-outside-string.out qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-too-big.err qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-too-big.exit qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-too-big.json qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-too-big.out qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-too-short.err qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-too-short.exit qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-too-short.json qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
escape-too-short.out qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
event-case.err qapi: Add some expr tests 2015-05-05 18:39:01 +02:00
event-case.exit qapi: Add some expr tests 2015-05-05 18:39:01 +02:00
event-case.json qapi: Add some expr tests 2015-05-05 18:39:01 +02:00
event-case.out qapi: New QMP command query-qmp-schema for QMP introspection 2015-09-21 09:56:49 +02:00
event-max.err qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
event-max.exit qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
event-max.json qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
event-max.out qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
event-nest-struct.err qapi: Drop support for inline nested types 2015-05-05 18:39:02 +02:00
event-nest-struct.exit qapi script: add event support 2014-06-23 11:01:25 -04:00
event-nest-struct.json qapi script: add event support 2014-06-23 11:01:25 -04:00
event-nest-struct.out qapi script: add event support 2014-06-23 11:01:25 -04:00
flat-union-array-branch.err qapi: Catch and reject flat union branch of array type 2015-06-18 14:19:47 +02:00
flat-union-array-branch.exit tests/qapi-schema: New flat union array branch test case 2015-06-18 14:19:47 +02:00
flat-union-array-branch.json tests/qapi-schema: New flat union array branch test case 2015-06-18 14:19:47 +02:00
flat-union-array-branch.out tests/qapi-schema: New flat union array branch test case 2015-06-18 14:19:47 +02:00
flat-union-bad-base.err qapi: Reuse code for flat union base validation 2015-10-12 18:46:49 +02:00
flat-union-bad-base.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-bad-base.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
flat-union-bad-base.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-bad-discriminator.err qapi: Require valid names 2015-05-05 18:39:01 +02:00
flat-union-bad-discriminator.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
flat-union-bad-discriminator.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
flat-union-bad-discriminator.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
flat-union-base-any.err qapi: Reuse code for flat union base validation 2015-10-12 18:46:49 +02:00
flat-union-base-any.exit qapi: Introduce a first class 'any' type 2015-09-21 09:56:49 +02:00
flat-union-base-any.json qapi: Introduce a first class 'any' type 2015-09-21 09:56:49 +02:00
flat-union-base-any.out qapi: Introduce a first class 'any' type 2015-09-21 09:56:49 +02:00
flat-union-base-union.err qapi: Reuse code for flat union base validation 2015-10-12 18:46:49 +02:00
flat-union-base-union.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-base-union.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-base-union.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-clash-branch.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-clash-branch.exit qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-clash-branch.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-clash-branch.out qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-clash-member.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-clash-member.exit qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-clash-member.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-clash-member.out qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-clash-type.err qapi: Avoid assertion failure on union 'type' collision 2015-10-12 18:44:54 +02:00
flat-union-clash-type.exit qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-clash-type.json qapi: Avoid assertion failure on union 'type' collision 2015-10-12 18:44:54 +02:00
flat-union-clash-type.out qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
flat-union-empty.err qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
flat-union-empty.exit qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
flat-union-empty.json qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
flat-union-empty.out qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
flat-union-inline.err qapi: Reuse code for flat union base validation 2015-10-12 18:46:49 +02:00
flat-union-inline.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-inline.json qapi: Reuse code for flat union base validation 2015-10-12 18:46:49 +02:00
flat-union-inline.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-int-branch.err qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
flat-union-int-branch.exit qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
flat-union-int-branch.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
flat-union-int-branch.out qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
flat-union-invalid-branch-key.err
flat-union-invalid-branch-key.exit
flat-union-invalid-branch-key.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
flat-union-invalid-branch-key.out
flat-union-invalid-discriminator.err qapi: Prefer 'struct' over 'type' in generator 2015-05-05 18:39:01 +02:00
flat-union-invalid-discriminator.exit
flat-union-invalid-discriminator.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
flat-union-invalid-discriminator.out
flat-union-no-base.err qapi: Reuse code for flat union base validation 2015-10-12 18:46:49 +02:00
flat-union-no-base.exit
flat-union-no-base.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
flat-union-no-base.out
flat-union-optional-discriminator.err qapi: Require valid names 2015-05-05 18:39:01 +02:00
flat-union-optional-discriminator.exit qapi: Require valid names 2015-05-05 18:39:01 +02:00
flat-union-optional-discriminator.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
flat-union-optional-discriminator.out qapi: Require valid names 2015-05-05 18:39:01 +02:00
flat-union-string-discriminator.err
flat-union-string-discriminator.exit
flat-union-string-discriminator.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
flat-union-string-discriminator.out
funny-char.err
funny-char.exit
funny-char.json
funny-char.out
ident-with-escape.err qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
ident-with-escape.exit qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
ident-with-escape.json qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
ident-with-escape.out qapi: New QMP command query-qmp-schema for QMP introspection 2015-09-21 09:56:49 +02:00
include-before-err.err qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-before-err.exit qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-before-err.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-before-err.out qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-cycle-b.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-cycle-c.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-cycle.err qapi: Fix file name in error messages for included files 2015-06-18 14:12:34 +02:00
include-cycle.exit qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-cycle.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-cycle.out qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-format-err.err qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-format-err.exit qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-format-err.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-format-err.out qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-nested-err.err qapi: Fix file name in error messages for included files 2015-06-18 14:12:34 +02:00
include-nested-err.exit qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-nested-err.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-nested-err.out qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-no-file.err qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-no-file.exit qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-no-file.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-no-file.out qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-non-file.err qapi: Improve 'include' error message 2015-10-12 18:44:54 +02:00
include-non-file.exit qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-non-file.json qapi: Improve 'include' error message 2015-10-12 18:44:54 +02:00
include-non-file.out qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-relpath-sub.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-relpath.err qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-relpath.exit qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-relpath.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-relpath.out qapi: New QMP command query-qmp-schema for QMP introspection 2015-09-21 09:56:49 +02:00
include-repetition-sub.json qapi: skip redundant includes 2014-05-16 10:35:59 -04:00
include-repetition.err qapi: skip redundant includes 2014-05-16 10:35:59 -04:00
include-repetition.exit qapi: skip redundant includes 2014-05-16 10:35:59 -04:00
include-repetition.json qapi: skip redundant includes 2014-05-16 10:35:59 -04:00
include-repetition.out qapi: New QMP command query-qmp-schema for QMP introspection 2015-09-21 09:56:49 +02:00
include-self-cycle.err qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-self-cycle.exit qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-self-cycle.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-self-cycle.out qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-simple-sub.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-simple.err qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-simple.exit qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-simple.json qapi: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
include-simple.out qapi: New QMP command query-qmp-schema for QMP introspection 2015-09-21 09:56:49 +02:00
indented-expr.err
indented-expr.exit
indented-expr.json qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
indented-expr.out qapi: New QMP command query-qmp-schema for QMP introspection 2015-09-21 09:56:49 +02:00
leading-comma-list.err tests/qapi-schema: Cover two more syntax errors 2015-09-04 15:47:16 +02:00
leading-comma-list.exit tests/qapi-schema: Cover two more syntax errors 2015-09-04 15:47:16 +02:00
leading-comma-list.json tests/qapi-schema: Cover two more syntax errors 2015-09-04 15:47:16 +02:00
leading-comma-list.out tests/qapi-schema: Cover two more syntax errors 2015-09-04 15:47:16 +02:00
leading-comma-object.err tests/qapi-schema: Cover two more syntax errors 2015-09-04 15:47:16 +02:00
leading-comma-object.exit tests/qapi-schema: Cover two more syntax errors 2015-09-04 15:47:16 +02:00
leading-comma-object.json tests/qapi-schema: Cover two more syntax errors 2015-09-04 15:47:16 +02:00
leading-comma-object.out tests/qapi-schema: Cover two more syntax errors 2015-09-04 15:47:16 +02:00
missing-colon.err
missing-colon.exit
missing-colon.json
missing-colon.out
missing-comma-list.err
missing-comma-list.exit
missing-comma-list.json
missing-comma-list.out
missing-comma-object.err
missing-comma-object.exit
missing-comma-object.json
missing-comma-object.out
missing-type.err qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
missing-type.exit qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
missing-type.json qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
missing-type.out qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
nested-struct-data.err qapi: Drop support for inline nested types 2015-05-05 18:39:02 +02:00
nested-struct-data.exit qapi: Drop support for inline nested types 2015-05-05 18:39:02 +02:00
nested-struct-data.json qapi: Command returning anonymous type doesn't work, outlaw 2015-09-04 15:47:15 +02:00
nested-struct-data.out qapi: Drop support for inline nested types 2015-05-05 18:39:02 +02:00
non-objects.err
non-objects.exit
non-objects.json
non-objects.out
qapi-schema-test.err
qapi-schema-test.exit
qapi-schema-test.json qapi: Lazy creation of array types 2015-10-15 08:39:08 +02:00
qapi-schema-test.out qapi: Lazy creation of array types 2015-10-15 08:39:08 +02:00
quoted-structural-chars.err
quoted-structural-chars.exit
quoted-structural-chars.json
quoted-structural-chars.out
redefined-builtin.err qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-builtin.exit qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-builtin.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
redefined-builtin.out qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-command.err qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-command.exit qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-command.json qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-command.out qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-event.err qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-event.exit qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-event.json qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-event.out qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-type.err qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-type.exit qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
redefined-type.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
redefined-type.out qapi: Better error messages for duplicated expressions 2015-05-05 18:39:01 +02:00
returns-alternate.err qapi: Whitelist commands that don't return dictionary 2015-05-05 18:39:01 +02:00
returns-alternate.exit qapi: Whitelist commands that don't return dictionary 2015-05-05 18:39:01 +02:00
returns-alternate.json qapi: Whitelist commands that don't return dictionary 2015-05-05 18:39:01 +02:00
returns-alternate.out qapi: Whitelist commands that don't return dictionary 2015-05-05 18:39:01 +02:00
returns-array-bad.err qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
returns-array-bad.exit qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
returns-array-bad.json qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
returns-array-bad.out qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
returns-dict.err qapi: Command returning anonymous type doesn't work, outlaw 2015-09-04 15:47:15 +02:00
returns-dict.exit qapi: Command returning anonymous type doesn't work, outlaw 2015-09-04 15:47:15 +02:00
returns-dict.json qapi: Command returning anonymous type doesn't work, outlaw 2015-09-04 15:47:15 +02:00
returns-dict.out qapi: Command returning anonymous type doesn't work, outlaw 2015-09-04 15:47:15 +02:00
returns-unknown.err qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
returns-unknown.exit qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
returns-unknown.json qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
returns-unknown.out qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
returns-whitelist.err qapi: Simplify error reporting for array types 2015-09-04 15:47:16 +02:00
returns-whitelist.exit qapi: Whitelist commands that don't return dictionary 2015-05-05 18:39:01 +02:00
returns-whitelist.json qapi: Whitelist commands that don't return dictionary 2015-05-05 18:39:01 +02:00
returns-whitelist.out qapi: Whitelist commands that don't return dictionary 2015-05-05 18:39:01 +02:00
struct-base-clash-base.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
struct-base-clash-base.exit qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
struct-base-clash-base.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
struct-base-clash-base.out qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
struct-base-clash-deep.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
struct-base-clash-deep.exit qapi: Check for member name conflicts with a base class 2015-05-05 18:39:02 +02:00
struct-base-clash-deep.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
struct-base-clash-deep.out qapi: Check for member name conflicts with a base class 2015-05-05 18:39:02 +02:00
struct-base-clash.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
struct-base-clash.exit qapi: Check for member name conflicts with a base class 2015-05-05 18:39:02 +02:00
struct-base-clash.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
struct-base-clash.out qapi: Check for member name conflicts with a base class 2015-05-05 18:39:02 +02:00
struct-data-invalid.err qapi: Fix errors for non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
struct-data-invalid.exit tests/qapi-schema: Cover non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
struct-data-invalid.json qapi: Fix errors for non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
struct-data-invalid.out tests/qapi-schema: Cover non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
struct-member-invalid.err qapi: Fix errors for non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
struct-member-invalid.exit tests/qapi-schema: Cover non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
struct-member-invalid.json qapi: Fix errors for non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
struct-member-invalid.out tests/qapi-schema: Cover non-string, non-dictionary members 2015-09-04 15:47:16 +02:00
test-qapi.py tests/qapi-schema: Convert test harness to QAPISchemaVisitor 2015-09-21 09:32:50 +02:00
trailing-comma-list.err
trailing-comma-list.exit
trailing-comma-list.json
trailing-comma-list.out
trailing-comma-object.err
trailing-comma-object.exit
trailing-comma-object.json
trailing-comma-object.out
type-bypass-bad-gen.err qapi: More rigorous checking for type safety bypass 2015-05-05 18:39:01 +02:00
type-bypass-bad-gen.exit qapi: More rigorous checking for type safety bypass 2015-05-05 18:39:01 +02:00
type-bypass-bad-gen.json qapi: More rigorous checking for type safety bypass 2015-05-05 18:39:01 +02:00
type-bypass-bad-gen.out qapi: More rigorous checking for type safety bypass 2015-05-05 18:39:01 +02:00
unclosed-list.err
unclosed-list.exit
unclosed-list.json
unclosed-list.out
unclosed-object.err
unclosed-object.exit
unclosed-object.json
unclosed-object.out
unclosed-string.err
unclosed-string.exit
unclosed-string.json
unclosed-string.out
unicode-str.err qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
unicode-str.exit qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
unicode-str.json qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
unicode-str.out qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
union-bad-branch.err qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
union-bad-branch.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
union-bad-branch.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
union-bad-branch.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
union-base-no-discriminator.err qapi: Drop one of two "simple union must not have base" checks 2015-09-04 15:47:16 +02:00
union-base-no-discriminator.exit qapi: Forbid base without discriminator in unions 2015-05-05 18:39:00 +02:00
union-base-no-discriminator.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
union-base-no-discriminator.out qapi: Forbid base without discriminator in unions 2015-05-05 18:39:00 +02:00
union-clash-branches.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-clash-branches.exit qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-clash-branches.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-clash-branches.out qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-clash-data.err qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-clash-data.exit qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-clash-data.json qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-clash-data.out qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-clash-type.err qapi: Avoid assertion failure on union 'type' collision 2015-10-12 18:44:54 +02:00
union-clash-type.exit qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-clash-type.json qapi: Avoid assertion failure on union 'type' collision 2015-10-12 18:44:54 +02:00
union-clash-type.out qapi: Test for various name collisions 2015-10-12 18:44:54 +02:00
union-empty.err qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
union-empty.exit qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
union-empty.json qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
union-empty.out qapi: Add tests for empty unions 2015-10-12 18:44:54 +02:00
union-invalid-base.err qapi: Reuse code for flat union base validation 2015-10-12 18:46:49 +02:00
union-invalid-base.exit
union-invalid-base.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
union-invalid-base.out
union-max.err qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
union-max.exit qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
union-max.json qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
union-max.out qapi: Tighten checking of unions 2015-05-05 18:39:00 +02:00
union-optional-branch.err qapi: Require valid names 2015-05-05 18:39:01 +02:00
union-optional-branch.exit qapi: Require valid names 2015-05-05 18:39:01 +02:00
union-optional-branch.json qapi: Require valid names 2015-05-05 18:39:01 +02:00
union-optional-branch.out qapi: Require valid names 2015-05-05 18:39:01 +02:00
union-unknown.err qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
union-unknown.exit qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
union-unknown.json qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
union-unknown.out qapi: More rigourous checking of types 2015-05-05 18:39:01 +02:00
unknown-escape.err qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
unknown-escape.exit qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
unknown-escape.json qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
unknown-escape.out qapi: Support (subset of) \u escapes in strings 2015-05-05 18:39:02 +02:00
unknown-expr-key.err qapi: Prefer 'struct' over 'type' in generator 2015-05-05 18:39:01 +02:00
unknown-expr-key.exit qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00
unknown-expr-key.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
unknown-expr-key.out qapi: Better error messages for bad expressions 2015-05-05 18:39:01 +02:00