mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
bhyve: add xml2argv tests for console
This commit is contained in:
parent
6c91134de4
commit
4463e438e2
4
tests/bhyvexml2argvdata/bhyvexml2argv-console.args
Normal file
4
tests/bhyvexml2argvdata/bhyvexml2argv-console.args
Normal file
@ -0,0 +1,4 @@
|
||||
/usr/sbin/bhyve -c 1 -m 214 -H -P -s 0:0,hostbridge \
|
||||
-s 1:0,virtio-net,faketapdev,mac=52:54:00:00:00:00 \
|
||||
-s 2:0,ahci-hd,/tmp/freebsd.img \
|
||||
-s 31,lpc -l com1,/dev/nmdm0A bhyve
|
23
tests/bhyvexml2argvdata/bhyvexml2argv-console.xml
Normal file
23
tests/bhyvexml2argvdata/bhyvexml2argv-console.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<domain type='bhyve'>
|
||||
<name>bhyve</name>
|
||||
<uuid>df3be7e7-a104-11e3-aeb0-50e5492bd3dc</uuid>
|
||||
<memory>219136</memory>
|
||||
<vcpu>1</vcpu>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file'>
|
||||
<driver name='file' type='raw'/>
|
||||
<source file='/tmp/freebsd.img'/>
|
||||
<target dev='hda' bus='sata'/>
|
||||
</disk>
|
||||
<interface type='bridge'>
|
||||
<model type='virtio'/>
|
||||
<source bridge="virbr0"/>
|
||||
</interface>
|
||||
<console type='nmdm'>
|
||||
<source master='/dev/nmdm0A' slave='/dev/nmdm0B'/>
|
||||
</console>
|
||||
</devices>
|
||||
</domain>
|
4
tests/bhyvexml2argvdata/bhyvexml2argv-serial.args
Normal file
4
tests/bhyvexml2argvdata/bhyvexml2argv-serial.args
Normal file
@ -0,0 +1,4 @@
|
||||
/usr/sbin/bhyve -c 1 -m 214 -H -P -s 0:0,hostbridge \
|
||||
-s 1:0,virtio-net,faketapdev,mac=52:54:00:00:00:00 \
|
||||
-s 2:0,ahci-hd,/tmp/freebsd.img \
|
||||
-s 31,lpc -l com1,/dev/nmdm0A bhyve
|
23
tests/bhyvexml2argvdata/bhyvexml2argv-serial.xml
Normal file
23
tests/bhyvexml2argvdata/bhyvexml2argv-serial.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<domain type='bhyve'>
|
||||
<name>bhyve</name>
|
||||
<uuid>df3be7e7-a104-11e3-aeb0-50e5492bd3dc</uuid>
|
||||
<memory>219136</memory>
|
||||
<vcpu>1</vcpu>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file'>
|
||||
<driver name='file' type='raw'/>
|
||||
<source file='/tmp/freebsd.img'/>
|
||||
<target dev='hda' bus='sata'/>
|
||||
</disk>
|
||||
<interface type='bridge'>
|
||||
<model type='virtio'/>
|
||||
<source bridge="virbr0"/>
|
||||
</interface>
|
||||
<serial type='nmdm'>
|
||||
<source master='/dev/nmdm0A' slave='/dev/nmdm0B'/>
|
||||
</serial>
|
||||
</devices>
|
||||
</domain>
|
@ -132,6 +132,8 @@ mymain(void)
|
||||
DO_TEST("acpiapic");
|
||||
DO_TEST("disk-virtio");
|
||||
DO_TEST("macaddr");
|
||||
DO_TEST("serial");
|
||||
DO_TEST("console");
|
||||
|
||||
virObjectUnref(driver.caps);
|
||||
virObjectUnref(driver.xmlopt);
|
||||
|
Loading…
Reference in New Issue
Block a user