Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
c4111209
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看板
提交
c4111209
编写于
5月 17, 2016
作者:
C
Chunyan Liu
提交者:
Jim Fehlig
5月 17, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xlconfigtest: add test case for type=vif in xl format
Signed-off-by:
N
Chunyan Liu
<
cyliu@suse.com
>
上级
03f8bba2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
71 addition
and
0 deletion
+71
-0
tests/xlconfigdata/test-vif-typename.cfg
tests/xlconfigdata/test-vif-typename.cfg
+25
-0
tests/xlconfigdata/test-vif-typename.xml
tests/xlconfigdata/test-vif-typename.xml
+45
-0
tests/xlconfigtest.c
tests/xlconfigtest.c
+1
-0
未找到文件。
tests/xlconfigdata/test-vif-typename.cfg
0 → 100644
浏览文件 @
c4111209
name = "XenGuest2"
uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
maxmem = 579
memory = 394
vcpus = 1
pae = 1
acpi = 1
apic = 1
viridian = 0
rtc_timeoffset = 0
localtime = 0
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib/xen/bin/qemu-system-i386"
sdl = 0
vnc = 1
vncunused = 1
vnclisten = "127.0.0.1"
vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,type=vif" ]
parallel = "none"
serial = "none"
builder = "hvm"
boot = "d"
disk = [ "format=raw,vdev=hda,access=rw,backendtype=phy,target=/dev/HostVG/XenGuest2" ]
tests/xlconfigdata/test-vif-typename.xml
0 → 100644
浏览文件 @
c4111209
<domain
type=
'xen'
>
<name>
XenGuest2
</name>
<uuid>
c7a5fdb2-cdaf-9455-926a-d65c16db1809
</uuid>
<memory
unit=
'KiB'
>
592896
</memory>
<currentMemory
unit=
'KiB'
>
403456
</currentMemory>
<vcpu
placement=
'static'
>
1
</vcpu>
<os>
<type
arch=
'x86_64'
machine=
'xenfv'
>
hvm
</type>
<loader
type=
'rom'
>
/usr/lib/xen/boot/hvmloader
</loader>
<boot
dev=
'cdrom'
/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock
offset=
'variable'
adjustment=
'0'
basis=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
restart
</on_crash>
<devices>
<emulator>
/usr/lib/xen/bin/qemu-system-i386
</emulator>
<disk
type=
'block'
device=
'disk'
>
<driver
name=
'phy'
type=
'raw'
/>
<source
dev=
'/dev/HostVG/XenGuest2'
/>
<target
dev=
'hda'
bus=
'ide'
/>
<address
type=
'drive'
controller=
'0'
bus=
'0'
target=
'0'
unit=
'0'
/>
</disk>
<controller
type=
'ide'
index=
'0'
/>
<interface
type=
'bridge'
>
<mac
address=
'00:16:3e:66:92:9c'
/>
<source
bridge=
'xenbr1'
/>
<script
path=
'vif-bridge'
/>
<model
type=
'netfront'
/>
</interface>
<input
type=
'mouse'
bus=
'ps2'
/>
<input
type=
'keyboard'
bus=
'ps2'
/>
<graphics
type=
'vnc'
port=
'-1'
autoport=
'yes'
listen=
'127.0.0.1'
>
<listen
type=
'address'
address=
'127.0.0.1'
/>
</graphics>
<video>
<model
type=
'cirrus'
vram=
'8192'
heads=
'1'
primary=
'yes'
/>
</video>
</devices>
</domain>
tests/xlconfigtest.c
浏览文件 @
c4111209
...
@@ -228,6 +228,7 @@ mymain(void)
...
@@ -228,6 +228,7 @@ mymain(void)
DO_TEST_FORMAT
(
"fullvirt-direct-kernel-boot-extra"
);
DO_TEST_FORMAT
(
"fullvirt-direct-kernel-boot-extra"
);
DO_TEST_FORMAT
(
"fullvirt-direct-kernel-boot-bogus-extra"
);
DO_TEST_FORMAT
(
"fullvirt-direct-kernel-boot-bogus-extra"
);
#endif
#endif
DO_TEST
(
"vif-typename"
);
virObjectUnref
(
caps
);
virObjectUnref
(
caps
);
virObjectUnref
(
xmlopt
);
virObjectUnref
(
xmlopt
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录