]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Prepare for testing of 'netdev_add' props via qemuxml2argvtest
authorPeter Krempa <pkrempa@redhat.com>
Fri, 15 May 2020 12:24:21 +0000 (14:24 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 20 May 2020 07:41:58 +0000 (09:41 +0200)
commit78d30aa0bf3717fec2f953b3ef8d130ee08b349d
treeb196e54863a8a6d11b9021651b0c0a39227f94d0
parent529ad62c0d300dbc4e092d432e7e28c0f22ff45d
qemu: Prepare for testing of 'netdev_add' props via qemuxml2argvtest

qemuxml2argv test suite is way more comprehensive than the hotplug
suite. Since we share the code paths for monitor and command line
hotplug we can easily test the properties of devices against the QAPI
schema.

To achieve this we'll need to skip the JSON->commandline conversion for
the test run so that we can analyze the pure properties. This patch adds
flags for the comand line generator and hook them into the
JSON->commandline convertor for -netdev. An upcoming patch will make use
of this new infrastructure.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h
src/util/virqemu.c
src/util/virqemu.h
tests/qemuxml2argvtest.c