From ac9bd77ed3c20f187f2f4b1cf8efbb00c75ee24f Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Thu, 11 Apr 2019 14:56:16 +0200 Subject: [PATCH] tests: add CPU defult test case for old QEMU With old QEMU we should not use host-model because it's not safe and it might fail to start. Signed-off-by: Pavel Hrdina --- .../virt-install-cpu-rhel7-default.xml | 89 +++++++++++++++++++ tests/clitest.py | 1 + 2 files changed, 90 insertions(+) create mode 100644 tests/cli-test-xml/compare/virt-install-cpu-rhel7-default.xml diff --git a/tests/cli-test-xml/compare/virt-install-cpu-rhel7-default.xml b/tests/cli-test-xml/compare/virt-install-cpu-rhel7-default.xml new file mode 100644 index 000000000..04a49f412 --- /dev/null +++ b/tests/cli-test-xml/compare/virt-install-cpu-rhel7-default.xml @@ -0,0 +1,89 @@ + + foobar + 00000000-1111-2222-3333-444444444444 + 65536 + 65536 + 1 + + hvm + + + + + + + + + + + + + destroy + + + + + + /usr/libexec/qemu-kvm + + + + + + + + + + + + + + + + + + + + foobar + 00000000-1111-2222-3333-444444444444 + 65536 + 65536 + 1 + + hvm + + + + + + + + + + + + + + + + + + /usr/libexec/qemu-kvm + + + + + + + + + + + + + + + + + + diff --git a/tests/clitest.py b/tests/clitest.py index 001a376a1..18f3fcaf2 100644 --- a/tests/clitest.py +++ b/tests/clitest.py @@ -605,6 +605,7 @@ c.add_invalid("--security foobar") # Busted --security c.add_compare("--cpuset auto --vcpus 2", "cpuset-auto") # --cpuset=auto actually works c.add_compare("--memory 1024,hotplugmemorymax=2048,hotplugmemoryslots=2 --cpu cell0.cpus=0,cell0.memory=1048576 --memdev dimm,access=private,target_size=512,target_node=0,source_pagesize=4,source_nodemask=1-2 --memdev nvdimm,source_path=/path/to/nvdimm,target_size=512,target_node=0,target_label_size=128", "memory-hotplug") c.add_compare("--connect " + utils.URIs.kvm_q35 + " --cpu qemu64,secure=off", "cpu-disable-sec") # disable security features that are added by default +c.add_compare("--connect " + utils.URIs.kvm_rhel, "cpu-rhel7-default") # default CPU for old QEMU where we cannot use host-model