Blame SOURCES/libvirt-qemublocktest-Re-add-bitmap-validation-for-basic-and-snapshots-cases.patch

a41c76
From 82ab591e0d4183f9d4d12c8d905f2c0c71795f68 Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <82ab591e0d4183f9d4d12c8d905f2c0c71795f68@dist-git>
a41c76
From: Peter Krempa <pkrempa@redhat.com>
a41c76
Date: Tue, 23 Jun 2020 12:23:51 +0200
a41c76
Subject: [PATCH] qemublocktest: Re-add bitmap validation for 'basic' and
a41c76
 'snapshots' cases
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
Now that we've updated both the test data and the validator to new
a41c76
semantics we can start testing again.
a41c76
a41c76
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
a41c76
Reviewed-by: Eric Blake <eblake@redhat.com>
a41c76
(cherry picked from commit 9c007fd418e7fa7320662347662b926835a20c16)
a41c76
https://bugzilla.redhat.com/show_bug.cgi?id=1804593
a41c76
Message-Id: <ebe9e994fde00010d9a7d809a3c27dc21f6a1bbe.1592906423.git.pkrempa@redhat.com>
a41c76
Reviewed-by: Ján Tomko <jtomko@redhat.com>
a41c76
---
a41c76
 tests/qemublocktest.c | 12 ++++++++++++
a41c76
 1 file changed, 12 insertions(+)
a41c76
a41c76
diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
a41c76
index 9d6d871be8..af81f1b77a 100644
a41c76
--- a/tests/qemublocktest.c
a41c76
+++ b/tests/qemublocktest.c
a41c76
@@ -1345,6 +1345,18 @@ mymain(void)
a41c76
 
a41c76
     TEST_BITMAP_VALIDATE("empty", "a", false);
a41c76
 
a41c76
+    TEST_BITMAP_VALIDATE("basic", "a", true);
a41c76
+    TEST_BITMAP_VALIDATE("basic", "b", true);
a41c76
+    TEST_BITMAP_VALIDATE("basic", "c", true);
a41c76
+    TEST_BITMAP_VALIDATE("basic", "d", true);
a41c76
+    TEST_BITMAP_VALIDATE("basic", "current", true);
a41c76
+
a41c76
+    TEST_BITMAP_VALIDATE("snapshots", "a", true);
a41c76
+    TEST_BITMAP_VALIDATE("snapshots", "b", true);
a41c76
+    TEST_BITMAP_VALIDATE("snapshots", "c", true);
a41c76
+    TEST_BITMAP_VALIDATE("snapshots", "d", true);
a41c76
+    TEST_BITMAP_VALIDATE("snapshots", "current", true);
a41c76
+
a41c76
 #define TEST_BITMAP_BLOCKCOPY(testname, shllw, ndf) \
a41c76
     do { \
a41c76
         blockbitmapblockcopydata.name = testname; \
a41c76
-- 
a41c76
2.27.0
a41c76