Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
7693c039
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看板
提交
7693c039
编写于
5月 26, 2011
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: Add more complex domain scheme test data
上级
dbb7ebe9
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
108 addition
and
1 deletion
+108
-1
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args
...qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args
+15
-0
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.xml
.../qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.xml
+86
-0
tests/qemuxml2argvtest.c
tests/qemuxml2argvtest.c
+5
-0
tests/qemuxml2xmltest.c
tests/qemuxml2xmltest.c
+2
-1
未找到文件。
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args
0 → 100644
浏览文件 @
7693c039
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=spice \
/usr/bin/qemu-kvm -S -M pc-0.13 -cpu core2duo,+lahf_lm,+xtpr,+cx16,+tm2,\
+est,+vmx,+ds_cpl,+pbe,+tm,+ht,+ss,+acpi,+ds \
-m 1024 -smp 2 -nodefaults -monitor unix:/tmp/test-monitor,server,nowait \
-boot dc -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 \
-drive file=/var/lib/libvirt/images/f14.img,if=none,id=drive-virtio-disk0 \
-device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 \
-drive file=/var/lib/libvirt/Fedora-14-x86_64-Live-KDE.iso,if=none,media=cdrom,id=drive-ide0-1-0 \
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 \
-device rtl8139,vlan=0,id=net0,mac=52:54:00:71:70:89,bus=pci.0,addr=0x7 \
-net tap,script=/etc/qemu-ifup,vlan=0,name=hostnet0 -serial pty \
-usb -device usb-tablet,id=input0 \
-spice port=5900,tls-port=0,x509-dir=/etc/pki/libvirt-spice -vga std \
-device AC97,id=sound0,bus=pci.0,addr=0x3 \
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.xml
0 → 100644
浏览文件 @
7693c039
<domain
type=
'qemu'
>
<name>
f14
</name>
<uuid>
553effab-b5e1-2d80-dfe3-da4344826c43
</uuid>
<memory>
1048576
</memory>
<currentMemory>
1048576
</currentMemory>
<vcpu>
2
</vcpu>
<os>
<type
arch=
'x86_64'
machine=
'pc-0.13'
>
hvm
</type>
<boot
dev=
'cdrom'
/>
<boot
dev=
'hd'
/>
<bootmenu
enable=
'yes'
/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu
match=
'exact'
>
<model>
core2duo
</model>
<vendor>
Intel
</vendor>
<topology
sockets=
'1'
cores=
'2'
threads=
'1'
/>
<feature
policy=
'require'
name=
'lahf_lm'
/>
<feature
policy=
'require'
name=
'xtpr'
/>
<feature
policy=
'require'
name=
'cx16'
/>
<feature
policy=
'require'
name=
'tm2'
/>
<feature
policy=
'require'
name=
'est'
/>
<feature
policy=
'require'
name=
'vmx'
/>
<feature
policy=
'require'
name=
'ds_cpl'
/>
<feature
policy=
'require'
name=
'pbe'
/>
<feature
policy=
'require'
name=
'tm'
/>
<feature
policy=
'require'
name=
'ht'
/>
<feature
policy=
'require'
name=
'ss'
/>
<feature
policy=
'require'
name=
'acpi'
/>
<feature
policy=
'require'
name=
'ds'
/>
</cpu>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
restart
</on_crash>
<devices>
<emulator>
/usr/bin/qemu-kvm
</emulator>
<disk
type=
'file'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
file=
'/var/lib/libvirt/images/f14.img'
/>
<target
dev=
'vda'
bus=
'virtio'
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x04'
function=
'0x0'
/>
</disk>
<disk
type=
'file'
device=
'cdrom'
>
<driver
name=
'qemu'
type=
'raw'
/>
<source
file=
'/var/lib/libvirt/Fedora-14-x86_64-Live-KDE.iso'
/>
<target
dev=
'hdc'
bus=
'ide'
/>
<readonly/>
<address
type=
'drive'
controller=
'0'
bus=
'1'
unit=
'0'
/>
</disk>
<controller
type=
'ide'
index=
'0'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x01'
function=
'0x1'
/>
</controller>
<controller
type=
'virtio-serial'
index=
'0'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x06'
function=
'0x0'
/>
</controller>
<interface
type=
'ethernet'
>
<mac
address=
'52:54:00:71:70:89'
/>
<script
path=
'/etc/qemu-ifup'
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x07'
function=
'0x0'
/>
</interface>
<serial
type=
'pty'
>
<target
port=
'0'
/>
</serial>
<console
type=
'pty'
>
<target
type=
'serial'
port=
'0'
/>
</console>
<input
type=
'tablet'
bus=
'usb'
/>
<input
type=
'mouse'
bus=
'ps2'
/>
<graphics
type=
'spice'
port=
'5900'
autoport=
'no'
passwd=
'sercet'
passwdValidTo=
'2011-05-31T16:11:22'
/>
<sound
model=
'ac97'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x03'
function=
'0x0'
/>
</sound>
<video>
<model
type=
'vga'
vram=
'9216'
heads=
'1'
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x02'
function=
'0x0'
/>
</video>
<memballoon
model=
'virtio'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x05'
function=
'0x0'
/>
</memballoon>
</devices>
</domain>
tests/qemuxml2argvtest.c
浏览文件 @
7693c039
...
...
@@ -357,6 +357,11 @@ mymain(void)
DO_TEST
(
"graphics-spice-compression"
,
false
,
QEMU_CAPS_VGA
,
QEMU_CAPS_VGA_QXL
,
QEMU_CAPS_DEVICE
,
QEMU_CAPS_SPICE
);
DO_TEST
(
"graphics-spice-timeout"
,
false
,
QEMU_CAPS_DRIVE
,
QEMU_CAPS_VGA
,
QEMU_CAPS_VGA_QXL
,
QEMU_CAPS_DEVICE
,
QEMU_CAPS_SPICE
,
QEMU_CAPS_DEVICE_QXL_VGA
);
DO_TEST
(
"graphics-spice-qxl-vga"
,
false
,
QEMU_CAPS_VGA
,
QEMU_CAPS_VGA_QXL
,
QEMU_CAPS_DEVICE
,
QEMU_CAPS_SPICE
,
...
...
tests/qemuxml2xmltest.c
浏览文件 @
7693c039
...
...
@@ -35,7 +35,7 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml)
VIR_DOMAIN_XML_INACTIVE
)))
goto
fail
;
if
(
!
(
actual
=
virDomainDefFormat
(
def
,
0
)))
if
(
!
(
actual
=
virDomainDefFormat
(
def
,
VIR_DOMAIN_XML_SECURE
)))
goto
fail
;
...
...
@@ -144,6 +144,7 @@ mymain(void)
DO_TEST
(
"graphics-sdl-fullscreen"
);
DO_TEST
(
"graphics-spice"
);
DO_TEST
(
"graphics-spice-compression"
);
DO_TEST
(
"graphics-spice-timeout"
);
DO_TEST
(
"graphics-spice-qxl-vga"
);
DO_TEST
(
"input-usbmouse"
);
DO_TEST
(
"input-usbtablet"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录