render / rpms / libvirt

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