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