Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
1b554381
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,发现更多精彩内容 >>
提交
1b554381
编写于
8月 01, 2008
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added test to validate all domain XML files against schema
上级
cf11bb22
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
43 addition
and
2 deletion
+43
-2
ChangeLog
ChangeLog
+7
-0
docs/libvirt.rng
docs/libvirt.rng
+1
-0
tests/Makefile.am
tests/Makefile.am
+3
-2
tests/domainschematest
tests/domainschematest
+32
-0
未找到文件。
ChangeLog
浏览文件 @
1b554381
Fri Aug 1 11:50:00 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* docs/libvirt.rng: Add missing xenfv machine type
* tests/Makefile.am, tests/domainschematest: Added test
case to validate all domain XML files in tests/ directory
against RNG schema
Fri Aug 1 10:38:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
Fri Aug 1 10:38:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
Improve error messages when XML is not well-formed.
Improve error messages when XML is not well-formed.
...
...
docs/libvirt.rng
浏览文件 @
1b554381
...
@@ -141,6 +141,7 @@
...
@@ -141,6 +141,7 @@
</attribute>
</attribute>
<attribute
name=
'machine'
>
<attribute
name=
'machine'
>
<choice>
<choice>
<value>
xenfv
</value>
<value>
pc
</value>
<value>
pc
</value>
<value>
isapc
</value>
<value>
isapc
</value>
</choice>
</choice>
...
...
tests/Makefile.am
浏览文件 @
1b554381
...
@@ -37,13 +37,14 @@ EXTRA_DIST = \
...
@@ -37,13 +37,14 @@ EXTRA_DIST = \
test-lib.sh
\
test-lib.sh
\
xmlrpcserver.py
\
xmlrpcserver.py
\
qemuxml2argvdata
\
qemuxml2argvdata
\
nodeinfodata
nodeinfodata
\
domainschematest
noinst_PROGRAMS
=
xmlrpctest xml2sexprtest sexpr2xmltest virshtest conftest
\
noinst_PROGRAMS
=
xmlrpctest xml2sexprtest sexpr2xmltest virshtest conftest
\
reconnect xmconfigtest xencapstest qemuxml2argvtest qemuxml2xmltest
\
reconnect xmconfigtest xencapstest qemuxml2argvtest qemuxml2xmltest
\
nodeinfotest statstest qparamtest
nodeinfotest statstest qparamtest
test_scripts
=
test_scripts
=
domainschematest
if
WITH_LIBVIRTD
if
WITH_LIBVIRTD
test_scripts
+=
\
test_scripts
+=
\
test_conf.sh
\
test_conf.sh
\
...
...
tests/domainschematest
0 → 100644
浏览文件 @
1b554381
#!/bin/sh
test
-z
"
$srcdir
"
&&
srcdir
=
`
pwd
`
DOMAINDIRS
=
"qemuxml2argvdata sexpr2xmldata xmconfigdata xml2sexprdata"
n
=
0
f
=
0
for
dir
in
$DOMAINDIRS
do
XML
=
`
find
$dir
-name
'*.xml'
`
for
xml
in
$XML
do
n
=
`
expr
$n
+ 1
`
printf
"%4d) %-60s "
$n
$xml
result
=
`
xmllint
--relaxng
$srcdir
/../docs/libvirt.rng
--noout
$xml
2>&1
`
ret
=
$?
if
test
$ret
=
0
;
then
echo
"OK"
else
echo
"FAILED"
echo
$result
f
=
`
expr
$f
+ 1
`
fi
done
done
echo
"Validated
$n
files,
$f
failed"
ret
=
0
test
$f
!=
0
&&
ret
=
255
exit
$ret
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录