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

50 lines
1.8 KiB
Diff
Raw Normal View History

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