Skip to content

qapi: Code generation fixes

Markus Armbruster qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tests/qapi-schema: Make test-qapi.py print arraystests/qapi-schema/qapi-schema-test.out tests/qapi-schema/test-qapi.py+12 -02 replies
2/7tests/qapi-schema: Cover conditional arraystests/qapi-schema/qapi-schema-test.json tests/qapi-schema/qapi-schema-test.out+4 -21 reply
3/7qapi: Pass file name to QAPIGen constructor instead of methodsscripts/qapi/commands.py scripts/qapi/common.py scripts/qapi/doc.py+38 -361 reply
4/7qapi: Fix code generation for sub-modules in other directoriesscripts/qapi/common.py tests/.gitignore tests/Makefile.include +10 more+91 -422 replies
5/7tests: Rename UserDefNativeListUnion to UserDefListUniontests/qapi-schema/qapi-schema-test.json tests/qapi-schema/qapi-schema-test.out tests/test-clone-visitor.c +3 more+209 -2091 reply
6/7tests/qapi-schema: Cover forward reference to sub-moduletests/qapi-schema/qapi-schema-test.json tests/qapi-schema/qapi-schema-test.out+7 -11 reply
7/7qapi: Fix array first used in a different modulescripts/qapi/common.py tests/qapi-schema/include/sub-module.json tests/qapi-schema/qapi-schema-test.out+12 -41 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/7] qapi: Code generation fixes

Markus Armbruster (7):
tests/qapi-schema: Make test-qapi.py print arrays tests/qapi-schema: Cover conditional arrays
qapi: Pass file name to QAPIGen constructor instead of methods
qapi: Fix code generation for sub-modules in other directories
tests: Rename UserDefNativeListUnion to UserDefListUnion tests/qapi-schema: Cover forward reference to sub-module
qapi: Fix array first used in a different module

 scripts/qapi/commands.py                   |   2 +-
 scripts/qapi/common.py                     | 106 ++++++-----
 scripts/qapi/doc.py                        |   4 +-
 tests/.gitignore                           |   8 +
 tests/Makefile.include                     |  44 ++++-
 tests/qapi-schema/include-relpath-sub.json |   2 -
 tests/qapi-schema/include-relpath.err      |   0
 tests/qapi-schema/include-relpath.exit     |   1 -
 tests/qapi-schema/include-relpath.json     |   1 -
 tests/qapi-schema/include-relpath.out      |  20 ---
 tests/qapi-schema/include/relpath.json     |   1 -
 tests/qapi-schema/include/sub-module.json  |   7 +
 tests/qapi-schema/qapi-schema-test.json    |  14 +-
 tests/qapi-schema/qapi-schema-test.out     |  37 +++-
 tests/qapi-schema/sub-sub-module.json      |   6 +
 tests/qapi-schema/test-qapi.py             |   6 +
 tests/test-clone-visitor.c                 |  16 +-
 tests/test-qmp-cmds.c                      |   2 +-
 tests/test-qobject-input-visitor.c         | 196 ++++++++++-----------
 tests/test-qobject-output-visitor.c        | 190 ++++++++++----------
 20 files changed, 371 insertions(+), 292 deletions(-)
 delete mode 100644 tests/qapi-schema/include-relpath-sub.json
 delete mode 100644 tests/qapi-schema/include-relpath.err
 delete mode 100644 tests/qapi-schema/include-relpath.exit
 delete mode 100644 tests/qapi-schema/include-relpath.json
 delete mode 100644 tests/qapi-schema/include-relpath.out
 delete mode 100644 tests/qapi-schema/include/relpath.json
 create mode 100644 tests/qapi-schema/include/sub-module.json
 create mode 100644 tests/qapi-schema/sub-sub-module.json
Signature · 1 line
2.17.2