From: Daniel Henrique Barboza Date: Wed, 10 Jun 2020 18:35:52 +0000 (-0300) Subject: qemuxml2xmltest.c: add NUMA vcpus auto fill tests X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6c380dea6196d97775aa748b4df96133c3046ea4;p=libvirt.git qemuxml2xmltest.c: add NUMA vcpus auto fill tests Add a unit test to verify the NUMA vcpus autocomplete implemented in the previous patch. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Michal Privoznik --- diff --git a/tests/qemuxml2argvdata/numavcpus-topology-mismatch.xml b/tests/qemuxml2argvdata/numavcpus-topology-mismatch.xml new file mode 100644 index 0000000000..d3b2c1297e --- /dev/null +++ b/tests/qemuxml2argvdata/numavcpus-topology-mismatch.xml @@ -0,0 +1,37 @@ + + dummy + 4d92ec27-9ebf-400b-ae91-20c71c647c19 + 16777216 + 7864320 + 3906240 + 12 + + + + + hvm + + + + + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + + + + +
+ + + diff --git a/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-latest.xml b/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-latest.xml new file mode 100644 index 0000000000..2d2245b10c --- /dev/null +++ b/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-latest.xml @@ -0,0 +1,38 @@ + + dummy + 4d92ec27-9ebf-400b-ae91-20c71c647c19 + 16777216 + 7864320 + 3906240 + 12 + + + + + hvm + + + + qemu64 + + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + + + + +
+ + + diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 7fc8a7d61f..022f6786b9 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -554,6 +554,7 @@ mymain(void) QEMU_CAPS_KVM, QEMU_CAPS_OBJECT_IOTHREAD); DO_TEST_CAPS_LATEST("cputune-cpuset-big-id"); + DO_TEST_CAPS_LATEST("numavcpus-topology-mismatch"); DO_TEST("smp", NONE); DO_TEST("iothreads", NONE);