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

Collin Walling posted 3 patches 4 years, 1 month ago
Test syntax-check failed
Failed in applying to current master (apply log)
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(-)
[PATCH v1 0/3] qemumonitorjson tests for cpu compare and baseline
Posted by Collin Walling 4 years, 1 month ago
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(-)

-- 
2.7.4


Re: [PATCH v1 0/3] qemumonitorjson tests for cpu compare and baseline
Posted by Michal Privoznik 4 years, 1 month ago
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@redhat.com>

and pushed.

Michal