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:
Daniel P. Berrange 2012-03-26 18:11:09 +01:00
parent c91cff255f
commit 72c507317a
2 changed files with 18 additions and 1 deletions

View File

@ -370,6 +370,18 @@
<define name="osexe">
<element name="os">
<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>
</element>
<interleave>
@ -2103,6 +2115,8 @@
<value>serial</value>
<value>uml</value>
<value>virtio</value>
<value>lxc</value>
<value>openvz</value>
</choice>
</attribute>
</define>

View File

@ -4,7 +4,10 @@
. $srcdir/test-lib.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"
check_schema "$DIRS" "$SCHEMA"