]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2argvtest: Modernize 'cpu-Haswell' test cases
authorPeter Krempa <pkrempa@redhat.com>
Fri, 1 Sep 2023 11:57:23 +0000 (13:57 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 6 Sep 2023 12:09:45 +0000 (14:09 +0200)
Modernize all test cases which set 'Haswell' as the host cpu model.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvdata/cpu-Haswell-noTSX.x86_64-latest.args [moved from tests/qemuxml2argvdata/cpu-Haswell-noTSX.args with 100% similarity]
tests/qemuxml2argvdata/cpu-Haswell.x86_64-latest.args [moved from tests/qemuxml2argvdata/cpu-Haswell.args with 100% similarity]
tests/qemuxml2argvdata/cpu-Haswell2.x86_64-latest.args [moved from tests/qemuxml2argvdata/cpu-Haswell2.args with 100% similarity]
tests/qemuxml2argvdata/cpu-Haswell3.x86_64-latest.args [moved from tests/qemuxml2argvdata/cpu-Haswell3.args with 100% similarity]
tests/qemuxml2argvdata/cpu-host-model-cmt.x86_64-latest.args [moved from tests/qemuxml2argvdata/cpu-host-model-cmt.args with 100% similarity]
tests/qemuxml2argvdata/cpu-tsc-frequency.x86_64-latest.args [moved from tests/qemuxml2argvdata/cpu-tsc-frequency.args with 100% similarity]
tests/qemuxml2argvtest.c

index 050d38c3fc8c622c37c88f64e92835185c3c456f..a3e137e1c1f3bf87b75203dd3566771271f3eb0b 100644 (file)
@@ -1805,14 +1805,12 @@ mymain(void)
     DO_TEST_CAPS_ARCH_LATEST("cpu-s390-zEC12", "s390x");
     DO_TEST_CAPS_ARCH_LATEST("cpu-s390-features", "s390x");
 
-    qemuTestSetHostCPU(&driver, driver.hostarch, qemuTestGetCPUDef(QEMU_CPU_DEF_HASWELL));
-    DO_TEST("cpu-Haswell", QEMU_CAPS_KVM);
-    DO_TEST("cpu-Haswell2", QEMU_CAPS_KVM);
-    DO_TEST("cpu-Haswell3", QEMU_CAPS_KVM);
-    DO_TEST("cpu-Haswell-noTSX", QEMU_CAPS_KVM);
-    DO_TEST_NOCAPS("cpu-host-model-cmt");
-    DO_TEST("cpu-tsc-frequency", QEMU_CAPS_KVM);
-    qemuTestSetHostCPU(&driver, driver.hostarch, NULL);
+    DO_TEST_CAPS_ARCH_LATEST_FULL("cpu-Haswell", "x86_64", ARG_CAPS_HOST_CPU_MODEL, QEMU_CPU_DEF_HASWELL);
+    DO_TEST_CAPS_ARCH_LATEST_FULL("cpu-Haswell2", "x86_64", ARG_CAPS_HOST_CPU_MODEL, QEMU_CPU_DEF_HASWELL);
+    DO_TEST_CAPS_ARCH_LATEST_FULL("cpu-Haswell3", "x86_64", ARG_CAPS_HOST_CPU_MODEL, QEMU_CPU_DEF_HASWELL);
+    DO_TEST_CAPS_ARCH_LATEST_FULL("cpu-Haswell-noTSX", "x86_64", ARG_CAPS_HOST_CPU_MODEL, QEMU_CPU_DEF_HASWELL);
+    DO_TEST_CAPS_ARCH_LATEST_FULL("cpu-host-model-cmt", "x86_64", ARG_CAPS_HOST_CPU_MODEL, QEMU_CPU_DEF_HASWELL);
+    DO_TEST_CAPS_ARCH_LATEST_FULL("cpu-tsc-frequency", "x86_64", ARG_CAPS_HOST_CPU_MODEL, QEMU_CPU_DEF_HASWELL);
 
     DO_TEST_CAPS_LATEST("cpu-translation");