render / rpms / libvirt

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