[PATCH 06/21] virschematest: Add coverage for 'examples/xml/storage'

Peter Krempa pkrempa at redhat.com
Thu Oct 8 07:55:20 UTC 2020


Match the correct subsets of the files via the 'dirRegex' property.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 tests/virschematest.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/virschematest.c b/tests/virschematest.c
index 7d7db3e354..29cd5cc6e3 100644
--- a/tests/virschematest.c
+++ b/tests/virschematest.c
@@ -290,12 +290,16 @@ static const struct testSchemaEntry schemaStoragePool[] = {
     { .dir = "tests/storagepoolxml2xmlin" },
     { .dir = "tests/storagepoolxml2xmlout" },
     { .dir = "tests/storagepoolschemadata" },
+    { .dir = "examples/xml/storage",
+      .dirRegex = "pool-.*" },
 };

 static const struct testSchemaEntry schemaStorageVol[] = {
     { .dir = "tests/storagevolxml2xmlin" },
     { .dir = "tests/storagevolxml2xmlout" },
     { .dir = "tests/storagevolschemadata" },
+    { .dir = "examples/xml/storage",
+      .dirRegex = "vol-.*" },
 };


-- 
2.26.2




More information about the libvir-list mailing list