mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
bhyve: test cases for VNC
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
This commit is contained in:
parent
04664327c6
commit
b17bb82838
12
tests/bhyvexml2argvdata/bhyvexml2argv-vnc.args
Normal file
12
tests/bhyvexml2argvdata/bhyvexml2argv-vnc.args
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
/usr/sbin/bhyve \
|
||||||
|
-c 1 \
|
||||||
|
-m 214 \
|
||||||
|
-u \
|
||||||
|
-H \
|
||||||
|
-P \
|
||||||
|
-s 0:0,hostbridge \
|
||||||
|
-l bootrom,/path/to/test.fd \
|
||||||
|
-s 2:0,ahci,hd:/tmp/freebsd.img \
|
||||||
|
-s 3:0,virtio-net,faketapdev,mac=52:54:00:00:00:00 \
|
||||||
|
-s 4:0,fbuf,tcp=127.0.0.1:5904 \
|
||||||
|
-s 1,lpc bhyve
|
1
tests/bhyvexml2argvdata/bhyvexml2argv-vnc.ldargs
Normal file
1
tests/bhyvexml2argvdata/bhyvexml2argv-vnc.ldargs
Normal file
@ -0,0 +1 @@
|
|||||||
|
dummy
|
26
tests/bhyvexml2argvdata/bhyvexml2argv-vnc.xml
Normal file
26
tests/bhyvexml2argvdata/bhyvexml2argv-vnc.xml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<domain type='bhyve'>
|
||||||
|
<name>bhyve</name>
|
||||||
|
<uuid>df3be7e7-a104-11e3-aeb0-50e5492bd3dc</uuid>
|
||||||
|
<memory>219136</memory>
|
||||||
|
<vcpu>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type>hvm</type>
|
||||||
|
<loader readonly="yes" type="pflash">/path/to/test.fd</loader>
|
||||||
|
</os>
|
||||||
|
<devices>
|
||||||
|
<disk type='file'>
|
||||||
|
<driver name='file' type='raw'/>
|
||||||
|
<source file='/tmp/freebsd.img'/>
|
||||||
|
<target dev='hda' bus='sata'/>
|
||||||
|
<address type='drive' controller='0' bus='0' target='2' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<interface type='bridge'>
|
||||||
|
<model type='virtio'/>
|
||||||
|
<source bridge="virbr0"/>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
||||||
|
</interface>
|
||||||
|
<graphics type='vnc' port='5904'>
|
||||||
|
<listen type='address' address='127.0.0.1'/>
|
||||||
|
</graphics>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
@ -166,7 +166,8 @@ mymain(void)
|
|||||||
|
|
||||||
driver.grubcaps = BHYVE_GRUB_CAP_CONSDEV;
|
driver.grubcaps = BHYVE_GRUB_CAP_CONSDEV;
|
||||||
driver.bhyvecaps = BHYVE_CAP_RTC_UTC | BHYVE_CAP_AHCI32SLOT | \
|
driver.bhyvecaps = BHYVE_CAP_RTC_UTC | BHYVE_CAP_AHCI32SLOT | \
|
||||||
BHYVE_CAP_NET_E1000 | BHYVE_CAP_LPC_BOOTROM;
|
BHYVE_CAP_NET_E1000 | BHYVE_CAP_LPC_BOOTROM | \
|
||||||
|
BHYVE_CAP_FBUF;
|
||||||
|
|
||||||
DO_TEST("base");
|
DO_TEST("base");
|
||||||
DO_TEST("acpiapic");
|
DO_TEST("acpiapic");
|
||||||
@ -191,6 +192,7 @@ mymain(void)
|
|||||||
DO_TEST("localtime");
|
DO_TEST("localtime");
|
||||||
DO_TEST("net-e1000");
|
DO_TEST("net-e1000");
|
||||||
DO_TEST("uefi");
|
DO_TEST("uefi");
|
||||||
|
DO_TEST("vnc");
|
||||||
|
|
||||||
/* Address allocation tests */
|
/* Address allocation tests */
|
||||||
DO_TEST("addr-single-sata-disk");
|
DO_TEST("addr-single-sata-disk");
|
||||||
@ -216,6 +218,9 @@ mymain(void)
|
|||||||
driver.bhyvecaps &= ~BHYVE_CAP_LPC_BOOTROM;
|
driver.bhyvecaps &= ~BHYVE_CAP_LPC_BOOTROM;
|
||||||
DO_TEST_FAILURE("uefi");
|
DO_TEST_FAILURE("uefi");
|
||||||
|
|
||||||
|
driver.bhyvecaps &= ~BHYVE_CAP_FBUF;
|
||||||
|
DO_TEST_FAILURE("vnc");
|
||||||
|
|
||||||
virObjectUnref(driver.caps);
|
virObjectUnref(driver.caps);
|
||||||
virObjectUnref(driver.xmlopt);
|
virObjectUnref(driver.xmlopt);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user