]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2(xml|argv)test: Test real state of things with 'x86-kvm-32-on-64'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Jan 2022 21:19:40 +0000 (22:19 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 7 Jan 2022 08:25:14 +0000 (09:25 +0100)
commit239a6f695490a9fdb483dc3055ba8afed5712ed9
tree94a64f1940b8c4e29f16f71b5f78abc77d0332fa
parent42d980735097a0fdb8eaa2b6068c98a1c37dd9dc
qemuxml2(xml|argv)test: Test real state of things with 'x86-kvm-32-on-64'

As demonstrated by the qemuxml2xmltest DO_TEST_CAPS_LATEST data based on
the 'x86-kvm-32-on-64' test case the post parse CPU selection code which
fills in the CPU into the definition does not have exactly the same
logic as we used to have when the cpu model was picked when formatting
the commandline.

Change the qemuxml2argv test to use DO_TEST_CAPS_LATEST too as it
doesn't really make sense to test this on fake data.

In addition to 'latest' versions, this also adds second invocation
locked to qemu-4.1.0 which demonstrates the old behaviour.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvdata/x86-kvm-32-on-64.x86_64-4.1.0.args [moved from tests/qemuxml2argvdata/x86-kvm-32-on-64.args with 75% similarity]
tests/qemuxml2argvdata/x86-kvm-32-on-64.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/x86-kvm-32-on-64.x86_64-4.1.0.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/x86-kvm-32-on-64.x86_64-latest.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c