mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemuxml2*test: Make disk-virtio-queues tests use DO_TEST_CAPS_LATEST
Currently disk-virtio-queues test is now using specifying a fake capability. By this commit this test will make use of DO_TEST_CAPS_LATEST. Signed-off-by: Hiroki Narukawa <hnarukaw@yahoo-corp.jp> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
b480a5cb5c
commit
32967b891e
@ -1,29 +0,0 @@
|
|||||||
LC_ALL=C \
|
|
||||||
PATH=/bin \
|
|
||||||
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
|
||||||
USER=test \
|
|
||||||
LOGNAME=test \
|
|
||||||
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
|
||||||
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
|
||||||
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
|
||||||
QEMU_AUDIO_DRV=none \
|
|
||||||
/usr/bin/qemu-system-i386 \
|
|
||||||
-name guest=QEMUGuest1,debug-threads=on \
|
|
||||||
-S \
|
|
||||||
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
|
||||||
-m 214 \
|
|
||||||
-realtime mlock=off \
|
|
||||||
-smp 1,sockets=1,cores=1,threads=1 \
|
|
||||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
|
||||||
-display none \
|
|
||||||
-no-user-config \
|
|
||||||
-nodefaults \
|
|
||||||
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,server=on,wait=off \
|
|
||||||
-mon chardev=charmonitor,id=monitor,mode=control \
|
|
||||||
-rtc base=utc \
|
|
||||||
-no-shutdown \
|
|
||||||
-no-acpi \
|
|
||||||
-usb \
|
|
||||||
-drive file=/tmp/data.img,format=raw,if=none,id=drive-virtio-disk0 \
|
|
||||||
-device virtio-blk-pci,num-queues=4,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
|
|
||||||
-msg timestamp=on
|
|
35
tests/qemuxml2argvdata/disk-virtio-queues.x86_64-latest.args
Normal file
35
tests/qemuxml2argvdata/disk-virtio-queues.x86_64-latest.args
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name guest=QEMUGuest1,debug-threads=on \
|
||||||
|
-S \
|
||||||
|
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tmp/lib/domain--1-QEMUGuest1/master-key.aes"}' \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \
|
||||||
|
-cpu qemu64 \
|
||||||
|
-m 214 \
|
||||||
|
-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}' \
|
||||||
|
-overcommit mem-lock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-boot strict=on \
|
||||||
|
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
|
||||||
|
-blockdev '{"driver":"file","filename":"/tmp/data.img","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
|
||||||
|
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw","file":"libvirt-1-storage"}' \
|
||||||
|
-device virtio-blk-pci,num-queues=4,bus=pci.0,addr=0x3,drive=libvirt-1-format,id=virtio-disk0,bootindex=1 \
|
||||||
|
-audiodev id=audio1,driver=none \
|
||||||
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
||||||
|
-msg timestamp=on
|
@ -8,6 +8,9 @@
|
|||||||
<type arch='i686' machine='pc'>hvm</type>
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
<boot dev='hd'/>
|
<boot dev='hd'/>
|
||||||
</os>
|
</os>
|
||||||
|
<cpu mode='custom' match='exact' check='none'>
|
||||||
|
<model fallback='forbid'>qemu64</model>
|
||||||
|
</cpu>
|
||||||
<clock offset='utc'/>
|
<clock offset='utc'/>
|
||||||
<on_poweroff>destroy</on_poweroff>
|
<on_poweroff>destroy</on_poweroff>
|
||||||
<on_reboot>restart</on_reboot>
|
<on_reboot>restart</on_reboot>
|
||||||
@ -20,7 +23,7 @@
|
|||||||
<target dev='vda' bus='virtio'/>
|
<target dev='vda' bus='virtio'/>
|
||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
||||||
</disk>
|
</disk>
|
||||||
<controller type='usb' index='0'>
|
<controller type='usb' index='0' model='piix3-uhci'>
|
||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
</controller>
|
</controller>
|
||||||
<controller type='ide' index='0'>
|
<controller type='ide' index='0'>
|
||||||
|
@ -1326,8 +1326,7 @@ mymain(void)
|
|||||||
DO_TEST("disk-virtio-s390-zpci", QEMU_CAPS_DEVICE_ZPCI, QEMU_CAPS_CCW);
|
DO_TEST("disk-virtio-s390-zpci", QEMU_CAPS_DEVICE_ZPCI, QEMU_CAPS_CCW);
|
||||||
DO_TEST_PARSE_ERROR("non-x86_64-timer-error", QEMU_CAPS_CCW);
|
DO_TEST_PARSE_ERROR("non-x86_64-timer-error", QEMU_CAPS_CCW);
|
||||||
DO_TEST("disk-order", QEMU_CAPS_VIRTIO_BLK_SCSI);
|
DO_TEST("disk-order", QEMU_CAPS_VIRTIO_BLK_SCSI);
|
||||||
DO_TEST("disk-virtio-queues",
|
DO_TEST_CAPS_LATEST("disk-virtio-queues");
|
||||||
QEMU_CAPS_VIRTIO_BLK_NUM_QUEUES);
|
|
||||||
DO_TEST_NOCAPS("disk-boot-disk");
|
DO_TEST_NOCAPS("disk-boot-disk");
|
||||||
DO_TEST_NOCAPS("disk-boot-cdrom");
|
DO_TEST_NOCAPS("disk-boot-cdrom");
|
||||||
DO_TEST_NOCAPS("floppy-drive-fat");
|
DO_TEST_NOCAPS("floppy-drive-fat");
|
||||||
|
1
tests/qemuxml2xmloutdata/disk-virtio-queues.x86_64-latest.xml
Symbolic link
1
tests/qemuxml2xmloutdata/disk-virtio-queues.x86_64-latest.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/disk-virtio-queues.xml
|
@ -301,7 +301,7 @@ mymain(void)
|
|||||||
DO_TEST("disk-usb-device", QEMU_CAPS_DEVICE_USB_STORAGE);
|
DO_TEST("disk-usb-device", QEMU_CAPS_DEVICE_USB_STORAGE);
|
||||||
DO_TEST_NOCAPS("disk-virtio");
|
DO_TEST_NOCAPS("disk-virtio");
|
||||||
DO_TEST_NOCAPS("floppy-drive-fat");
|
DO_TEST_NOCAPS("floppy-drive-fat");
|
||||||
DO_TEST("disk-virtio-queues", QEMU_CAPS_VIRTIO_BLK_NUM_QUEUES);
|
DO_TEST_CAPS_LATEST("disk-virtio-queues");
|
||||||
DO_TEST_NOCAPS("disk-boot-disk");
|
DO_TEST_NOCAPS("disk-boot-disk");
|
||||||
DO_TEST_NOCAPS("disk-boot-cdrom");
|
DO_TEST_NOCAPS("disk-boot-cdrom");
|
||||||
DO_TEST_NOCAPS("disk-error-policy");
|
DO_TEST_NOCAPS("disk-error-policy");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user