Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
tests/qemublocktest.c | 1 +
.../imagecreate/qcow2-backing-qcow2luks.json | 15 +++++++++++++++
.../imagecreate/qcow2-backing-qcow2luks.xml | 1 +
3 files changed, 17 insertions(+)
create mode 100644 tests/qemublocktestdata/imagecreate/qcow2-backing-qcow2luks.json
create mode 120000 tests/qemublocktestdata/imagecreate/qcow2-backing-qcow2luks.xml
diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
index 308668f2b8..4af8862c5b 100644
--- a/tests/qemublocktest.c
+++ b/tests/qemublocktest.c
@@ -1216,6 +1216,7 @@ mymain(void)
TEST_IMAGE_CREATE("qcow2-backing-raw", "raw");
TEST_IMAGE_CREATE("qcow2-backing-raw-nbd", "raw-nbd");
TEST_IMAGE_CREATE("qcow2-backing-luks", "luks-noopts");
+ TEST_IMAGE_CREATE("qcow2-backing-qcow2luks",
"qcow2-luks-noopts");
TEST_IMAGE_CREATE("qcow2-luks-encopts-backing", "qcow2");
TEST_IMAGE_CREATE("qcow2-backing-raw-slice", "raw-slice");
TEST_IMAGE_CREATE("qcow2-backing-qcow2-slice", "qcow2-slice");
diff --git a/tests/qemublocktestdata/imagecreate/qcow2-backing-qcow2luks.json
b/tests/qemublocktestdata/imagecreate/qcow2-backing-qcow2luks.json
new file mode 100644
index 0000000000..1dac76f6be
--- /dev/null
+++ b/tests/qemublocktestdata/imagecreate/qcow2-backing-qcow2luks.json
@@ -0,0 +1,15 @@
+protocol:
+{
+ "driver": "file",
+ "filename": "/var/lib/libvirt/images/i.qcow2",
+ "size": 4294967296
+}
+
+format:
+{
+ "driver": "qcow2",
+ "file": "0123456789ABCDEF0123456789ABCDE",
+ "size": 8589934590,
+ "backing-file": "/var/lib/libvirt/images/i.qcow2",
+ "backing-fmt": "qcow2"
+}
diff --git a/tests/qemublocktestdata/imagecreate/qcow2-backing-qcow2luks.xml
b/tests/qemublocktestdata/imagecreate/qcow2-backing-qcow2luks.xml
new file mode 120000
index 0000000000..5769c2c866
--- /dev/null
+++ b/tests/qemublocktestdata/imagecreate/qcow2-backing-qcow2luks.xml
@@ -0,0 +1 @@
+qcow2.xml
\ No newline at end of file
--
2.31.1