Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
0de1066f
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,发现更多精彩内容 >>
提交
0de1066f
编写于
3月 07, 2017
作者:
C
Cole Robinson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: Add storagevol tests for format=iso
Demonstrates the bug fix in commit
0e5db762
上级
d7dcea6f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
32 addition
and
0 deletion
+32
-0
tests/storagevolxml2argvdata/iso-input.argv
tests/storagevolxml2argvdata/iso-input.argv
+2
-0
tests/storagevolxml2argvdata/iso.argv
tests/storagevolxml2argvdata/iso.argv
+1
-0
tests/storagevolxml2argvtest.c
tests/storagevolxml2argvtest.c
+7
-0
tests/storagevolxml2xmlin/vol-file-iso.xml
tests/storagevolxml2xmlin/vol-file-iso.xml
+10
-0
tests/storagevolxml2xmlout/vol-file-iso.xml
tests/storagevolxml2xmlout/vol-file-iso.xml
+11
-0
tests/storagevolxml2xmltest.c
tests/storagevolxml2xmltest.c
+1
-0
未找到文件。
tests/storagevolxml2argvdata/iso-input.argv
0 → 100644
浏览文件 @
0de1066f
qemu-img convert -f raw -O raw /var/lib/libvirt/images/test.iso \
/var/lib/libvirt/images/sparse.img
tests/storagevolxml2argvdata/iso.argv
0 → 100644
浏览文件 @
0de1066f
qemu-img create -f raw /var/lib/libvirt/images/test.iso 1024K
tests/storagevolxml2argvtest.c
浏览文件 @
0de1066f
...
...
@@ -272,6 +272,13 @@ mymain(void)
"pool-dir"
,
"vol-qcow2-nocapacity-backing"
,
NULL
,
NULL
,
"qcow2-nocapacity"
,
0
,
FMT_OPTIONS
);
DO_TEST
(
"pool-dir"
,
"vol-file-iso"
,
NULL
,
NULL
,
"iso"
,
0
,
FMT_OPTIONS
);
DO_TEST
(
"pool-dir"
,
"vol-file"
,
"pool-dir"
,
"vol-file-iso"
,
"iso-input"
,
0
,
FMT_OPTIONS
);
return
ret
==
0
?
EXIT_SUCCESS
:
EXIT_FAILURE
;
}
...
...
tests/storagevolxml2xmlin/vol-file-iso.xml
0 → 100644
浏览文件 @
0de1066f
<volume>
<name>
test.iso
</name>
<source/>
<capacity
unit=
"MiB"
>
1
</capacity>
<allocation
unit=
"MiB"
>
1
</allocation>
<target>
<format
type=
'iso'
/>
<path>
/var/lib/libvirt/images/test.iso
</path>
</target>
</volume>
tests/storagevolxml2xmlout/vol-file-iso.xml
0 → 100644
浏览文件 @
0de1066f
<volume
type=
'file'
>
<name>
test.iso
</name>
<source>
</source>
<capacity
unit=
'bytes'
>
1048576
</capacity>
<allocation
unit=
'bytes'
>
1048576
</allocation>
<target>
<path>
/var/lib/libvirt/images/test.iso
</path>
<format
type=
'iso'
/>
</target>
</volume>
tests/storagevolxml2xmltest.c
浏览文件 @
0de1066f
...
...
@@ -100,6 +100,7 @@ mymain(void)
DO_TEST
(
"pool-dir"
,
"vol-file"
);
DO_TEST
(
"pool-dir"
,
"vol-file-naming"
);
DO_TEST
(
"pool-dir"
,
"vol-file-backing"
);
DO_TEST
(
"pool-dir"
,
"vol-file-iso"
);
DO_TEST
(
"pool-dir"
,
"vol-qcow2"
);
DO_TEST
(
"pool-dir"
,
"vol-qcow2-1.1"
);
DO_TEST
(
"pool-dir"
,
"vol-qcow2-lazy"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录