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:
Peter Krempa 2020-10-06 17:28:44 +02:00
parent 933b4b9980
commit 57f1d5bb3b

View File

@ -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" },
};