mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +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/libxlxml2domconfigdata" },
|
||||
{ .dir = "tests/qemuhotplugtestdomains" },
|
||||
{ .dir = "examples/xml/test/",
|
||||
.dirRegex = "testdom.*" },
|
||||
};
|
||||
|
||||
static const struct testSchemaEntry schemaDomainCaps[] = {
|
||||
@ -259,6 +261,8 @@ static const struct testSchemaEntry schemaNetwork[] = {
|
||||
{ .dir = "tests/networkxml2xmlin" },
|
||||
{ .dir = "tests/networkxml2xmlout" },
|
||||
{ .dir = "tests/networkxml2confdata" },
|
||||
{ .dir = "examples/xml/test/",
|
||||
.dirRegex = "testnet.*" },
|
||||
};
|
||||
|
||||
static const struct testSchemaEntry schemaNetworkport[] = {
|
||||
@ -267,6 +271,7 @@ static const struct testSchemaEntry schemaNetworkport[] = {
|
||||
|
||||
static const struct testSchemaEntry schemaNodedev[] = {
|
||||
{ .dir = "tests/nodedevschemadata" },
|
||||
{ .file = "examples/xml/test/testdev.xml" },
|
||||
};
|
||||
|
||||
static const struct testSchemaEntry schemaNwfilter[] = {
|
||||
@ -292,6 +297,7 @@ static const struct testSchemaEntry schemaStoragePool[] = {
|
||||
{ .dir = "tests/storagepoolschemadata" },
|
||||
{ .dir = "examples/xml/storage",
|
||||
.dirRegex = "pool-.*" },
|
||||
{ .file = "examples/xml/test/testpool.xml" },
|
||||
};
|
||||
|
||||
static const struct testSchemaEntry schemaStorageVol[] = {
|
||||
@ -300,6 +306,7 @@ static const struct testSchemaEntry schemaStorageVol[] = {
|
||||
{ .dir = "tests/storagevolschemadata" },
|
||||
{ .dir = "examples/xml/storage",
|
||||
.dirRegex = "vol-.*" },
|
||||
{ .file = "examples/xml/test/testvol.xml" },
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user