mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
tests/qapi-schema: Rename flat-union-* test cases to union-*
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210917143134.412106-23-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com
This commit is contained in:
parent
4e99f4b12c
commit
8b3b3a16df
65 changed files with 48 additions and 48 deletions
|
@ -1,2 +0,0 @@
|
|||
flat-union-array-branch.json: In union 'TestUnion':
|
||||
flat-union-array-branch.json:8: 'data' member 'value1' cannot be an array
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-bad-base.json: In union 'TestUnion':
|
||||
flat-union-bad-base.json:8: member 'string' of type 'TestTypeA' collides with base member 'string'
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-bad-discriminator.json: In union 'TestUnion':
|
||||
flat-union-bad-discriminator.json:11: 'discriminator' requires a string name
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-base-any.json: In union 'TestUnion':
|
||||
flat-union-base-any.json:8: 'base' requires a struct type, built-in type 'any' isn't
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-base-union.json: In union 'TestUnion':
|
||||
flat-union-base-union.json:17: 'base' requires a struct type, union type 'UnionBase' isn't
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-clash-member.json: In union 'TestUnion':
|
||||
flat-union-clash-member.json:11: member 'name' of type 'Branch1' collides with member 'name' of type 'Base'
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-discriminator-bad-name.json: In union 'MyUnion':
|
||||
flat-union-discriminator-bad-name.json:6: discriminator '*switch' is not a member of 'base'
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-empty.json: In union 'Union':
|
||||
flat-union-empty.json:4: union has no branches
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-inline-invalid-dict.json: In union 'TestUnion':
|
||||
flat-union-inline-invalid-dict.json:7: 'data' member 'value1' misses key 'type'
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-int-branch.json: In union 'TestUnion':
|
||||
flat-union-int-branch.json:8: branch 'value1' cannot use built-in type 'int'
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-invalid-branch-key.json: In union 'TestUnion':
|
||||
flat-union-invalid-branch-key.json:13: branch 'value_wrong' is not a value of enum type 'TestEnum'
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-invalid-discriminator.json: In union 'TestUnion':
|
||||
flat-union-invalid-discriminator.json:10: discriminator 'enum_wrong' is not a member of 'base'
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-invalid-if-discriminator.json: In union 'TestUnion':
|
||||
flat-union-invalid-if-discriminator.json:10: discriminator member 'enum1' of 'base' must not be conditional
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-no-base.json: In union 'TestUnion':
|
||||
flat-union-no-base.json:8: union misses key 'base'
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-optional-discriminator.json: In union 'MyUnion':
|
||||
flat-union-optional-discriminator.json:6: discriminator member 'switch' of base type 'Base' must not be optional
|
|
@ -1,2 +0,0 @@
|
|||
flat-union-string-discriminator.json: In union 'TestUnion':
|
||||
flat-union-string-discriminator.json:13: discriminator member 'kind' of base type 'TestBase' must be of enum type
|
|
@ -107,22 +107,6 @@ schemas = [
|
|||
'features-name-bad-type.json',
|
||||
'features-no-list.json',
|
||||
'features-unknown-key.json',
|
||||
'flat-union-array-branch.json',
|
||||
'flat-union-bad-base.json',
|
||||
'flat-union-bad-discriminator.json',
|
||||
'flat-union-base-any.json',
|
||||
'flat-union-base-union.json',
|
||||
'flat-union-clash-member.json',
|
||||
'flat-union-discriminator-bad-name.json',
|
||||
'flat-union-empty.json',
|
||||
'flat-union-inline-invalid-dict.json',
|
||||
'flat-union-int-branch.json',
|
||||
'flat-union-invalid-branch-key.json',
|
||||
'flat-union-invalid-discriminator.json',
|
||||
'flat-union-invalid-if-discriminator.json',
|
||||
'flat-union-no-base.json',
|
||||
'flat-union-optional-discriminator.json',
|
||||
'flat-union-string-discriminator.json',
|
||||
'funny-char.json',
|
||||
'funny-word.json',
|
||||
'ident-with-escape.json',
|
||||
|
@ -190,12 +174,28 @@ schemas = [
|
|||
'unclosed-list.json',
|
||||
'unclosed-object.json',
|
||||
'unclosed-string.json',
|
||||
'union-array-branch.json',
|
||||
'union-bad-base.json',
|
||||
'union-bad-discriminator.json',
|
||||
'union-base-any.json',
|
||||
'union-base-empty.json',
|
||||
'union-base-no-discriminator.json',
|
||||
'union-base-union.json',
|
||||
'union-branch-if-invalid.json',
|
||||
'union-branch-invalid-dict.json',
|
||||
'union-clash-member.json',
|
||||
'union-discriminator-bad-name.json',
|
||||
'union-empty.json',
|
||||
'union-inline-invalid-dict.json',
|
||||
'union-int-branch.json',
|
||||
'union-invalid-base.json',
|
||||
'union-invalid-branch-key.json',
|
||||
'union-invalid-data.json',
|
||||
'union-invalid-discriminator.json',
|
||||
'union-invalid-if-discriminator.json',
|
||||
'union-no-base.json',
|
||||
'union-optional-discriminator.json',
|
||||
'union-string-discriminator.json',
|
||||
'union-unknown.json',
|
||||
'unknown-escape.json',
|
||||
'unknown-expr-key.json',
|
||||
|
|
2
tests/qapi-schema/union-array-branch.err
Normal file
2
tests/qapi-schema/union-array-branch.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-array-branch.json: In union 'TestUnion':
|
||||
union-array-branch.json:8: 'data' member 'value1' cannot be an array
|
2
tests/qapi-schema/union-bad-base.err
Normal file
2
tests/qapi-schema/union-bad-base.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-bad-base.json: In union 'TestUnion':
|
||||
union-bad-base.json:8: member 'string' of type 'TestTypeA' collides with base member 'string'
|
2
tests/qapi-schema/union-bad-discriminator.err
Normal file
2
tests/qapi-schema/union-bad-discriminator.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-bad-discriminator.json: In union 'TestUnion':
|
||||
union-bad-discriminator.json:11: 'discriminator' requires a string name
|
2
tests/qapi-schema/union-base-any.err
Normal file
2
tests/qapi-schema/union-base-any.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-base-any.json: In union 'TestUnion':
|
||||
union-base-any.json:8: 'base' requires a struct type, built-in type 'any' isn't
|
2
tests/qapi-schema/union-base-union.err
Normal file
2
tests/qapi-schema/union-base-union.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-base-union.json: In union 'TestUnion':
|
||||
union-base-union.json:17: 'base' requires a struct type, union type 'UnionBase' isn't
|
2
tests/qapi-schema/union-clash-member.err
Normal file
2
tests/qapi-schema/union-clash-member.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-clash-member.json: In union 'TestUnion':
|
||||
union-clash-member.json:11: member 'name' of type 'Branch1' collides with member 'name' of type 'Base'
|
2
tests/qapi-schema/union-discriminator-bad-name.err
Normal file
2
tests/qapi-schema/union-discriminator-bad-name.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-discriminator-bad-name.json: In union 'MyUnion':
|
||||
union-discriminator-bad-name.json:6: discriminator '*switch' is not a member of 'base'
|
2
tests/qapi-schema/union-empty.err
Normal file
2
tests/qapi-schema/union-empty.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-empty.json: In union 'Union':
|
||||
union-empty.json:4: union has no branches
|
2
tests/qapi-schema/union-inline-invalid-dict.err
Normal file
2
tests/qapi-schema/union-inline-invalid-dict.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-inline-invalid-dict.json: In union 'TestUnion':
|
||||
union-inline-invalid-dict.json:7: 'data' member 'value1' misses key 'type'
|
2
tests/qapi-schema/union-int-branch.err
Normal file
2
tests/qapi-schema/union-int-branch.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-int-branch.json: In union 'TestUnion':
|
||||
union-int-branch.json:8: branch 'value1' cannot use built-in type 'int'
|
2
tests/qapi-schema/union-invalid-branch-key.err
Normal file
2
tests/qapi-schema/union-invalid-branch-key.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-invalid-branch-key.json: In union 'TestUnion':
|
||||
union-invalid-branch-key.json:13: branch 'value_wrong' is not a value of enum type 'TestEnum'
|
2
tests/qapi-schema/union-invalid-discriminator.err
Normal file
2
tests/qapi-schema/union-invalid-discriminator.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-invalid-discriminator.json: In union 'TestUnion':
|
||||
union-invalid-discriminator.json:10: discriminator 'enum_wrong' is not a member of 'base'
|
2
tests/qapi-schema/union-invalid-if-discriminator.err
Normal file
2
tests/qapi-schema/union-invalid-if-discriminator.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-invalid-if-discriminator.json: In union 'TestUnion':
|
||||
union-invalid-if-discriminator.json:10: discriminator member 'enum1' of 'base' must not be conditional
|
2
tests/qapi-schema/union-no-base.err
Normal file
2
tests/qapi-schema/union-no-base.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-no-base.json: In union 'TestUnion':
|
||||
union-no-base.json:8: union misses key 'base'
|
2
tests/qapi-schema/union-optional-discriminator.err
Normal file
2
tests/qapi-schema/union-optional-discriminator.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-optional-discriminator.json: In union 'MyUnion':
|
||||
union-optional-discriminator.json:6: discriminator member 'switch' of base type 'Base' must not be optional
|
2
tests/qapi-schema/union-string-discriminator.err
Normal file
2
tests/qapi-schema/union-string-discriminator.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
union-string-discriminator.json: In union 'TestUnion':
|
||||
union-string-discriminator.json:13: discriminator member 'kind' of base type 'TestBase' must be of enum type
|
Loading…
Reference in a new issue