From: Roman Bogorodskiy Date: Sun, 30 Mar 2014 11:54:52 +0000 (+0400) Subject: bhyve: add xml2argv tests for console X-Git-Tag: v1.2.4-rc1~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4463e438e2f877f23d3479273a5f10ebd0b455f5;p=thirdparty%2Flibvirt.git bhyve: add xml2argv tests for console --- diff --git a/tests/bhyvexml2argvdata/bhyvexml2argv-console.args b/tests/bhyvexml2argvdata/bhyvexml2argv-console.args new file mode 100644 index 0000000000..1e09fb410d --- /dev/null +++ b/tests/bhyvexml2argvdata/bhyvexml2argv-console.args @@ -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 diff --git a/tests/bhyvexml2argvdata/bhyvexml2argv-console.xml b/tests/bhyvexml2argvdata/bhyvexml2argv-console.xml new file mode 100644 index 0000000000..64073f081e --- /dev/null +++ b/tests/bhyvexml2argvdata/bhyvexml2argv-console.xml @@ -0,0 +1,23 @@ + + bhyve + df3be7e7-a104-11e3-aeb0-50e5492bd3dc + 219136 + 1 + + hvm + + + + + + + + + + + + + + + + diff --git a/tests/bhyvexml2argvdata/bhyvexml2argv-serial.args b/tests/bhyvexml2argvdata/bhyvexml2argv-serial.args new file mode 100644 index 0000000000..1e09fb410d --- /dev/null +++ b/tests/bhyvexml2argvdata/bhyvexml2argv-serial.args @@ -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 diff --git a/tests/bhyvexml2argvdata/bhyvexml2argv-serial.xml b/tests/bhyvexml2argvdata/bhyvexml2argv-serial.xml new file mode 100644 index 0000000000..bfecbb91ee --- /dev/null +++ b/tests/bhyvexml2argvdata/bhyvexml2argv-serial.xml @@ -0,0 +1,23 @@ + + bhyve + df3be7e7-a104-11e3-aeb0-50e5492bd3dc + 219136 + 1 + + hvm + + + + + + + + + + + + + + + + diff --git a/tests/bhyvexml2argvtest.c b/tests/bhyvexml2argvtest.c index cb33fbfac0..b37fbb0483 100644 --- a/tests/bhyvexml2argvtest.c +++ b/tests/bhyvexml2argvtest.c @@ -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);