mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +00:00
virschematest: Add coverage for 'examples/xml/test'
Add all appropriate file from our test driver example XML directory. Note that the two 'node.*' files are actually custom for the test driver to load full state. We don't have a schema for them. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
933b4b9980
commit
57f1d5bb3b
@ -229,6 +229,8 @@ static const struct testSchemaEntry schemaDomain[] = {
|
|||||||
{ .dir = "tests/xlconfigdata" },
|
{ .dir = "tests/xlconfigdata" },
|
||||||
{ .dir = "tests/libxlxml2domconfigdata" },
|
{ .dir = "tests/libxlxml2domconfigdata" },
|
||||||
{ .dir = "tests/qemuhotplugtestdomains" },
|
{ .dir = "tests/qemuhotplugtestdomains" },
|
||||||
|
{ .dir = "examples/xml/test/",
|
||||||
|
.dirRegex = "testdom.*" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct testSchemaEntry schemaDomainCaps[] = {
|
static const struct testSchemaEntry schemaDomainCaps[] = {
|
||||||
@ -259,6 +261,8 @@ static const struct testSchemaEntry schemaNetwork[] = {
|
|||||||
{ .dir = "tests/networkxml2xmlin" },
|
{ .dir = "tests/networkxml2xmlin" },
|
||||||
{ .dir = "tests/networkxml2xmlout" },
|
{ .dir = "tests/networkxml2xmlout" },
|
||||||
{ .dir = "tests/networkxml2confdata" },
|
{ .dir = "tests/networkxml2confdata" },
|
||||||
|
{ .dir = "examples/xml/test/",
|
||||||
|
.dirRegex = "testnet.*" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct testSchemaEntry schemaNetworkport[] = {
|
static const struct testSchemaEntry schemaNetworkport[] = {
|
||||||
@ -267,6 +271,7 @@ static const struct testSchemaEntry schemaNetworkport[] = {
|
|||||||
|
|
||||||
static const struct testSchemaEntry schemaNodedev[] = {
|
static const struct testSchemaEntry schemaNodedev[] = {
|
||||||
{ .dir = "tests/nodedevschemadata" },
|
{ .dir = "tests/nodedevschemadata" },
|
||||||
|
{ .file = "examples/xml/test/testdev.xml" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct testSchemaEntry schemaNwfilter[] = {
|
static const struct testSchemaEntry schemaNwfilter[] = {
|
||||||
@ -292,6 +297,7 @@ static const struct testSchemaEntry schemaStoragePool[] = {
|
|||||||
{ .dir = "tests/storagepoolschemadata" },
|
{ .dir = "tests/storagepoolschemadata" },
|
||||||
{ .dir = "examples/xml/storage",
|
{ .dir = "examples/xml/storage",
|
||||||
.dirRegex = "pool-.*" },
|
.dirRegex = "pool-.*" },
|
||||||
|
{ .file = "examples/xml/test/testpool.xml" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct testSchemaEntry schemaStorageVol[] = {
|
static const struct testSchemaEntry schemaStorageVol[] = {
|
||||||
@ -300,6 +306,7 @@ static const struct testSchemaEntry schemaStorageVol[] = {
|
|||||||
{ .dir = "tests/storagevolschemadata" },
|
{ .dir = "tests/storagevolschemadata" },
|
||||||
{ .dir = "examples/xml/storage",
|
{ .dir = "examples/xml/storage",
|
||||||
.dirRegex = "vol-.*" },
|
.dirRegex = "vol-.*" },
|
||||||
|
{ .file = "examples/xml/test/testvol.xml" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user