qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/7] drop qapi nested structs
@ 2014-08-05  4:36 Eric Blake
  2014-08-05  4:36 ` [Qemu-devel] [PATCH 1/7] qapi: add some enum tests Eric Blake
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Eric Blake @ 2014-08-05  4:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: famz, Markus Armbruster, wenchaoqemu, Luiz Capitulino

According to this email:
https://lists.gnu.org/archive/html/qemu-devel/2014-05/msg00708.html
we want to repurpose 'data': { 'name': {dict...} } in qapi files
for future use of designating default values of optional parameters.
But to do that, we must first nuke existing use of that syntax for
declaring nested structs.  Enhancing the testsuite while at it
never hurts.

Eric Blake (7):
  qapi: add some enum tests
  qapi: better error message for bad enum
  qapi: merge UserDefTwo and UserDefNested in tests
  qapi: drop tests for inline subtypes
  qapi: drop inline subtype in query-version
  qapi: drop inline subtype in query-pci
  qapi: drop support for inline subtypes

 hmp.c                                        | 28 ++++-----
 hw/pci/pci.c                                 | 42 +++++++------
 qapi-schema.json                             | 90 +++++++++++++++++++---------
 qapi/common.json                             | 26 +++++---
 qmp.c                                        |  9 +--
 scripts/qapi-commands.py                     |  8 +--
 scripts/qapi-event.py                        |  4 +-
 scripts/qapi-types.py                        |  9 +--
 scripts/qapi-visit.py                        | 37 ++----------
 scripts/qapi.py                              | 52 ++++++++++------
 tests/Makefile                               |  6 +-
 tests/qapi-schema/enum-empty.err             |  0
 tests/qapi-schema/enum-empty.exit            |  1 +
 tests/qapi-schema/enum-empty.json            |  1 +
 tests/qapi-schema/enum-empty.out             |  3 +
 tests/qapi-schema/enum-missing-data.err      |  1 +
 tests/qapi-schema/enum-missing-data.exit     |  1 +
 tests/qapi-schema/enum-missing-data.json     |  1 +
 tests/qapi-schema/enum-missing-data.out      |  0
 tests/qapi-schema/enum-wrong-data.err        |  1 +
 tests/qapi-schema/enum-wrong-data.exit       |  1 +
 tests/qapi-schema/enum-wrong-data.json       |  1 +
 tests/qapi-schema/enum-wrong-data.out        |  0
 tests/qapi-schema/event-nest-struct.err      |  2 +-
 tests/qapi-schema/nested-struct-data.err     |  1 +
 tests/qapi-schema/nested-struct-data.exit    |  1 +
 tests/qapi-schema/nested-struct-data.json    |  3 +
 tests/qapi-schema/nested-struct-data.out     |  0
 tests/qapi-schema/nested-struct-returns.err  |  1 +
 tests/qapi-schema/nested-struct-returns.exit |  1 +
 tests/qapi-schema/nested-struct-returns.json |  2 +
 tests/qapi-schema/nested-struct-returns.out  |  0
 tests/qapi-schema/qapi-schema-test.json      | 18 +++---
 tests/qapi-schema/qapi-schema-test.out       | 10 ++--
 tests/test-qmp-commands.c                    | 35 ++++++-----
 tests/test-qmp-input-strict.c                | 19 +++---
 tests/test-qmp-input-visitor.c               | 25 ++++----
 tests/test-qmp-output-visitor.c              | 64 +++++++++++---------
 tests/test-visitor-serialization.c           | 84 ++++++++++++++------------
 39 files changed, 334 insertions(+), 254 deletions(-)
 create mode 100644 tests/qapi-schema/enum-empty.err
 create mode 100644 tests/qapi-schema/enum-empty.exit
 create mode 100644 tests/qapi-schema/enum-empty.json
 create mode 100644 tests/qapi-schema/enum-empty.out
 create mode 100644 tests/qapi-schema/enum-missing-data.err
 create mode 100644 tests/qapi-schema/enum-missing-data.exit
 create mode 100644 tests/qapi-schema/enum-missing-data.json
 create mode 100644 tests/qapi-schema/enum-missing-data.out
 create mode 100644 tests/qapi-schema/enum-wrong-data.err
 create mode 100644 tests/qapi-schema/enum-wrong-data.exit
 create mode 100644 tests/qapi-schema/enum-wrong-data.json
 create mode 100644 tests/qapi-schema/enum-wrong-data.out
 create mode 100644 tests/qapi-schema/nested-struct-data.err
 create mode 100644 tests/qapi-schema/nested-struct-data.exit
 create mode 100644 tests/qapi-schema/nested-struct-data.json
 create mode 100644 tests/qapi-schema/nested-struct-data.out
 create mode 100644 tests/qapi-schema/nested-struct-returns.err
 create mode 100644 tests/qapi-schema/nested-struct-returns.exit
 create mode 100644 tests/qapi-schema/nested-struct-returns.json
 create mode 100644 tests/qapi-schema/nested-struct-returns.out

-- 
1.9.3

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-05  6:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-05  4:36 [Qemu-devel] [PATCH 0/7] drop qapi nested structs Eric Blake
2014-08-05  4:36 ` [Qemu-devel] [PATCH 1/7] qapi: add some enum tests Eric Blake
2014-08-05  5:31   ` Fam Zheng
2014-08-05  4:36 ` [Qemu-devel] [PATCH 2/7] qapi: better error message for bad enum Eric Blake
2014-08-05  4:36 ` [Qemu-devel] [PATCH 3/7] qapi: merge UserDefTwo and UserDefNested in tests Eric Blake
2014-08-05  4:36 ` [Qemu-devel] [PATCH 4/7] qapi: drop tests for inline subtypes Eric Blake
2014-08-05  4:36 ` [Qemu-devel] [PATCH 5/7] qapi: drop inline subtype in query-version Eric Blake
2014-08-05  4:36 ` [Qemu-devel] [PATCH 6/7] qapi: drop inline subtype in query-pci Eric Blake
2014-08-05  4:36 ` [Qemu-devel] [PATCH 7/7] qapi: drop support for inline subtypes Eric Blake
2014-08-05  6:04   ` Fam Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).