Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
9f990672
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看板
提交
9f990672
编写于
11月 21, 2013
作者:
P
Peter Krempa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qemuxml2argv: Add test to verify correct usage of disk type="volume"
Tweak the existing file to test command line generator too.
上级
bae124e4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
1 deletion
+11
-1
tests/qemuxml2argvdata/qemuxml2argv-disk-source-pool.args
tests/qemuxml2argvdata/qemuxml2argv-disk-source-pool.args
+8
-0
tests/qemuxml2argvdata/qemuxml2argv-disk-source-pool.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-source-pool.xml
+1
-1
tests/qemuxml2argvtest.c
tests/qemuxml2argvtest.c
+2
-0
未找到文件。
tests/qemuxml2argvdata/qemuxml2argv-disk-source-pool.args
0 → 100644
浏览文件 @
9f990672
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults \
-monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -usb -drive \
file=/some/block/device/cdrom,if=none,media=cdrom,id=drive-ide0-0-1 -device \
ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive \
file=/tmp/idedisk.img,if=none,id=drive-ide0-0-2 -device \
ide-drive,bus=ide.0,unit=2,drive=drive-ide0-0-2,id=ide0-0-2 -device \
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
tests/qemuxml2argvdata/qemuxml2argv-disk-source-pool.xml
浏览文件 @
9f990672
...
...
@@ -15,7 +15,7 @@
<devices>
<emulator>
/usr/bin/qemu
</emulator>
<disk
type=
'volume'
device=
'cdrom'
>
<source
pool=
'
blk-pool0'
volume=
'blk-pool0-vol0'
startupPolicy=
'optional
'
>
<source
pool=
'
pool-disk'
volume=
'block+cdrom
'
>
<seclabel
model=
'selinux'
relabel=
'yes'
>
<label>
system_u:system_r:public_content_t:s0
</label>
</seclabel>
...
...
tests/qemuxml2argvtest.c
浏览文件 @
9f990672
...
...
@@ -791,6 +791,8 @@ mymain(void)
DO_TEST
(
"disk-aio"
,
QEMU_CAPS_DRIVE
,
QEMU_CAPS_DRIVE_AIO
,
QEMU_CAPS_DRIVE_CACHE_V2
,
QEMU_CAPS_DRIVE_FORMAT
);
DO_TEST
(
"disk-source-pool"
,
QEMU_CAPS_DRIVE
,
QEMU_CAPS_DEVICE
,
QEMU_CAPS_NODEFCONFIG
);
DO_TEST
(
"disk-ioeventfd"
,
QEMU_CAPS_DRIVE
,
QEMU_CAPS_VIRTIO_IOEVENTFD
,
QEMU_CAPS_VIRTIO_TX_ALG
,
QEMU_CAPS_DEVICE
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录