[PATCH v1 0/3] qemumonitorjson tests for cpu compare and baseline

Michal Privoznik mprivozn at redhat.com
Fri Feb 21 09:51:22 UTC 2020


On 2/20/20 11:01 PM, Collin Walling wrote:
> These patches implement tests for the libvirt qemu_monitor_json API for
> the hypervisor-cpu-compare and -baseline commands. The input and output
> data is mocked with arbitrary values.
> 
> A prerequisite patch is included to load the capabilities schema for
> a specific architecture. Originally, only the x86 capabilities were
> loaded for the qemu_monitor_json tests. By accepting a string denoting
> which architecture's QEMU capabilities we'd like to load, we can now
> test the comparison and baseline code that is currently only supported
> on s390.
> 
> Collin Walling (3):
>    qemumonitorjsontest: load schema based on specified arch
>    qemumonitorjsontest: add tests for cpu comparison
>    qemumonitorjsontest: add test for cpu baseline
> 
>   tests/qemublocktest.c       |   2 +-
>   tests/qemuhotplugtest.c     |   2 +-
>   tests/qemumonitorjsontest.c | 131 +++++++++++++++++++++++++++++++++++++++++++-
>   tests/testutilsqemuschema.c |   8 +--
>   tests/testutilsqemuschema.h |   4 +-
>   5 files changed, 137 insertions(+), 10 deletions(-)
> 

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

and pushed.

Michal




More information about the libvir-list mailing list