]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: convert ppc64 tests to query-cpus-fast
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Aug 2022 15:15:04 +0000 (17:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 8 Aug 2022 15:36:49 +0000 (17:36 +0200)
commiteb98eb0ce8c22734543ae889cb8bda2f7c1969af
tree26c35c2b240bb7ed614446e11a9754aa0cb4c5e0
parente398a6aba421aae49cc4f07303308ed4cf23f354
tests: convert ppc64 tests to query-cpus-fast

All supported versions of QEMU include the query-cpus-fast QMP command.
In preparation for dropping support for the old "query-cpus" commands,
convert the JSON output for PPC tests to the new format, and drop the
"halted" field from the expected output as it is not available anymore.

The CPU properties were obtained from the query-hotpluggable-cpus output
in tests/qemumonitorjsondata.  CPU, thread_id, and qom_path are renamed
respectively to cpu-index, qom-path and thread-id, while nip and halted
are removed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-basic-cpus.json
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-hotplug-1-cpus.json
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-hotplug-2-cpus.json
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-hotplug-4-cpus.json
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-hotplug-4.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-cpus.json
tests/qemumonitorjsontest.c