Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
a52b56b3
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a52b56b3
编写于
11月 08, 2014
作者:
C
Conrad Meyer
提交者:
Michal Privoznik
11月 12, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bhyvexml2argv: Add test for grub console support
上级
7c7c8b0b
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
73 addition
and
0 deletion
+73
-0
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.args
...s/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.args
+4
-0
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.devmap
...bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.devmap
+1
-0
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.ldargs
...bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.ldargs
+2
-0
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.xml
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.xml
+26
-0
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.args
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.args
+4
-0
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.devmap
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.devmap
+1
-0
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.ldargs
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.ldargs
+2
-0
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.xml
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.xml
+26
-0
tests/bhyvexml2argvtest.c
tests/bhyvexml2argvtest.c
+7
-0
未找到文件。
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.args
0 → 100644
浏览文件 @
a52b56b3
/usr/sbin/bhyve -c 1 -m 214 -H -P -s 0:0,hostbridge \
-s 3:0,virtio-net,faketapdev,mac=52:54:00:00:00:00 \
-s 2:0,ahci-hd,/tmp/freebsd.img \
-s 1,lpc -l com1,/dev/nmdm0A bhyve
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.devmap
0 → 100644
浏览文件 @
a52b56b3
(hd0) /tmp/freebsd.img
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.ldargs
0 → 100644
浏览文件 @
a52b56b3
/usr/local/sbin/grub-bhyve --root hd0,msdos1 --device-map '<device.map>' \
--memory 214 bhyve
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub-nocons.xml
0 → 100644
浏览文件 @
a52b56b3
<domain
type=
'bhyve'
>
<name>
bhyve
</name>
<uuid>
df3be7e7-a104-11e3-aeb0-50e5492bd3dc
</uuid>
<memory>
219136
</memory>
<vcpu>
1
</vcpu>
<bootloader>
/usr/local/sbin/grub-bhyve
</bootloader>
<os>
<type>
hvm
</type>
</os>
<devices>
<disk
type=
'file'
>
<driver
name=
'file'
type=
'raw'
/>
<source
file=
'/tmp/freebsd.img'
/>
<target
dev=
'hda'
bus=
'sata'
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x02'
function=
'0x0'
/>
</disk>
<interface
type=
'bridge'
>
<model
type=
'virtio'
/>
<source
bridge=
"virbr0"
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x03'
function=
'0x0'
/>
</interface>
<serial
type=
'nmdm'
>
<source
master=
'/dev/nmdm0A'
slave=
'/dev/nmdm0B'
/>
</serial>
</devices>
</domain>
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.args
0 → 100644
浏览文件 @
a52b56b3
/usr/sbin/bhyve -c 1 -m 214 -H -P -s 0:0,hostbridge \
-s 3:0,virtio-net,faketapdev,mac=52:54:00:00:00:00 \
-s 2:0,ahci-hd,/tmp/freebsd.img \
-s 1,lpc -l com1,/dev/nmdm0A bhyve
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.devmap
0 → 100644
浏览文件 @
a52b56b3
(hd0) /tmp/freebsd.img
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.ldargs
0 → 100644
浏览文件 @
a52b56b3
/usr/local/sbin/grub-bhyve --root hd0,msdos1 --device-map '<device.map>' \
--memory 214 --cons-dev /dev/nmdm0A bhyve
tests/bhyvexml2argvdata/bhyvexml2argv-serial-grub.xml
0 → 100644
浏览文件 @
a52b56b3
<domain
type=
'bhyve'
>
<name>
bhyve
</name>
<uuid>
df3be7e7-a104-11e3-aeb0-50e5492bd3dc
</uuid>
<memory>
219136
</memory>
<vcpu>
1
</vcpu>
<bootloader>
/usr/local/sbin/grub-bhyve
</bootloader>
<os>
<type>
hvm
</type>
</os>
<devices>
<disk
type=
'file'
>
<driver
name=
'file'
type=
'raw'
/>
<source
file=
'/tmp/freebsd.img'
/>
<target
dev=
'hda'
bus=
'sata'
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x02'
function=
'0x0'
/>
</disk>
<interface
type=
'bridge'
>
<model
type=
'virtio'
/>
<source
bridge=
"virbr0"
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x03'
function=
'0x0'
/>
</interface>
<serial
type=
'nmdm'
>
<source
master=
'/dev/nmdm0A'
slave=
'/dev/nmdm0B'
/>
</serial>
</devices>
</domain>
tests/bhyvexml2argvtest.c
浏览文件 @
a52b56b3
...
...
@@ -37,6 +37,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
goto
out
;
vm
.
def
=
vmdef
;
conn
->
privateData
=
&
driver
;
if
(
!
(
cmd
=
virBhyveProcessBuildBhyveCmd
(
conn
,
vmdef
,
false
)))
goto
out
;
...
...
@@ -152,6 +153,7 @@ mymain(void)
ret = -1; \
} while (0)
driver
.
grubcaps
=
BHYVE_GRUB_CAP_CONSDEV
;
DO_TEST
(
"base"
);
DO_TEST
(
"acpiapic"
);
...
...
@@ -164,6 +166,11 @@ mymain(void)
DO_TEST
(
"bhyveload-explicitargs"
);
DO_TEST
(
"custom-loader"
);
DO_TEST
(
"disk-cdrom-grub"
);
DO_TEST
(
"serial-grub"
);
driver
.
grubcaps
=
0
;
DO_TEST
(
"serial-grub-nocons"
);
virObjectUnref
(
driver
.
caps
);
virObjectUnref
(
driver
.
xmlopt
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录