Browse Source

QAPI patches for 2019-09-28

-----BEGIN PGP SIGNATURE-----
 
 iQJGBAABCAAwFiEENUvIs9frKmtoZ05fOHC0AOuRhlMFAl2PebUSHGFybWJydUBy
 ZWRoYXQuY29tAAoJEDhwtADrkYZT/VEP/Rru2BgOV/6OSIunW9Ii6qUsVNYtYM0L
 4XrOaVJBhNnakAdPPphXmhk6iRCJESZ+4z+s4Iw+yD4aSRYEWowMFi1blaIk+3lH
 BNBllepKrvX9ZZyMHCooKrrO2PEPOPRin5izCDn5O93onQjwzXfWtuxZRn6WaLzB
 MOtixr340ysa+KNktpAWWPH/NJFq+LLvyQVUdN5xR1i5YBEVE9s0uZg9uq+zpFEg
 xSw45BDQSCjNNywd5mqJ0x+y7PCeGAINS9el43ernn654qVXpNgYepE3PpkCjCH7
 snFKFJA8+h1VjXPd8/amJimD11+CFIUlhvtlVwccCWme8PRE6Hveerf7FvexnjpN
 yGfDOV2ezgrnFspAjI3hrPfsF1Vfxe+eDOUg+y9xGtRgD5LsWmkUBEukKZocVYQG
 H52BT6qt3IlUbWVPuHlWEUOsWKk7e3IeAZgnoaafRxwmLHaVWX0SPZCGm1Bfvxe2
 LxXnS/pPWubyTrmQA9xCDhILrvkquCyOVBufFnS6D3h45psQKXr2Rh+vVjnYslRR
 /B1tDAFZvu9Q6+Y9//AnnLhTZlEPf+qg7Ajv+rH8PTl7SbB/tNVI+vrJJCp5AJab
 OifkqahV4H12STf4N2R3g4j/HqPj2PB1/GdLpmOc94ZY5h8GMxviEpwZkKTnw5xD
 zhwDdMVqL6c1
 =CNvl
 -----END PGP SIGNATURE-----

Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2019-09-28' into staging

QAPI patches for 2019-09-28

# gpg: Signature made Sat 28 Sep 2019 16:18:13 BST
# gpg:                using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653
# gpg:                issuer "armbru@redhat.com"
# gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [full]
# gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>" [full]
# Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653

* remotes/armbru/tags/pull-qapi-2019-09-28: (27 commits)
  qapi: Improve source file read error handling
  qapi: Improve reporting of redefinition
  qapi: Improve reporting of missing documentation comment
  qapi: Eliminate check_keys(), rename check_known_keys()
  qapi: Improve reporting of invalid 'if' further
  qapi: Avoid redundant definition references in error messages
  qapi: Improve reporting of missing / unknown definition keys
  qapi: Improve reporting of invalid flags
  qapi: Improve reporting of invalid 'if' errors
  qapi: Move context-free checking to the proper place
  qapi: Move context-sensitive checking to the proper place
  qapi: Inline check_name() into check_union()
  qapi: Plumb info to the QAPISchemaMember
  qapi: Make check_type()'s array case a bit more obvious
  qapi: Move check for reserved names out of add_name()
  qapi: Report invalid '*' prefix like any other invalid name
  qapi: Use check_name_str() where it suffices
  qapi: Improve reporting of invalid name errors
  qapi: Reorder check_FOO() parameters for consistency
  qapi: Improve reporting of member name clashes
  ...

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
pull/82/head
Peter Maydell 7 years ago
parent
commit
2094695689
  1. 2
      qapi/qapi-schema.json
  2. 5
      qapi/qmp-dispatch.c
  3. 1052
      scripts/qapi/common.py
  4. 2
      scripts/qapi/events.py
  5. 3
      tests/qapi-schema/allow-preconfig-test.err
  6. 3
      tests/qapi-schema/alternate-any.err
  7. 3
      tests/qapi-schema/alternate-array.err
  8. 3
      tests/qapi-schema/alternate-base.err
  9. 3
      tests/qapi-schema/alternate-branch-if-invalid.err
  10. 3
      tests/qapi-schema/alternate-clash.err
  11. 3
      tests/qapi-schema/alternate-conflict-bool-string.err
  12. 3
      tests/qapi-schema/alternate-conflict-dict.err
  13. 3
      tests/qapi-schema/alternate-conflict-enum-bool.err
  14. 3
      tests/qapi-schema/alternate-conflict-enum-int.err
  15. 3
      tests/qapi-schema/alternate-conflict-num-string.err
  16. 3
      tests/qapi-schema/alternate-conflict-string.err
  17. 3
      tests/qapi-schema/alternate-empty.err
  18. 3
      tests/qapi-schema/alternate-invalid-dict.err
  19. 3
      tests/qapi-schema/alternate-nested.err
  20. 3
      tests/qapi-schema/alternate-unknown.err
  21. 3
      tests/qapi-schema/args-alternate.err
  22. 3
      tests/qapi-schema/args-any.err
  23. 3
      tests/qapi-schema/args-array-empty.err
  24. 3
      tests/qapi-schema/args-array-unknown.err
  25. 3
      tests/qapi-schema/args-bad-boxed.err
  26. 3
      tests/qapi-schema/args-boxed-anon.err
  27. 3
      tests/qapi-schema/args-boxed-string.err
  28. 3
      tests/qapi-schema/args-int.err
  29. 3
      tests/qapi-schema/args-invalid.err
  30. 3
      tests/qapi-schema/args-member-array-bad.err
  31. 3
      tests/qapi-schema/args-member-case.err
  32. 2
      tests/qapi-schema/args-member-case.json
  33. 3
      tests/qapi-schema/args-member-unknown.err
  34. 3
      tests/qapi-schema/args-name-clash.err
  35. 3
      tests/qapi-schema/args-union.err
  36. 3
      tests/qapi-schema/args-unknown.err
  37. 3
      tests/qapi-schema/bad-base.err
  38. 3
      tests/qapi-schema/bad-data.err
  39. 3
      tests/qapi-schema/bad-ident.err
  40. 3
      tests/qapi-schema/bad-if-empty-list.err
  41. 3
      tests/qapi-schema/bad-if-empty.err
  42. 3
      tests/qapi-schema/bad-if-list.err
  43. 3
      tests/qapi-schema/bad-if.err
  44. 2
      tests/qapi-schema/bad-type-bool.err
  45. 2
      tests/qapi-schema/bad-type-dict.err
  46. 2
      tests/qapi-schema/bad-type-int.err
  47. 3
      tests/qapi-schema/base-cycle-direct.err
  48. 3
      tests/qapi-schema/base-cycle-indirect.err
  49. 3
      tests/qapi-schema/command-int.err
  50. 2
      tests/qapi-schema/doc-bad-alternate-member.err
  51. 2
      tests/qapi-schema/doc-bad-command-arg.err
  52. 3
      tests/qapi-schema/doc-bad-symbol.err
  53. 2
      tests/qapi-schema/doc-bad-union-member.err
  54. 2
      tests/qapi-schema/doc-before-include.err
  55. 2
      tests/qapi-schema/doc-before-pragma.err
  56. 2
      tests/qapi-schema/doc-duplicated-return.err
  57. 2
      tests/qapi-schema/doc-duplicated-since.err
  58. 2
      tests/qapi-schema/doc-empty-arg.err
  59. 2
      tests/qapi-schema/doc-empty-section.err
  60. 2
      tests/qapi-schema/doc-empty-symbol.err
  61. 2
      tests/qapi-schema/doc-invalid-end.err
  62. 2
      tests/qapi-schema/doc-invalid-end2.err
  63. 2
      tests/qapi-schema/doc-invalid-start.err
  64. 2
      tests/qapi-schema/doc-missing-colon.err
  65. 2
      tests/qapi-schema/doc-missing-expr.err
  66. 2
      tests/qapi-schema/doc-missing-space.err
  67. 3
      tests/qapi-schema/doc-missing.err
  68. 2
      tests/qapi-schema/doc-no-symbol.err
  69. 3
      tests/qapi-schema/double-type.err
  70. 2
      tests/qapi-schema/duplicate-key.err
  71. 3
      tests/qapi-schema/enum-bad-member.err
  72. 3
      tests/qapi-schema/enum-bad-name.err
  73. 3
      tests/qapi-schema/enum-bad-prefix.err
  74. 3
      tests/qapi-schema/enum-clash-member.err
  75. 3
      tests/qapi-schema/enum-dict-member-unknown.err
  76. 3
      tests/qapi-schema/enum-if-invalid.err
  77. 2
      tests/qapi-schema/enum-int-member.err
  78. 3
      tests/qapi-schema/enum-member-case.err
  79. 3
      tests/qapi-schema/enum-missing-data.err
  80. 3
      tests/qapi-schema/enum-wrong-data.err
  81. 2
      tests/qapi-schema/escape-outside-string.err
  82. 3
      tests/qapi-schema/event-boxed-empty.err
  83. 3
      tests/qapi-schema/event-member-invalid-dict.err
  84. 3
      tests/qapi-schema/event-nest-struct.err
  85. 3
      tests/qapi-schema/features-bad-type.err
  86. 3
      tests/qapi-schema/features-duplicate-name.err
  87. 3
      tests/qapi-schema/features-if-invalid.err
  88. 3
      tests/qapi-schema/features-missing-name.err
  89. 3
      tests/qapi-schema/features-name-bad-type.err
  90. 3
      tests/qapi-schema/features-no-list.err
  91. 3
      tests/qapi-schema/features-unknown-key.err
  92. 3
      tests/qapi-schema/flat-union-array-branch.err
  93. 3
      tests/qapi-schema/flat-union-bad-base.err
  94. 3
      tests/qapi-schema/flat-union-bad-discriminator.err
  95. 3
      tests/qapi-schema/flat-union-base-any.err
  96. 3
      tests/qapi-schema/flat-union-base-union.err
  97. 3
      tests/qapi-schema/flat-union-clash-member.err
  98. 3
      tests/qapi-schema/flat-union-discriminator-bad-name.err
  99. 1
      tests/qapi-schema/flat-union-discriminator-bad-name.json
  100. 3
      tests/qapi-schema/flat-union-empty.err

2
qapi/qapi-schema.json

@ -71,7 +71,7 @@
'QapiErrorClass', # all members, visible through errors
'UuidInfo', # UUID, visible through query-uuid
'X86CPURegister32', # all members, visible indirectly through qom-get
'q_obj_CpuInfo-base' # CPU, visible through query-cpu
'CpuInfo' # CPU, visible through query-cpu
] } }
# Documentation generated with qapi-gen.py is in source order, with

5
qapi/qmp-dispatch.c

@ -104,8 +104,9 @@ static QObject *do_qmp_dispatch(QmpCommandList *cmds, QObject *request,
return NULL;
}
if (!cmd->enabled) {
error_setg(errp, "The command %s has been disabled for this instance",
command);
error_set(errp, ERROR_CLASS_COMMAND_NOT_FOUND,
"The command %s has been disabled for this instance",
command);
return NULL;
}
if (oob && !(cmd->options & QCO_ALLOW_OOB)) {

1052
scripts/qapi/common.py

File diff suppressed because it is too large

2
scripts/qapi/events.py

@ -194,7 +194,7 @@ void %(event_emit)s(%(event_enum)s event, QDict *qdict);
self._event_emit_name))
# Note: we generate the enum member regardless of @ifcond, to
# keep the enumeration usable in target-independent code.
self._event_enum_members.append(QAPISchemaEnumMember(name))
self._event_enum_members.append(QAPISchemaEnumMember(name, None))
def gen_events(schema, output_dir, prefix):

3
tests/qapi-schema/allow-preconfig-test.err

@ -1 +1,2 @@
tests/qapi-schema/allow-preconfig-test.json:2: 'allow-preconfig' of command 'allow-preconfig-test' should only use true value
tests/qapi-schema/allow-preconfig-test.json: In command 'allow-preconfig-test':
tests/qapi-schema/allow-preconfig-test.json:2: flag 'allow-preconfig' may only use true value

3
tests/qapi-schema/alternate-any.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-any.json:2: Alternate 'Alt' member 'one' cannot use type 'any'
tests/qapi-schema/alternate-any.json: In alternate 'Alt':
tests/qapi-schema/alternate-any.json:2: branch 'one' cannot use built-in type 'any'

3
tests/qapi-schema/alternate-array.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-array.json:5: Member 'two' of alternate 'Alt' cannot be an array
tests/qapi-schema/alternate-array.json: In alternate 'Alt':
tests/qapi-schema/alternate-array.json:5: 'data' member 'two' cannot be an array

3
tests/qapi-schema/alternate-base.err

@ -1,2 +1,3 @@
tests/qapi-schema/alternate-base.json:4: Unknown key 'base' in alternate 'Alt'
tests/qapi-schema/alternate-base.json: In alternate 'Alt':
tests/qapi-schema/alternate-base.json:4: alternate has unknown key 'base'
Valid keys are 'alternate', 'data', 'if'.

3
tests/qapi-schema/alternate-branch-if-invalid.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-branch-if-invalid.json:2: 'if' condition ' ' makes no sense
tests/qapi-schema/alternate-branch-if-invalid.json: In alternate 'Alt':
tests/qapi-schema/alternate-branch-if-invalid.json:2: 'if' condition ' ' of 'data' member 'branch' makes no sense

3
tests/qapi-schema/alternate-clash.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-clash.json:7: 'a_b' (branch of Alt1) collides with 'a-b' (branch of Alt1)
tests/qapi-schema/alternate-clash.json: In alternate 'Alt1':
tests/qapi-schema/alternate-clash.json:7: branch 'a_b' collides with branch 'a-b'

3
tests/qapi-schema/alternate-conflict-bool-string.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-conflict-bool-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-bool-string.json: In alternate 'Alt':
tests/qapi-schema/alternate-conflict-bool-string.json:2: branch 'two' can't be distinguished from 'one'

3
tests/qapi-schema/alternate-conflict-dict.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-conflict-dict.json:6: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-dict.json: In alternate 'Alt':
tests/qapi-schema/alternate-conflict-dict.json:6: branch 'two' can't be distinguished from 'one'

3
tests/qapi-schema/alternate-conflict-enum-bool.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-conflict-enum-bool.json:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-enum-bool.json: In alternate 'Alt':
tests/qapi-schema/alternate-conflict-enum-bool.json:4: branch 'two' can't be distinguished from 'one'

3
tests/qapi-schema/alternate-conflict-enum-int.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-conflict-enum-int.json:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-enum-int.json: In alternate 'Alt':
tests/qapi-schema/alternate-conflict-enum-int.json:4: branch 'two' can't be distinguished from 'one'

3
tests/qapi-schema/alternate-conflict-num-string.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-conflict-num-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-num-string.json: In alternate 'Alt':
tests/qapi-schema/alternate-conflict-num-string.json:2: branch 'two' can't be distinguished from 'one'

3
tests/qapi-schema/alternate-conflict-string.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-conflict-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-string.json: In alternate 'Alt':
tests/qapi-schema/alternate-conflict-string.json:2: branch 'two' can't be distinguished from 'one'

3
tests/qapi-schema/alternate-empty.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-empty.json:2: Alternate 'Alt' cannot have empty 'data'
tests/qapi-schema/alternate-empty.json: In alternate 'Alt':
tests/qapi-schema/alternate-empty.json:2: 'data' must not be empty

3
tests/qapi-schema/alternate-invalid-dict.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-invalid-dict.json:2: Key 'type' is missing from member 'two' of alternate 'Alt'
tests/qapi-schema/alternate-invalid-dict.json: In alternate 'Alt':
tests/qapi-schema/alternate-invalid-dict.json:2: 'data' member 'two' misses key 'type'

3
tests/qapi-schema/alternate-nested.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-nested.json:4: Member 'nested' of alternate 'Alt2' cannot use alternate type 'Alt1'
tests/qapi-schema/alternate-nested.json: In alternate 'Alt2':
tests/qapi-schema/alternate-nested.json:4: branch 'nested' cannot use alternate type 'Alt1'

3
tests/qapi-schema/alternate-unknown.err

@ -1 +1,2 @@
tests/qapi-schema/alternate-unknown.json:2: Member 'unknown' of alternate 'Alt' uses unknown type 'MissingType'
tests/qapi-schema/alternate-unknown.json: In alternate 'Alt':
tests/qapi-schema/alternate-unknown.json:2: branch 'unknown' uses unknown type 'MissingType'

3
tests/qapi-schema/args-alternate.err

@ -1 +1,2 @@
tests/qapi-schema/args-alternate.json:3: 'data' for command 'oops' cannot use alternate type 'Alt'
tests/qapi-schema/args-alternate.json: In command 'oops':
tests/qapi-schema/args-alternate.json:3: command's 'data' cannot take alternate type 'Alt'

3
tests/qapi-schema/args-any.err

@ -1 +1,2 @@
tests/qapi-schema/args-any.json:2: 'data' for command 'oops' cannot use built-in type 'any'
tests/qapi-schema/args-any.json: In command 'oops':
tests/qapi-schema/args-any.json:2: command's 'data' cannot take built-in type 'any'

3
tests/qapi-schema/args-array-empty.err

@ -1 +1,2 @@
tests/qapi-schema/args-array-empty.json:2: Member 'empty' of 'data' for command 'oops': array type must contain single type name
tests/qapi-schema/args-array-empty.json: In command 'oops':
tests/qapi-schema/args-array-empty.json:2: 'data' member 'empty': array type must contain single type name

3
tests/qapi-schema/args-array-unknown.err

@ -1 +1,2 @@
tests/qapi-schema/args-array-unknown.json:2: Member 'array' of 'data' for command 'oops' uses unknown type 'NoSuchType'
tests/qapi-schema/args-array-unknown.json: In command 'oops':
tests/qapi-schema/args-array-unknown.json:2: command uses unknown type 'NoSuchType'

3
tests/qapi-schema/args-bad-boxed.err

@ -1 +1,2 @@
tests/qapi-schema/args-bad-boxed.json:2: 'boxed' of command 'foo' should only use true value
tests/qapi-schema/args-bad-boxed.json: In command 'foo':
tests/qapi-schema/args-bad-boxed.json:2: flag 'boxed' may only use true value

3
tests/qapi-schema/args-boxed-anon.err

@ -1 +1,2 @@
tests/qapi-schema/args-boxed-anon.json:2: 'data' for command 'foo' should be a type name
tests/qapi-schema/args-boxed-anon.json: In command 'foo':
tests/qapi-schema/args-boxed-anon.json:2: 'data' should be a type name

3
tests/qapi-schema/args-boxed-string.err

@ -1 +1,2 @@
tests/qapi-schema/args-boxed-string.json:2: 'data' for command 'foo' cannot use built-in type 'str'
tests/qapi-schema/args-boxed-string.json: In command 'foo':
tests/qapi-schema/args-boxed-string.json:2: command's 'data' cannot take built-in type 'str'

3
tests/qapi-schema/args-int.err

@ -1 +1,2 @@
tests/qapi-schema/args-int.json:2: 'data' for command 'oops' cannot use built-in type 'int'
tests/qapi-schema/args-int.json: In command 'oops':
tests/qapi-schema/args-int.json:2: command's 'data' cannot take built-in type 'int'

3
tests/qapi-schema/args-invalid.err

@ -1 +1,2 @@
tests/qapi-schema/args-invalid.json:1: 'data' for command 'foo' should be an object or type name
tests/qapi-schema/args-invalid.json: In command 'foo':
tests/qapi-schema/args-invalid.json:1: 'data' should be an object or type name

3
tests/qapi-schema/args-member-array-bad.err

@ -1 +1,2 @@
tests/qapi-schema/args-member-array-bad.json:2: Member 'member' of 'data' for command 'oops': array type must contain single type name
tests/qapi-schema/args-member-array-bad.json: In command 'oops':
tests/qapi-schema/args-member-array-bad.json:2: 'data' member 'member': array type must contain single type name

3
tests/qapi-schema/args-member-case.err

@ -1 +1,2 @@
tests/qapi-schema/args-member-case.json:2: 'Arg' (parameter of no-way-this-will-get-whitelisted) should not use uppercase
tests/qapi-schema/args-member-case.json: In command 'no-way-this-will-get-whitelisted':
tests/qapi-schema/args-member-case.json:2: 'data' member 'Arg' uses uppercase in name

2
tests/qapi-schema/args-member-case.json

@ -1,2 +1,2 @@
# Member names should be 'lower-case' unless the struct/command is whitelisted
# Member names should be 'lower-case' unless the struct is whitelisted
{ 'command': 'no-way-this-will-get-whitelisted', 'data': { 'Arg': 'int' } }

3
tests/qapi-schema/args-member-unknown.err

@ -1 +1,2 @@
tests/qapi-schema/args-member-unknown.json:2: Member 'member' of 'data' for command 'oops' uses unknown type 'NoSuchType'
tests/qapi-schema/args-member-unknown.json: In command 'oops':
tests/qapi-schema/args-member-unknown.json:2: parameter 'member' uses unknown type 'NoSuchType'

3
tests/qapi-schema/args-name-clash.err

@ -1 +1,2 @@
tests/qapi-schema/args-name-clash.json:4: 'a_b' (parameter of oops) collides with 'a-b' (parameter of oops)
tests/qapi-schema/args-name-clash.json: In command 'oops':
tests/qapi-schema/args-name-clash.json:4: parameter 'a_b' collides with parameter 'a-b'

3
tests/qapi-schema/args-union.err

@ -1 +1,2 @@
tests/qapi-schema/args-union.json:3: 'data' for command 'oops' cannot use union type 'Uni'
tests/qapi-schema/args-union.json: In command 'oops':
tests/qapi-schema/args-union.json:3: command's 'data' can take union type 'Uni' only with 'boxed': true

3
tests/qapi-schema/args-unknown.err

@ -1 +1,2 @@
tests/qapi-schema/args-unknown.json:2: 'data' for command 'oops' uses unknown type 'NoSuchType'
tests/qapi-schema/args-unknown.json: In command 'oops':
tests/qapi-schema/args-unknown.json:2: command's 'data' uses unknown type 'NoSuchType'

3
tests/qapi-schema/bad-base.err

@ -1 +1,2 @@
tests/qapi-schema/bad-base.json:3: 'base' for struct 'MyType' cannot use union type 'Union'
tests/qapi-schema/bad-base.json: In struct 'MyType':
tests/qapi-schema/bad-base.json:3: 'base' requires a struct type, union type 'Union' isn't

3
tests/qapi-schema/bad-data.err

@ -1 +1,2 @@
tests/qapi-schema/bad-data.json:2: 'data' for command 'oops' cannot be an array
tests/qapi-schema/bad-data.json: In command 'oops':
tests/qapi-schema/bad-data.json:2: 'data' cannot be an array

3
tests/qapi-schema/bad-ident.err

@ -1 +1,2 @@
tests/qapi-schema/bad-ident.json:2: 'struct' does not allow optional name '*oops'
tests/qapi-schema/bad-ident.json: In struct '*oops':
tests/qapi-schema/bad-ident.json:2: struct has an invalid name

3
tests/qapi-schema/bad-if-empty-list.err

@ -1 +1,2 @@
tests/qapi-schema/bad-if-empty-list.json:2: 'if' condition [] is useless
tests/qapi-schema/bad-if-empty-list.json: In struct 'TestIfStruct':
tests/qapi-schema/bad-if-empty-list.json:2: 'if' condition [] of struct is useless

3
tests/qapi-schema/bad-if-empty.err

@ -1 +1,2 @@
tests/qapi-schema/bad-if-empty.json:2: 'if' condition '' makes no sense
tests/qapi-schema/bad-if-empty.json: In struct 'TestIfStruct':
tests/qapi-schema/bad-if-empty.json:2: 'if' condition '' of struct makes no sense

3
tests/qapi-schema/bad-if-list.err

@ -1 +1,2 @@
tests/qapi-schema/bad-if-list.json:2: 'if' condition ' ' makes no sense
tests/qapi-schema/bad-if-list.json: In struct 'TestIfStruct':
tests/qapi-schema/bad-if-list.json:2: 'if' condition ' ' of struct makes no sense

3
tests/qapi-schema/bad-if.err

@ -1 +1,2 @@
tests/qapi-schema/bad-if.json:2: 'if' condition must be a string or a list of strings
tests/qapi-schema/bad-if.json: In struct 'TestIfStruct':
tests/qapi-schema/bad-if.json:2: 'if' condition of struct must be a string or a list of strings

2
tests/qapi-schema/bad-type-bool.err

@ -1 +1 @@
tests/qapi-schema/bad-type-bool.json:2: 'struct' key must have a string value
tests/qapi-schema/bad-type-bool.json:2: 'struct' requires a string name

2
tests/qapi-schema/bad-type-dict.err

@ -1 +1 @@
tests/qapi-schema/bad-type-dict.json:2: 'command' key must have a string value
tests/qapi-schema/bad-type-dict.json:2: 'command' requires a string name

2
tests/qapi-schema/bad-type-int.err

@ -1 +1 @@
tests/qapi-schema/bad-type-int.json:3:13: Stray '123'
tests/qapi-schema/bad-type-int.json:3:13: stray '123'

3
tests/qapi-schema/base-cycle-direct.err

@ -1 +1,2 @@
tests/qapi-schema/base-cycle-direct.json:2: Object Loopy contains itself
tests/qapi-schema/base-cycle-direct.json: In struct 'Loopy':
tests/qapi-schema/base-cycle-direct.json:2: object Loopy contains itself

3
tests/qapi-schema/base-cycle-indirect.err

@ -1 +1,2 @@
tests/qapi-schema/base-cycle-indirect.json:2: Object Base1 contains itself
tests/qapi-schema/base-cycle-indirect.json: In struct 'Base1':
tests/qapi-schema/base-cycle-indirect.json:2: object Base1 contains itself

3
tests/qapi-schema/command-int.err

@ -1 +1,2 @@
tests/qapi-schema/command-int.json:2: built-in 'int' is already defined
tests/qapi-schema/command-int.json: In command 'int':
tests/qapi-schema/command-int.json:2: built-in type 'int' is already defined

2
tests/qapi-schema/doc-bad-alternate-member.err

@ -1 +1 @@
tests/qapi-schema/doc-bad-alternate-member.json:3: The following documented members are not in the declaration: aa, bb
tests/qapi-schema/doc-bad-alternate-member.json:3: the following documented members are not in the declaration: aa, bb

2
tests/qapi-schema/doc-bad-command-arg.err

@ -1 +1 @@
tests/qapi-schema/doc-bad-command-arg.json:3: The following documented members are not in the declaration: b
tests/qapi-schema/doc-bad-command-arg.json:3: the following documented members are not in the declaration: b

3
tests/qapi-schema/doc-bad-symbol.err

@ -1 +1,2 @@
tests/qapi-schema/doc-bad-symbol.json:6: Definition of 'foo' follows documentation for 'food'
tests/qapi-schema/doc-bad-symbol.json: In command 'foo':
tests/qapi-schema/doc-bad-symbol.json:6: documentation comment is for 'food'

2
tests/qapi-schema/doc-bad-union-member.err

@ -1 +1 @@
tests/qapi-schema/doc-bad-union-member.json:3: The following documented members are not in the declaration: a, b
tests/qapi-schema/doc-bad-union-member.json:3: the following documented members are not in the declaration: a, b

2
tests/qapi-schema/doc-before-include.err

@ -1 +1 @@
tests/qapi-schema/doc-before-include.json:3: Documentation for 'foo' is not followed by the definition
tests/qapi-schema/doc-before-include.json:3: documentation for 'foo' is not followed by the definition

2
tests/qapi-schema/doc-before-pragma.err

@ -1 +1 @@
tests/qapi-schema/doc-before-pragma.json:3: Documentation for 'foo' is not followed by the definition
tests/qapi-schema/doc-before-pragma.json:3: documentation for 'foo' is not followed by the definition

2
tests/qapi-schema/doc-duplicated-return.err

@ -1 +1 @@
tests/qapi-schema/doc-duplicated-return.json:7:1: Duplicated 'Returns' section
tests/qapi-schema/doc-duplicated-return.json:7:1: duplicated 'Returns' section

2
tests/qapi-schema/doc-duplicated-since.err

@ -1 +1 @@
tests/qapi-schema/doc-duplicated-since.json:7:1: Duplicated 'Since' section
tests/qapi-schema/doc-duplicated-since.json:7:1: duplicated 'Since' section

2
tests/qapi-schema/doc-empty-arg.err

@ -1 +1 @@
tests/qapi-schema/doc-empty-arg.json:5:1: Invalid parameter name
tests/qapi-schema/doc-empty-arg.json:5:1: invalid parameter name

2
tests/qapi-schema/doc-empty-section.err

@ -1 +1 @@
tests/qapi-schema/doc-empty-section.json:7:1: Empty doc section 'Note'
tests/qapi-schema/doc-empty-section.json:7:1: empty doc section 'Note'

2
tests/qapi-schema/doc-empty-symbol.err

@ -1 +1 @@
tests/qapi-schema/doc-empty-symbol.json:4:1: Invalid name
tests/qapi-schema/doc-empty-symbol.json:4:1: invalid name

2
tests/qapi-schema/doc-invalid-end.err

@ -1 +1 @@
tests/qapi-schema/doc-invalid-end.json:5:2: Documentation comment must end with '##'
tests/qapi-schema/doc-invalid-end.json:5:2: documentation comment must end with '##'

2
tests/qapi-schema/doc-invalid-end2.err

@ -1 +1 @@
tests/qapi-schema/doc-invalid-end2.json:5:1: Junk after '##' at end of documentation comment
tests/qapi-schema/doc-invalid-end2.json:5:1: junk after '##' at end of documentation comment

2
tests/qapi-schema/doc-invalid-start.err

@ -1 +1 @@
tests/qapi-schema/doc-invalid-start.json:3:1: Junk after '##' at start of documentation comment
tests/qapi-schema/doc-invalid-start.json:3:1: junk after '##' at start of documentation comment

2
tests/qapi-schema/doc-missing-colon.err

@ -1 +1 @@
tests/qapi-schema/doc-missing-colon.json:4:1: Line should end with ':'
tests/qapi-schema/doc-missing-colon.json:4:1: line should end with ':'

2
tests/qapi-schema/doc-missing-expr.err

@ -1 +1 @@
tests/qapi-schema/doc-missing-expr.json:3: Documentation for 'bar' is not followed by the definition
tests/qapi-schema/doc-missing-expr.json:3: documentation for 'bar' is not followed by the definition

2
tests/qapi-schema/doc-missing-space.err

@ -1 +1 @@
tests/qapi-schema/doc-missing-space.json:5:1: Missing space after #
tests/qapi-schema/doc-missing-space.json:5:1: missing space after #

3
tests/qapi-schema/doc-missing.err

@ -1 +1,2 @@
tests/qapi-schema/doc-missing.json:5: Definition missing documentation comment
tests/qapi-schema/doc-missing.json: In command 'undocumented':
tests/qapi-schema/doc-missing.json:5: documentation comment required

2
tests/qapi-schema/doc-no-symbol.err

@ -1 +1 @@
tests/qapi-schema/doc-no-symbol.json:3: Definition documentation required
tests/qapi-schema/doc-no-symbol.json:3: definition documentation required

3
tests/qapi-schema/double-type.err

@ -1,2 +1,3 @@
tests/qapi-schema/double-type.json:2: Unknown key 'command' in struct 'bar'
tests/qapi-schema/double-type.json: In struct 'bar':
tests/qapi-schema/double-type.json:2: struct has unknown key 'command'
Valid keys are 'base', 'data', 'features', 'if', 'struct'.

2
tests/qapi-schema/duplicate-key.err

@ -1 +1 @@
tests/qapi-schema/duplicate-key.json:3:10: Duplicate key 'key'
tests/qapi-schema/duplicate-key.json:3:10: duplicate key 'key'

3
tests/qapi-schema/enum-bad-member.err

@ -1 +1,2 @@
tests/qapi-schema/enum-bad-member.json:2: Member of enum 'MyEnum' requires a string name
tests/qapi-schema/enum-bad-member.json: In enum 'MyEnum':
tests/qapi-schema/enum-bad-member.json:2: 'data' member requires a string name

3
tests/qapi-schema/enum-bad-name.err

@ -1 +1,2 @@
tests/qapi-schema/enum-bad-name.json:3: Member of enum 'MyEnum' uses invalid name 'not\possible'
tests/qapi-schema/enum-bad-name.json: In enum 'MyEnum':
tests/qapi-schema/enum-bad-name.json:3: 'data' member 'not\possible' has an invalid name

3
tests/qapi-schema/enum-bad-prefix.err

@ -1 +1,2 @@
tests/qapi-schema/enum-bad-prefix.json:2: Enum 'MyEnum' requires a string for 'prefix'
tests/qapi-schema/enum-bad-prefix.json: In enum 'MyEnum':
tests/qapi-schema/enum-bad-prefix.json:2: 'prefix' must be a string

3
tests/qapi-schema/enum-clash-member.err

@ -1 +1,2 @@
tests/qapi-schema/enum-clash-member.json:2: 'one_two' (value of MyEnum) collides with 'one-two' (value of MyEnum)
tests/qapi-schema/enum-clash-member.json: In enum 'MyEnum':
tests/qapi-schema/enum-clash-member.json:2: value 'one_two' collides with value 'one-two'

3
tests/qapi-schema/enum-dict-member-unknown.err

@ -1,2 +1,3 @@
tests/qapi-schema/enum-dict-member-unknown.json:2: Unknown key 'bad-key' in member of enum 'MyEnum'
tests/qapi-schema/enum-dict-member-unknown.json: In enum 'MyEnum':
tests/qapi-schema/enum-dict-member-unknown.json:2: 'data' member has unknown key 'bad-key'
Valid keys are 'if', 'name'.

3
tests/qapi-schema/enum-if-invalid.err

@ -1 +1,2 @@
tests/qapi-schema/enum-if-invalid.json:2: 'if' condition must be a string or a list of strings
tests/qapi-schema/enum-if-invalid.json: In enum 'TestIfEnum':
tests/qapi-schema/enum-if-invalid.json:2: 'if' condition of 'data' member 'bar' must be a string or a list of strings

2
tests/qapi-schema/enum-int-member.err

@ -1 +1 @@
tests/qapi-schema/enum-int-member.json:3:31: Stray '1'
tests/qapi-schema/enum-int-member.json:3:31: stray '1'

3
tests/qapi-schema/enum-member-case.err

@ -1 +1,2 @@
tests/qapi-schema/enum-member-case.json:4: 'Value' (value of NoWayThisWillGetWhitelisted) should not use uppercase
tests/qapi-schema/enum-member-case.json: In enum 'NoWayThisWillGetWhitelisted':
tests/qapi-schema/enum-member-case.json:4: 'data' member 'Value' uses uppercase in name

3
tests/qapi-schema/enum-missing-data.err

@ -1 +1,2 @@
tests/qapi-schema/enum-missing-data.json:2: Key 'data' is missing from enum 'MyEnum'
tests/qapi-schema/enum-missing-data.json: In enum 'MyEnum':
tests/qapi-schema/enum-missing-data.json:2: enum misses key 'data'

3
tests/qapi-schema/enum-wrong-data.err

@ -1 +1,2 @@
tests/qapi-schema/enum-wrong-data.json:2: Enum 'MyEnum' requires an array for 'data'
tests/qapi-schema/enum-wrong-data.json: In enum 'MyEnum':
tests/qapi-schema/enum-wrong-data.json:2: 'data' must be an array

2
tests/qapi-schema/escape-outside-string.err

@ -1 +1 @@
tests/qapi-schema/escape-outside-string.json:3:27: Stray '\'
tests/qapi-schema/escape-outside-string.json:3:27: stray '\'

3
tests/qapi-schema/event-boxed-empty.err

@ -1 +1,2 @@
tests/qapi-schema/event-boxed-empty.json:2: Use of 'boxed' requires 'data'
tests/qapi-schema/event-boxed-empty.json: In event 'FOO':
tests/qapi-schema/event-boxed-empty.json:2: 'boxed': true requires 'data'

3
tests/qapi-schema/event-member-invalid-dict.err

@ -1 +1,2 @@
tests/qapi-schema/event-member-invalid-dict.json:1: Key 'type' is missing from member 'a' of 'data' for event 'EVENT_A'
tests/qapi-schema/event-member-invalid-dict.json: In event 'EVENT_A':
tests/qapi-schema/event-member-invalid-dict.json:1: 'data' member 'a' misses key 'type'

3
tests/qapi-schema/event-nest-struct.err

@ -1 +1,2 @@
tests/qapi-schema/event-nest-struct.json:1: Member 'a' of 'data' for event 'EVENT_A' should be a type name
tests/qapi-schema/event-nest-struct.json: In event 'EVENT_A':
tests/qapi-schema/event-nest-struct.json:1: 'data' member 'a' should be a type name

3
tests/qapi-schema/features-bad-type.err

@ -1 +1,2 @@
tests/qapi-schema/features-bad-type.json:1: Feature of struct FeatureStruct0 requires a string name
tests/qapi-schema/features-bad-type.json: In struct 'FeatureStruct0':
tests/qapi-schema/features-bad-type.json:1: 'features' member requires a string name

3
tests/qapi-schema/features-duplicate-name.err

@ -1 +1,2 @@
tests/qapi-schema/features-duplicate-name.json:1: 'foo' (feature of FeatureStruct0) collides with 'foo' (feature of FeatureStruct0)
tests/qapi-schema/features-duplicate-name.json: In struct 'FeatureStruct0':
tests/qapi-schema/features-duplicate-name.json:1: feature 'foo' collides with feature 'foo'

3
tests/qapi-schema/features-if-invalid.err

@ -1 +1,2 @@
tests/qapi-schema/features-if-invalid.json:2: 'if' condition must be a string or a list of strings
tests/qapi-schema/features-if-invalid.json: In struct 'Stru':
tests/qapi-schema/features-if-invalid.json:2: 'if' condition of 'features' member 'f' must be a string or a list of strings

3
tests/qapi-schema/features-missing-name.err

@ -1 +1,2 @@
tests/qapi-schema/features-missing-name.json:1: Key 'name' is missing from feature of struct FeatureStruct0
tests/qapi-schema/features-missing-name.json: In struct 'FeatureStruct0':
tests/qapi-schema/features-missing-name.json:1: 'features' member misses key 'name'

3
tests/qapi-schema/features-name-bad-type.err

@ -1 +1,2 @@
tests/qapi-schema/features-name-bad-type.json:1: Feature of struct FeatureStruct0 requires a string name
tests/qapi-schema/features-name-bad-type.json: In struct 'FeatureStruct0':
tests/qapi-schema/features-name-bad-type.json:1: 'features' member requires a string name

3
tests/qapi-schema/features-no-list.err

@ -1 +1,2 @@
tests/qapi-schema/features-no-list.json:1: Struct 'FeatureStruct0' requires an array for 'features'
tests/qapi-schema/features-no-list.json: In struct 'FeatureStruct0':
tests/qapi-schema/features-no-list.json:1: 'features' must be an array

3
tests/qapi-schema/features-unknown-key.err

@ -1,2 +1,3 @@
tests/qapi-schema/features-unknown-key.json:1: Unknown key 'colour' in feature of struct FeatureStruct0
tests/qapi-schema/features-unknown-key.json: In struct 'FeatureStruct0':
tests/qapi-schema/features-unknown-key.json:1: 'features' member has unknown key 'colour'
Valid keys are 'if', 'name'.

3
tests/qapi-schema/flat-union-array-branch.err

@ -1 +1,2 @@
tests/qapi-schema/flat-union-array-branch.json:8: Member 'value1' of union 'TestUnion' cannot be an array
tests/qapi-schema/flat-union-array-branch.json: In union 'TestUnion':
tests/qapi-schema/flat-union-array-branch.json:8: 'data' member 'value1' cannot be an array

3
tests/qapi-schema/flat-union-bad-base.err

@ -1 +1,2 @@
tests/qapi-schema/flat-union-bad-base.json:8: 'string' (member of TestTypeA) collides with 'string' (base of TestUnion)
tests/qapi-schema/flat-union-bad-base.json: In union 'TestUnion':
tests/qapi-schema/flat-union-bad-base.json:8: member 'string' of type 'TestTypeA' collides with base member 'string'

3
tests/qapi-schema/flat-union-bad-discriminator.err

@ -1 +1,2 @@
tests/qapi-schema/flat-union-bad-discriminator.json:11: Discriminator of flat union 'TestUnion' requires a string name
tests/qapi-schema/flat-union-bad-discriminator.json: In union 'TestUnion':
tests/qapi-schema/flat-union-bad-discriminator.json:11: 'discriminator' requires a string name

3
tests/qapi-schema/flat-union-base-any.err

@ -1 +1,2 @@
tests/qapi-schema/flat-union-base-any.json:8: 'base' for union 'TestUnion' cannot use built-in type 'any'
tests/qapi-schema/flat-union-base-any.json: In union 'TestUnion':
tests/qapi-schema/flat-union-base-any.json:8: 'base' requires a struct type, built-in type 'any' isn't

3
tests/qapi-schema/flat-union-base-union.err

@ -1 +1,2 @@
tests/qapi-schema/flat-union-base-union.json:14: 'base' for union 'TestUnion' cannot use union type 'UnionBase'
tests/qapi-schema/flat-union-base-union.json: In union 'TestUnion':
tests/qapi-schema/flat-union-base-union.json:14: 'base' requires a struct type, union type 'UnionBase' isn't

3
tests/qapi-schema/flat-union-clash-member.err

@ -1 +1,2 @@
tests/qapi-schema/flat-union-clash-member.json:11: 'name' (member of Branch1) collides with 'name' (member of Base)
tests/qapi-schema/flat-union-clash-member.json: In union 'TestUnion':
tests/qapi-schema/flat-union-clash-member.json:11: member 'name' of type 'Branch1' collides with member 'name' of type 'Base'

3
tests/qapi-schema/flat-union-discriminator-bad-name.err

@ -1 +1,2 @@
tests/qapi-schema/flat-union-discriminator-bad-name.json:7: Discriminator of flat union 'MyUnion' does not allow optional name '*switch'
tests/qapi-schema/flat-union-discriminator-bad-name.json: In union 'MyUnion':
tests/qapi-schema/flat-union-discriminator-bad-name.json:6: discriminator '*switch' is not a member of 'base'

1
tests/qapi-schema/flat-union-discriminator-bad-name.json

@ -1,5 +1,4 @@
# discriminator '*switch' isn't a member of base, 'switch' is
# reports "does not allow optional name", which is good enough
{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }
{ 'struct': 'Base',
'data': { '*switch': 'Enum' } }

3
tests/qapi-schema/flat-union-empty.err

@ -1 +1,2 @@
tests/qapi-schema/flat-union-empty.json:4: Union 'Union' has no branches
tests/qapi-schema/flat-union-empty.json: In union 'Union':
tests/qapi-schema/flat-union-empty.json:4: union has no branches

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save