mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
tests: qemublock: Add tests for cross-snapshot incremental backups
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
450888d96b
commit
9851a0f390
@ -939,6 +939,10 @@ mymain(void)
|
||||
TEST_BACKUP_BITMAP_CALCULATE("basic-intermediate", bitmapSourceChain, "d", "basic");
|
||||
TEST_BACKUP_BITMAP_CALCULATE("basic-deep", bitmapSourceChain, "a", "basic");
|
||||
|
||||
TEST_BACKUP_BITMAP_CALCULATE("snapshot-flat", bitmapSourceChain, "current", "snapshots");
|
||||
TEST_BACKUP_BITMAP_CALCULATE("snapshot-intermediate", bitmapSourceChain, "d", "snapshots");
|
||||
TEST_BACKUP_BITMAP_CALCULATE("snapshot-deep", bitmapSourceChain, "a", "snapshots");
|
||||
|
||||
cleanup:
|
||||
virHashFree(diskxmljsondata.schema);
|
||||
qemuTestDriverFree(&driver);
|
||||
|
38
tests/qemublocktestdata/backupmerge/snapshot-deep-out.json
Normal file
38
tests/qemublocktestdata/backupmerge/snapshot-deep-out.json
Normal file
@ -0,0 +1,38 @@
|
||||
[
|
||||
{
|
||||
"node": "libvirt-1-format",
|
||||
"name": "current"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-1-format",
|
||||
"name": "d"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-2-format",
|
||||
"name": "d"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-2-format",
|
||||
"name": "c"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-3-format",
|
||||
"name": "c"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-3-format",
|
||||
"name": "b"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-3-format",
|
||||
"name": "a"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-4-format",
|
||||
"name": "a"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-5-format",
|
||||
"name": "a"
|
||||
}
|
||||
]
|
@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"node": "libvirt-1-format",
|
||||
"name": "current"
|
||||
}
|
||||
]
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"node": "libvirt-1-format",
|
||||
"name": "current"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-1-format",
|
||||
"name": "d"
|
||||
},
|
||||
{
|
||||
"node": "libvirt-2-format",
|
||||
"name": "d"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user