]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2argvtest: Pass some additional flags to graphics-spice-agentmouse
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Mar 2012 09:10:53 +0000 (10:10 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Mar 2012 09:14:31 +0000 (10:14 +0100)
One of the recent commits introduced support for
spice agent-mouse. However, test for this feature
require some tweaking: pass QEMU_CAPS_CHARDEV_SPICEVMC |
QEMU_CAPS_NODEFCONFIG and add "-vga cirrus".

tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-agentmouse.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-agentmouse.xml
tests/qemuxml2argvtest.c

index 2c3ef06128f3467a58d988a7f561bca862d9b011..4a7bd2ebc7d860a0e84b8c982eb4819d4a4fea68 100644 (file)
@@ -5,4 +5,4 @@ LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=spice \
 -hda /dev/HostVG/QEMUGuest1 -chardev spicevmc,id=charchannel0,name=vdagent \
 -device virtserialport,bus=virtio-serial1.0,nr=3,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 \
 -usb -spice port=5903,tls-port=5904,addr=127.0.0.1,agent-mouse=off,x509-dir=/etc/pki/libvirt-spice,tls-channel=main \
--device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
+-vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
index facc7acf0435549a944e8f0641bdb21592b88b97..95954fc6d71e2ebcfb05751f7218962e4ed985c8 100644 (file)
@@ -31,6 +31,9 @@
       <target type='virtio' name='com.redhat.spice.0'/>
       <address type='virtio-serial' controller='1' bus='0' port='3'/>
     </channel>
+    <video>
+      <model type='cirrus' vram='9216' heads='1'/>
+    </video>
     <memballoon model='virtio'/>
   </devices>
 </domain>
index 3cfd69c2c1d04437059f62f093f9ec917fbf6967..9001834e8d798f9c1db327ef45935a3a7b6cfad3 100644 (file)
@@ -513,7 +513,9 @@ mymain(void)
             QEMU_CAPS_DEVICE, QEMU_CAPS_SPICE);
     DO_TEST("graphics-spice-agentmouse", false,
             QEMU_CAPS_VGA, QEMU_CAPS_VGA_QXL,
-            QEMU_CAPS_DEVICE, QEMU_CAPS_SPICE);
+            QEMU_CAPS_DEVICE, QEMU_CAPS_SPICE,
+            QEMU_CAPS_CHARDEV_SPICEVMC,
+            QEMU_CAPS_NODEFCONFIG);
     DO_TEST("graphics-spice-compression", false,
             QEMU_CAPS_VGA, QEMU_CAPS_VGA_QXL,
             QEMU_CAPS_DEVICE, QEMU_CAPS_SPICE);