]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: convert x86_64 tests to query-cpus-fast
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Aug 2022 15:15:05 +0000 (17:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 8 Aug 2022 15:36:49 +0000 (17:36 +0200)
commit332ea27164c50d5caecb50be9a77eb113a82a287
tree710f16c46bb964565b384e88800f6711d0d2c337
parenteb98eb0ce8c22734543ae889cb8bda2f7c1969af
tests: convert x86_64 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 x86 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-x86-basic-pluggable-cpus.json
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-basic-pluggable.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-node-full-cpus.json
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-node-full.data
tests/qemumonitorjsontest.c