tests: Add some spice gl related virt-xml tests

This commit is contained in:
Cole Robinson
2016-05-20 14:45:24 -04:00
parent 55327c81b7
commit 443b64b64d
3 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<device path="/dev/tzz"/>
</backend>
</tpm>
- <graphics type="vnc" port="-1" autoport="yes"/>
+ <graphics type="spice" autoport="no">
+ <gl enable="yes"/>
+ </graphics>
<sound model="sb16"/>
<sound model="es1370"/>
<sound model="ich6"/>
Domain 'test-for-virtxml' defined successfully.
Changes will take effect after the next domain shutdown.

View File

@@ -0,0 +1,13 @@
<sound model="es1370"/>
<sound model="ich6"/>
<video>
- <model type="vmvga" vram="16384" heads="1" primary="yes"/>
+ <model type="virtio">
+ <acceleration accel3d="yes"/>
+ </model>
</video>
<video>
<model type="cirrus" vram="16384" heads="3"/>
Domain 'test-for-virtxml' defined successfully.
Changes will take effect after the next domain shutdown.

View File

@@ -870,6 +870,8 @@ c.add_invalid("--edit --memory 200,clearxml=yes") # clear isn't wired up for me
c.add_compare("--edit --disk path=/foo/bar,target=fda,bus=fdc,device=floppy,clearxml=yes", "edit-clear-disk")
c.add_compare("--edit --cpu host-passthrough,clearxml=yes", "edit-clear-cpu")
c.add_compare("--edit --clock offset=utc,clearxml=yes", "edit-clear-clock")
c.add_compare("--edit --video clearxml=yes,model=virtio,accel3d=yes", "edit-video-virtio")
c.add_compare("--edit --graphics clearxml=yes,type=spice,gl=on,listen=none", "edit-graphics-spice-gl")
c = vixml.add_category("add/rm devices", "test-for-virtxml --print-diff --define", compare_check="1.2.2") # compare_check=input type=keyboard output
c.add_valid("--add-device --security model=dac") # --add-device works for seclabel