[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 0/6] tests: Add qemucapsprobe helper



Adding new *.replies files for qemucapabilitiestest or updating the
files when libvirt adds an additional QMP command into the probing
process is quite painful. The goal of the new qemucapsprobe command is
to make this process as easy as

    tests/qemucapsprobe /path/to/qemu/binary >caps.replies

Jiri Denemark (6):
  tests: Create a shared library with qemu driver
  tests: Decouple preload code from main()
  qemu: Make virQEMUCapsNewForBinary usable from tests
  qemu: Make qemuMonitorJSONIOProcessLine available for tests
  virjson: Make pretty format more compact
  tests: Add qemucapsprobe helper

 src/qemu/qemu_capabilities.c                       |  38 ++-
 src/qemu/qemu_capspriv.h                           |   8 +
 src/qemu/qemu_monitor_json.c                       |   2 +-
 src/qemu/qemu_monitor_json.h                       |   4 +
 src/util/virjson.c                                 |   4 +-
 tests/Makefile.am                                  |  23 ++
 tests/qemucapabilitiestest.c                       |   5 +
 tests/qemucapsprobe.c                              |  82 +++++++
 tests/qemucapsprobemock.c                          |  93 ++++++++
 tests/testutils.h                                  |   9 +-
 .../virnetdaemondata/output-data-admin-nomdns.json | 254 ++++++++++-----------
 .../output-data-admin-server-names.json            | 254 ++++++++++-----------
 .../virnetdaemondata/output-data-anon-clients.json | 128 +++++------
 tests/virnetdaemondata/output-data-client-ids.json | 128 +++++------
 .../output-data-client-timestamp.json              | 132 +++++------
 .../output-data-initial-nomdns.json                | 128 +++++------
 tests/virnetdaemondata/output-data-initial.json    | 130 +++++------
 .../output-data-no-keepalive-required.json         | 254 ++++++++++-----------
 18 files changed, 960 insertions(+), 716 deletions(-)
 create mode 100644 tests/qemucapsprobe.c
 create mode 100644 tests/qemucapsprobemock.c

-- 
2.8.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]