xemu/tests/qapi-schema
Eric Blake a8d4a2e4d7 qapi: Forbid base without discriminator in unions
None of the existing QMP or QGA interfaces uses a union with a
base type but no discriminator; it is easier to avoid this in the
generator to save room for other future extensions more likely to
be useful.  An earlier commit added a union-base-no-discriminator
test to ensure that we eventually give a decent error message;
likewise, removing UserDefUnion outright is okay, because we moved
all the tests we wish to keep into the tests of the simple union
UserDefNativeListUnion in the previous commit.  Now is the time to
actually forbid simple union with base, and remove the last
vestiges from the testsuite.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2015-05-05 18:39:00 +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: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-array.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-array.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-array.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-base.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-base.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-base.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-base.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-clash.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-clash.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-clash.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-clash.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-conflict-dict.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-conflict-dict.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-conflict-dict.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-conflict-dict.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-conflict-string.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-conflict-string.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-conflict-string.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-conflict-string.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-good.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-good.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-good.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-good.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-nested.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-nested.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-nested.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-nested.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-unknown.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-unknown.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-unknown.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
alternate-unknown.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
comments.err
comments.exit
comments.json
comments.out
duplicate-key.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
duplicate-key.exit
duplicate-key.json
duplicate-key.out
empty.err
empty.exit
empty.json
empty.out
enum-bad-name.err qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-bad-name.exit qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-bad-name.json qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-bad-name.out qapi: Add some enum tests 2015-05-05 18:39:00 +02: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: Better error messages for bad enums 2015-05-05 18:39:00 +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-empty.err qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-empty.exit qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-empty.json qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-empty.out qapi: Add some enum tests 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 enums 2015-05-05 18:39:00 +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: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-union-clash.exit qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-union-clash.json qapi: Add some enum tests 2015-05-05 18:39:00 +02:00
enum-union-clash.out qapi: Add some enum tests 2015-05-05 18:39:00 +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
event-nest-struct.err qapi script: clean up in scripts 2014-06-27 09:27:56 -04: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-bad-base.err qapi: Add some union tests 2015-05-05 18:39:00 +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: Add some union tests 2015-05-05 18:39:00 +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: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-bad-discriminator.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-bad-discriminator.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-bad-discriminator.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-base-star.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-base-star.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-base-star.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-base-star.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-base-union.err qapi: Add some union tests 2015-05-05 18:39:00 +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: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-base-union.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-branch-clash.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-branch-clash.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-branch-clash.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-branch-clash.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-inline.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-inline.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-inline.json qapi: Add some union tests 2015-05-05 18:39:00 +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: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-int-branch.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-int-branch.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-int-branch.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-invalid-branch-key.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
flat-union-invalid-branch-key.exit
flat-union-invalid-branch-key.json
flat-union-invalid-branch-key.out
flat-union-invalid-discriminator.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
flat-union-invalid-discriminator.exit
flat-union-invalid-discriminator.json
flat-union-invalid-discriminator.out
flat-union-no-base.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-no-base.exit
flat-union-no-base.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-no-base.out
flat-union-optional-discriminator.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-optional-discriminator.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-optional-discriminator.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-optional-discriminator.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
flat-union-reverse-define.err
flat-union-reverse-define.exit
flat-union-reverse-define.json
flat-union-reverse-define.out
flat-union-string-discriminator.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
flat-union-string-discriminator.exit
flat-union-string-discriminator.json
flat-union-string-discriminator.out
funny-char.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
funny-char.exit
funny-char.json
funny-char.out
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: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04: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: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04: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: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04: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: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04: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: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04: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: skip redundant includes 2014-05-16 10:35:59 -04: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: Add a primitive to include other files from a QAPI schema file 2014-05-08 14:19:58 -04:00
indented-expr.err
indented-expr.exit
indented-expr.json
indented-expr.out
missing-colon.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
missing-colon.exit
missing-colon.json
missing-colon.out
missing-comma-list.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
missing-comma-list.exit
missing-comma-list.json
missing-comma-list.out
missing-comma-object.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
missing-comma-object.exit
missing-comma-object.json
missing-comma-object.out
non-objects.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
non-objects.exit
non-objects.json
non-objects.out
qapi-schema-test.err
qapi-schema-test.exit
qapi-schema-test.json qapi: Forbid base without discriminator in unions 2015-05-05 18:39:00 +02:00
qapi-schema-test.out qapi: Forbid base without discriminator in unions 2015-05-05 18:39:00 +02:00
quoted-structural-chars.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
quoted-structural-chars.exit
quoted-structural-chars.json
quoted-structural-chars.out
test-qapi.py qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
trailing-comma-list.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
trailing-comma-list.exit
trailing-comma-list.json
trailing-comma-list.out
trailing-comma-object.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
trailing-comma-object.exit
trailing-comma-object.json
trailing-comma-object.out
unclosed-list.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
unclosed-list.exit
unclosed-list.json
unclosed-list.out
unclosed-object.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
unclosed-object.exit
unclosed-object.json
unclosed-object.out
unclosed-string.err qapi: Use an explicit input file 2014-05-08 14:19:58 -04:00
unclosed-string.exit
unclosed-string.json
unclosed-string.out
union-bad-branch.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-bad-branch.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-bad-branch.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-bad-branch.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-base-no-discriminator.err qapi: Forbid base without discriminator in unions 2015-05-05 18:39:00 +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: Forbid base without discriminator in unions 2015-05-05 18:39:00 +02:00
union-base-no-discriminator.out qapi: Forbid base without discriminator in unions 2015-05-05 18:39:00 +02:00
union-invalid-base.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-invalid-base.exit
union-invalid-base.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-invalid-base.out
union-max.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-max.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-max.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-max.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-optional-branch.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-optional-branch.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-optional-branch.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-optional-branch.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-unknown.err qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-unknown.exit qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-unknown.json qapi: Add some union tests 2015-05-05 18:39:00 +02:00
union-unknown.out qapi: Add some union tests 2015-05-05 18:39:00 +02:00