mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
virstoragetest: Unify testing of QCOW2 images with absolute backing
We have 3 test cases for this currently: 1) "qcow2->raw" 1.1) VIR_STORAGE_FILE_QCOW2 as top level format 1.2) VIR_STORAGE_FILE_AUTO as top level format 2) "wrap->qcow2->raw" whith just VIR_STORAGE_FILE_QCOW2 This patch adds also testing of VIR_STORAGE_FILE_AUTO for case 2) and removes both 1) subcases as they are being actually tested as part of 2). Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
8f36cf91ac
commit
dc80ca18e0
@ -512,12 +512,9 @@ mymain(void)
|
|||||||
if (virCommandRun(cmd, NULL) < 0)
|
if (virCommandRun(cmd, NULL) < 0)
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
|
||||||
/* Qcow2 file with raw as absolute backing, backing format provided */
|
/* qcow2 chain with absolute backing formatted with a real qemu-img */
|
||||||
TEST_CHAIN("qcow2-qcow2_raw-raw", absqcow2, VIR_STORAGE_FILE_QCOW2, EXP_PASS);
|
|
||||||
TEST_CHAIN("qcow2-auto_raw-raw", absqcow2, VIR_STORAGE_FILE_AUTO, EXP_PASS);
|
|
||||||
|
|
||||||
/* qcow2 with a longer backing chain */
|
|
||||||
TEST_CHAIN("qcow2-qcow2_qcow2-qcow2_raw-raw", abswrap, VIR_STORAGE_FILE_QCOW2, EXP_PASS);
|
TEST_CHAIN("qcow2-qcow2_qcow2-qcow2_raw-raw", abswrap, VIR_STORAGE_FILE_QCOW2, EXP_PASS);
|
||||||
|
TEST_CHAIN("qcow2-auto_qcow2-qcow2_raw-raw", abswrap, VIR_STORAGE_FILE_AUTO, EXP_PASS);
|
||||||
|
|
||||||
/* Qcow2 file with missing backing file but specified type */
|
/* Qcow2 file with missing backing file but specified type */
|
||||||
TEST_CHAIN("qcow2-qcow2_missing",
|
TEST_CHAIN("qcow2-qcow2_missing",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
path:ABS_BUILDDIR/virstoragedata/qcow2
|
path:ABS_BUILDDIR/virstoragedata/wrap
|
||||||
backingStoreRaw: <null>
|
backingStoreRaw: <null>
|
||||||
capacity: 0
|
capacity: 0
|
||||||
encryption: 0
|
encryption: 0
|
@ -1,19 +0,0 @@
|
|||||||
path:ABS_BUILDDIR/virstoragedata/qcow2
|
|
||||||
backingStoreRaw: ABS_BUILDDIR/virstoragedata/raw
|
|
||||||
capacity: 1024
|
|
||||||
encryption: 0
|
|
||||||
relPath:<null>
|
|
||||||
type:1
|
|
||||||
format:14
|
|
||||||
protocol:none
|
|
||||||
hostname:<null>
|
|
||||||
|
|
||||||
path:ABS_BUILDDIR/virstoragedata/raw
|
|
||||||
backingStoreRaw: <null>
|
|
||||||
capacity: 0
|
|
||||||
encryption: 0
|
|
||||||
relPath:<null>
|
|
||||||
type:1
|
|
||||||
format:1
|
|
||||||
protocol:none
|
|
||||||
hostname:<null>
|
|
Loading…
Reference in New Issue
Block a user