]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virschematest: Add coverage for 'examples/xml/storage'
authorPeter Krempa <pkrempa@redhat.com>
Tue, 6 Oct 2020 15:28:44 +0000 (17:28 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 20 Oct 2020 07:05:10 +0000 (09:05 +0200)
Match the correct subsets of the files via the 'dirRegex' property.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virschematest.c

index 7d7db3e3546be0b40468294063bd4633be4d95fc..29cd5cc6e32ce6c03bc41ab118c90ee988fbd87b 100644 (file)
@@ -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-.*" },
 };