|
|
b971b8 |
From 57911844644ca352154859050e59444aca4e4ca5 Mon Sep 17 00:00:00 2001
|
|
|
b971b8 |
Message-Id: <57911844644ca352154859050e59444aca4e4ca5@dist-git>
|
|
|
b971b8 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
b971b8 |
Date: Tue, 23 Jun 2020 12:23:42 +0200
|
|
|
b971b8 |
Subject: [PATCH] qemublocktest: Add 'empty' case for blockcopy bitmap handling
|
|
|
b971b8 |
test
|
|
|
b971b8 |
MIME-Version: 1.0
|
|
|
b971b8 |
Content-Type: text/plain; charset=UTF-8
|
|
|
b971b8 |
Content-Transfer-Encoding: 8bit
|
|
|
b971b8 |
|
|
|
b971b8 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
b971b8 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
b971b8 |
(cherry picked from commit 264d7cf444633c0d2d20b30b612754943fede5a3)
|
|
|
b971b8 |
https://bugzilla.redhat.com/show_bug.cgi?id=1804593
|
|
|
b971b8 |
Message-Id: <f49b64f231bb06e6d65232aa9bedaf11a5ce4497.1592906423.git.pkrempa@redhat.com>
|
|
|
b971b8 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
b971b8 |
---
|
|
|
b971b8 |
tests/qemublocktest.c | 3 +++
|
|
|
b971b8 |
tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json | 0
|
|
|
b971b8 |
tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json | 0
|
|
|
b971b8 |
3 files changed, 3 insertions(+)
|
|
|
b971b8 |
create mode 100644 tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json
|
|
|
b971b8 |
create mode 100644 tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json
|
|
|
b971b8 |
|
|
|
b971b8 |
diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
|
|
|
b971b8 |
index 5f1c68f6de..2009cad228 100644
|
|
|
b971b8 |
--- a/tests/qemublocktest.c
|
|
|
b971b8 |
+++ b/tests/qemublocktest.c
|
|
|
b971b8 |
@@ -1407,6 +1407,9 @@ mymain(void)
|
|
|
b971b8 |
ret = -1; \
|
|
|
b971b8 |
} while (0)
|
|
|
b971b8 |
|
|
|
b971b8 |
+ TEST_BITMAP_BLOCKCOPY("empty-shallow", true, "empty");
|
|
|
b971b8 |
+ TEST_BITMAP_BLOCKCOPY("empty-deep", false, "empty");
|
|
|
b971b8 |
+
|
|
|
b971b8 |
TEST_BITMAP_BLOCKCOPY("basic-shallow", true, "basic");
|
|
|
b971b8 |
TEST_BITMAP_BLOCKCOPY("basic-deep", false, "basic");
|
|
|
b971b8 |
|
|
|
b971b8 |
diff --git a/tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json b/tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json
|
|
|
b971b8 |
new file mode 100644
|
|
|
b971b8 |
index 0000000000..e69de29bb2
|
|
|
b971b8 |
diff --git a/tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json b/tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json
|
|
|
b971b8 |
new file mode 100644
|
|
|
b971b8 |
index 0000000000..e69de29bb2
|
|
|
b971b8 |
--
|
|
|
b971b8 |
2.27.0
|
|
|
b971b8 |
|