]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: rename hugepages-pages2 into hugepages-numa-default-2M
authorPavel Hrdina <phrdina@redhat.com>
Fri, 10 Aug 2018 11:08:53 +0000 (13:08 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 10 Aug 2018 15:06:48 +0000 (17:06 +0200)
Remove unnecessary XML elements as well.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
tests/qemuxml2argvdata/hugepages-numa-default-2M.args [moved from tests/qemuxml2argvdata/hugepages-pages2.args with 75% similarity]
tests/qemuxml2argvdata/hugepages-numa-default-2M.xml [moved from tests/qemuxml2argvdata/hugepages-pages2.xml with 77% similarity]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/hugepages-numa-default-2M.xml [moved from tests/qemuxml2xmloutdata/hugepages-pages2.xml with 67% similarity]
tests/qemuxml2xmltest.c

similarity index 75%
rename from tests/qemuxml2argvdata/hugepages-pages2.args
rename to tests/qemuxml2argvdata/hugepages-numa-default-2M.args
index 717df96f0ffa0275b9af77646c039f54f812715c..a710b583b7a6b86b28882e6bd43d37dc160fd9f3 100644 (file)
@@ -24,8 +24,4 @@ path=/tmp/lib/domain--1-SomeDummyHugepagesGu/monitor.sock,server,nowait \
 -rtc base=utc \
 -no-shutdown \
 -no-acpi \
--usb \
--drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
--device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,\
-bootindex=1 \
--device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
+-usb
similarity index 77%
rename from tests/qemuxml2argvdata/hugepages-pages2.xml
rename to tests/qemuxml2argvdata/hugepages-numa-default-2M.xml
index 3b2d72ef3c7e35e1e55a8672682391c8a1177d37..357c77da2a600853099450a3670a1b369aed9967 100644 (file)
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-i686</emulator>
-    <disk type='block' device='disk'>
-      <source dev='/dev/HostVG/QEMUGuest1'/>
-      <target dev='hda' bus='ide'/>
-      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
-    </disk>
     <controller type='usb' index='0'/>
-    <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <memballoon model='virtio'/>
+    <memballoon model='none'/>
   </devices>
 </domain>
index b8a3c40d13158b7a9bb7de4fedb65a31caba35a5..20c778bda4fc13c786dfdfdf2ffa47ffed033dc8 100644 (file)
@@ -950,14 +950,15 @@ mymain(void)
     DO_TEST("hugepages-default", NONE);
     DO_TEST("hugepages-numa-default",
             QEMU_CAPS_OBJECT_MEMORY_FILE);
+    DO_TEST("hugepages-numa-default-2M",
+            QEMU_CAPS_OBJECT_MEMORY_RAM,
+            QEMU_CAPS_OBJECT_MEMORY_FILE);
     DO_TEST("hugepages-numa-default-dimm",
             QEMU_CAPS_DEVICE_PC_DIMM,
             QEMU_CAPS_OBJECT_MEMORY_FILE);
     DO_TEST("hugepages-numa-nodeset",
             QEMU_CAPS_OBJECT_MEMORY_RAM,
             QEMU_CAPS_OBJECT_MEMORY_FILE);
-    DO_TEST("hugepages-pages2", QEMU_CAPS_OBJECT_MEMORY_RAM,
-            QEMU_CAPS_OBJECT_MEMORY_FILE);
     DO_TEST("hugepages-pages3", QEMU_CAPS_OBJECT_MEMORY_RAM,
             QEMU_CAPS_OBJECT_MEMORY_FILE,
             QEMU_CAPS_OBJECT_MEMORY_FILE_DISCARD);
similarity index 67%
rename from tests/qemuxml2xmloutdata/hugepages-pages2.xml
rename to tests/qemuxml2xmloutdata/hugepages-numa-default-2M.xml
index cd79960f1bf583d556d01a8afea2ae968f43f6b5..3777824e1a3027a817ff07e0e07fbae87a291d87 100644 (file)
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-i686</emulator>
-    <disk type='block' device='disk'>
-      <driver name='qemu' type='raw'/>
-      <source dev='/dev/HostVG/QEMUGuest1'/>
-      <target dev='hda' bus='ide'/>
-      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
-    </disk>
     <controller type='usb' index='0'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
     </controller>
-    <controller type='ide' index='0'>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
-    </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <memballoon model='virtio'>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
-    </memballoon>
+    <memballoon model='none'/>
   </devices>
 </domain>
index aee946924f4d6d53bc3df48e29864a1224112c28..7e74675b43868edc020cb3388393ec91dbe8ce0a 100644 (file)
@@ -327,9 +327,9 @@ mymain(void)
 
     DO_TEST("pages-discard", NONE);
     DO_TEST("hugepages-default", NONE);
+    DO_TEST("hugepages-numa-default-2M", NONE);
     DO_TEST("hugepages-numa-default-dimm", NONE);
     DO_TEST("hugepages-numa-nodeset", NONE);
-    DO_TEST("hugepages-pages2", NONE);
     DO_TEST("hugepages-pages3", NONE);
     DO_TEST("hugepages-pages4", NONE);
     DO_TEST("hugepages-pages5", NONE);