|
|
edecca |
From b62a8d7fc457babdc57a93264fb8f75f8ecf7369 Mon Sep 17 00:00:00 2001
|
|
|
edecca |
Message-Id: <b62a8d7fc457babdc57a93264fb8f75f8ecf7369@dist-git>
|
|
|
edecca |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
|
edecca |
Date: Mon, 13 Aug 2018 19:21:49 +0200
|
|
|
edecca |
Subject: [PATCH] tests: rename hugepages-pages8 into
|
|
|
edecca |
hugepages-nodeset-nonexist
|
|
|
edecca |
MIME-Version: 1.0
|
|
|
edecca |
Content-Type: text/plain; charset=UTF-8
|
|
|
edecca |
Content-Transfer-Encoding: 8bit
|
|
|
edecca |
|
|
|
edecca |
Remove unnecessary XML elements as well.
|
|
|
edecca |
|
|
|
edecca |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
edecca |
(cherry picked from commit 67cffcbbdb4a7dcdc10681695e00615ffae8e726)
|
|
|
edecca |
|
|
|
edecca |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1615461
|
|
|
edecca |
|
|
|
edecca |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
edecca |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
edecca |
---
|
|
|
edecca |
...es-pages8.xml => hugepages-nodeset-nonexist.xml} | 13 +------------
|
|
|
edecca |
tests/qemuxml2argvtest.c | 7 ++++---
|
|
|
edecca |
2 files changed, 5 insertions(+), 15 deletions(-)
|
|
|
edecca |
rename tests/qemuxml2argvdata/{hugepages-pages8.xml => hugepages-nodeset-nonexist.xml} (64%)
|
|
|
edecca |
|
|
|
edecca |
diff --git a/tests/qemuxml2argvdata/hugepages-pages8.xml b/tests/qemuxml2argvdata/hugepages-nodeset-nonexist.xml
|
|
|
edecca |
similarity index 64%
|
|
|
edecca |
rename from tests/qemuxml2argvdata/hugepages-pages8.xml
|
|
|
edecca |
rename to tests/qemuxml2argvdata/hugepages-nodeset-nonexist.xml
|
|
|
edecca |
index 4cf4c1a8ad..477d3f1f2b 100644
|
|
|
edecca |
--- a/tests/qemuxml2argvdata/hugepages-pages8.xml
|
|
|
edecca |
+++ b/tests/qemuxml2argvdata/hugepages-nodeset-nonexist.xml
|
|
|
edecca |
@@ -19,23 +19,12 @@
|
|
|
edecca |
<on_crash>destroy</on_crash>
|
|
|
edecca |
<devices>
|
|
|
edecca |
<emulator>/usr/bin/qemu-system-i686</emulator>
|
|
|
edecca |
- <disk type='block' device='disk'>
|
|
|
edecca |
- <driver name='qemu' type='raw'/>
|
|
|
edecca |
- <source dev='/dev/HostVG/QEMUGuest1'/>
|
|
|
edecca |
- <target dev='hda' bus='ide'/>
|
|
|
edecca |
- <address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
|
|
edecca |
- </disk>
|
|
|
edecca |
<controller type='usb' index='0'>
|
|
|
edecca |
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
|
|
edecca |
</controller>
|
|
|
edecca |
- <controller type='ide' index='0'>
|
|
|
edecca |
- <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
|
|
edecca |
- </controller>
|
|
|
edecca |
<controller type='pci' index='0' model='pci-root'/>
|
|
|
edecca |
<input type='mouse' bus='ps2'/>
|
|
|
edecca |
<input type='keyboard' bus='ps2'/>
|
|
|
edecca |
- <memballoon model='virtio'>
|
|
|
edecca |
- <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
|
|
edecca |
- </memballoon>
|
|
|
edecca |
+ <memballoon model='none'/>
|
|
|
edecca |
</devices>
|
|
|
edecca |
</domain>
|
|
|
edecca |
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
|
|
|
edecca |
index f8fbca1806..d4251eff3e 100644
|
|
|
edecca |
--- a/tests/qemuxml2argvtest.c
|
|
|
edecca |
+++ b/tests/qemuxml2argvtest.c
|
|
|
edecca |
@@ -959,6 +959,10 @@ mymain(void)
|
|
|
edecca |
DO_TEST("hugepages-default", NONE);
|
|
|
edecca |
DO_TEST("hugepages-default-2M", NONE);
|
|
|
edecca |
DO_TEST("hugepages-default-system-size", NONE);
|
|
|
edecca |
+ DO_TEST_FAILURE("hugepages-nodeset-nonexist",
|
|
|
edecca |
+ QEMU_CAPS_DEVICE_PC_DIMM,
|
|
|
edecca |
+ QEMU_CAPS_OBJECT_MEMORY_FILE,
|
|
|
edecca |
+ QEMU_CAPS_OBJECT_MEMORY_FILE_DISCARD);
|
|
|
edecca |
DO_TEST("hugepages-numa-default",
|
|
|
edecca |
QEMU_CAPS_OBJECT_MEMORY_FILE);
|
|
|
edecca |
DO_TEST("hugepages-numa-default-2M",
|
|
|
edecca |
@@ -980,9 +984,6 @@ mymain(void)
|
|
|
edecca |
QEMU_CAPS_OBJECT_MEMORY_RAM,
|
|
|
edecca |
QEMU_CAPS_OBJECT_MEMORY_FILE);
|
|
|
edecca |
DO_TEST_PARSE_ERROR("hugepages-memaccess-invalid", NONE);
|
|
|
edecca |
- DO_TEST_FAILURE("hugepages-pages8",
|
|
|
edecca |
- QEMU_CAPS_DEVICE_PC_DIMM, QEMU_CAPS_OBJECT_MEMORY_FILE,
|
|
|
edecca |
- QEMU_CAPS_OBJECT_MEMORY_FILE_DISCARD);
|
|
|
edecca |
DO_TEST("hugepages-memaccess", QEMU_CAPS_OBJECT_MEMORY_FILE,
|
|
|
edecca |
QEMU_CAPS_OBJECT_MEMORY_RAM, QEMU_CAPS_DEVICE_PC_DIMM,
|
|
|
edecca |
QEMU_CAPS_NUMA);
|
|
|
edecca |
--
|
|
|
edecca |
2.18.0
|
|
|
edecca |
|