mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemuxml2argvtest: Replace vnc unix socket tests with pinned versions
Replace the 3 unix socket tests with real caps versions to demonstrate that supported qemus no longer use the old syntax. DO_TEST_CAPS_LATEST versions will be added later. This also removes duplicate invocation of 'graphics-vnc-socket'. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3fa36eeb7a
commit
8c5d7c44c1
@ -11,7 +11,7 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-name guest=QEMUGuest1,debug-threads=on \
|
-name guest=QEMUGuest1,debug-threads=on \
|
||||||
-S \
|
-S \
|
||||||
-object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
-object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||||
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
-machine pc-i440fx-2.11,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
-m 214 \
|
-m 214 \
|
||||||
-realtime mlock=off \
|
-realtime mlock=off \
|
||||||
-smp 1,sockets=1,cores=1,threads=1 \
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
@ -24,9 +24,10 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-no-shutdown \
|
-no-shutdown \
|
||||||
-no-acpi \
|
-no-acpi \
|
||||||
-boot strict=on \
|
-boot strict=on \
|
||||||
-usb \
|
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
|
||||||
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
|
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
|
||||||
-device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 \
|
-device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 \
|
||||||
-vnc unix:/tmp/lib/domain--1-QEMUGuest1/vnc.sock \
|
-vnc vnc=unix:/tmp/lib/domain--1-QEMUGuest1/vnc.sock \
|
||||||
-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \
|
-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \
|
||||||
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
||||||
-msg timestamp=on
|
-msg timestamp=on
|
@ -11,7 +11,7 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-name guest=QEMUGuest1,debug-threads=on \
|
-name guest=QEMUGuest1,debug-threads=on \
|
||||||
-S \
|
-S \
|
||||||
-object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
-object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||||
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
-machine pc-i440fx-2.11,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
-m 214 \
|
-m 214 \
|
||||||
-realtime mlock=off \
|
-realtime mlock=off \
|
||||||
-smp 1,sockets=1,cores=1,threads=1 \
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
@ -24,7 +24,8 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-no-shutdown \
|
-no-shutdown \
|
||||||
-no-acpi \
|
-no-acpi \
|
||||||
-boot strict=on \
|
-boot strict=on \
|
||||||
-usb \
|
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
|
||||||
-vnc unix:/tmp/vnc.sock \
|
-vnc vnc=unix:/tmp/lib/domain--1-QEMUGuest1/vnc.sock \
|
||||||
-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \
|
-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \
|
||||||
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
||||||
-msg timestamp=on
|
-msg timestamp=on
|
@ -11,7 +11,7 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-name guest=QEMUGuest1,debug-threads=on \
|
-name guest=QEMUGuest1,debug-threads=on \
|
||||||
-S \
|
-S \
|
||||||
-object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
-object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||||
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
-machine pc-i440fx-2.11,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
-m 214 \
|
-m 214 \
|
||||||
-realtime mlock=off \
|
-realtime mlock=off \
|
||||||
-smp 1,sockets=1,cores=1,threads=1 \
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
@ -24,7 +24,8 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-no-shutdown \
|
-no-shutdown \
|
||||||
-no-acpi \
|
-no-acpi \
|
||||||
-boot strict=on \
|
-boot strict=on \
|
||||||
-usb \
|
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
|
||||||
-vnc unix:/tmp/lib/domain--1-QEMUGuest1/vnc.sock \
|
-vnc vnc=unix:/tmp/vnc.sock \
|
||||||
-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \
|
-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \
|
||||||
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
||||||
-msg timestamp=on
|
-msg timestamp=on
|
@ -1450,8 +1450,11 @@ mymain(void)
|
|||||||
DO_TEST_CAPS_LATEST("graphics-egl-headless");
|
DO_TEST_CAPS_LATEST("graphics-egl-headless");
|
||||||
DO_TEST_CAPS_LATEST("graphics-egl-headless-rendernode");
|
DO_TEST_CAPS_LATEST("graphics-egl-headless-rendernode");
|
||||||
|
|
||||||
|
/* DO_TEST_CAPS_VER("graphics-vnc-*", "2.11.0"); were added as a demonstration
|
||||||
|
* that the old fake-caps tests were already using the new format, thus
|
||||||
|
* they can be removed without replacement when "2.11.0" will be retired */
|
||||||
DO_TEST("graphics-vnc", QEMU_CAPS_VNC, QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
DO_TEST("graphics-vnc", QEMU_CAPS_VNC, QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
||||||
DO_TEST("graphics-vnc-socket", QEMU_CAPS_VNC, QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
DO_TEST_CAPS_VER("graphics-vnc-socket", "2.11.0");
|
||||||
DO_TEST("graphics-vnc-websocket",
|
DO_TEST("graphics-vnc-websocket",
|
||||||
QEMU_CAPS_VNC,
|
QEMU_CAPS_VNC,
|
||||||
QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
||||||
@ -1463,12 +1466,9 @@ mymain(void)
|
|||||||
DO_TEST("graphics-vnc-remove-generated-socket", QEMU_CAPS_VNC,
|
DO_TEST("graphics-vnc-remove-generated-socket", QEMU_CAPS_VNC,
|
||||||
QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
||||||
driver.config->vncAutoUnixSocket = true;
|
driver.config->vncAutoUnixSocket = true;
|
||||||
DO_TEST("graphics-vnc-auto-socket-cfg", QEMU_CAPS_VNC,
|
DO_TEST_CAPS_VER("graphics-vnc-auto-socket-cfg", "2.11.0");
|
||||||
QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
|
||||||
driver.config->vncAutoUnixSocket = false;
|
driver.config->vncAutoUnixSocket = false;
|
||||||
DO_TEST("graphics-vnc-socket", QEMU_CAPS_VNC, QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
DO_TEST_CAPS_VER("graphics-vnc-auto-socket", "2.11.0");
|
||||||
DO_TEST("graphics-vnc-auto-socket", QEMU_CAPS_VNC,
|
|
||||||
QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
|
||||||
DO_TEST("graphics-vnc-none", QEMU_CAPS_VNC, QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
DO_TEST("graphics-vnc-none", QEMU_CAPS_VNC, QEMU_CAPS_DEVICE_CIRRUS_VGA);
|
||||||
DO_TEST("graphics-vnc-socket-new-cmdline", QEMU_CAPS_VNC,
|
DO_TEST("graphics-vnc-socket-new-cmdline", QEMU_CAPS_VNC,
|
||||||
QEMU_CAPS_DEVICE_CIRRUS_VGA, QEMU_CAPS_VNC_MULTI_SERVERS);
|
QEMU_CAPS_DEVICE_CIRRUS_VGA, QEMU_CAPS_VNC_MULTI_SERVERS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user