mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add LXC XML files to schema test & fix problems this uncovers
* docs/schemas/domaincommon.rng: Add missing lxc & openvz console target types. Allow arch on LXC <os> type element * tests/domainschematest: Include tests/lxcxml2xmldata/
This commit is contained in:
parent
c91cff255f
commit
72c507317a
@ -370,6 +370,18 @@
|
|||||||
<define name="osexe">
|
<define name="osexe">
|
||||||
<element name="os">
|
<element name="os">
|
||||||
<element name="type">
|
<element name="type">
|
||||||
|
<optional>
|
||||||
|
<attribute name="arch">
|
||||||
|
<choice>
|
||||||
|
<value>i686</value>
|
||||||
|
<value>x86_64</value>
|
||||||
|
<value>ppc</value>
|
||||||
|
<value>ppc64</value>
|
||||||
|
<value>mips</value>
|
||||||
|
<value>sparc</value>
|
||||||
|
</choice>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
<value>exe</value>
|
<value>exe</value>
|
||||||
</element>
|
</element>
|
||||||
<interleave>
|
<interleave>
|
||||||
@ -2103,6 +2115,8 @@
|
|||||||
<value>serial</value>
|
<value>serial</value>
|
||||||
<value>uml</value>
|
<value>uml</value>
|
||||||
<value>virtio</value>
|
<value>virtio</value>
|
||||||
|
<value>lxc</value>
|
||||||
|
<value>openvz</value>
|
||||||
</choice>
|
</choice>
|
||||||
</attribute>
|
</attribute>
|
||||||
</define>
|
</define>
|
||||||
|
@ -4,7 +4,10 @@
|
|||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
. $abs_srcdir/schematestutils.sh
|
. $abs_srcdir/schematestutils.sh
|
||||||
|
|
||||||
DIRS="domainschemadata qemuxml2argvdata sexpr2xmldata xmconfigdata xml2sexprdata qemuxml2xmloutdata"
|
DIRS=""
|
||||||
|
DIRS="$DIRS domainschemadata qemuxml2argvdata sexpr2xmldata"
|
||||||
|
DIRS="$DIRS xmconfigdata xml2sexprdata qemuxml2xmloutdata "
|
||||||
|
DIRS="$DIRS lxcxml2xmldata"
|
||||||
SCHEMA="domain.rng"
|
SCHEMA="domain.rng"
|
||||||
|
|
||||||
check_schema "$DIRS" "$SCHEMA"
|
check_schema "$DIRS" "$SCHEMA"
|
||||||
|
Loading…
Reference in New Issue
Block a user