]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemublock: Add testing of bitmap merging for incremental backups
authorPeter Krempa <pkrempa@redhat.com>
Thu, 12 Dec 2019 15:01:22 +0000 (16:01 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 13 Dec 2019 12:22:55 +0000 (13:22 +0100)
commit7dfd5d8d819db3df680c4888c22d0423ba9f239a
treeeb0a3c732312213a92bedb2fc975252cc2069bbf
parent59999670f2343131e7cf49ace6d8abba7d0f685c
tests: qemublock: Add testing of bitmap merging for incremental backups

Add test code which will crawl a fake internal list of checkpoints and
generate the list of bitmaps for merging to gather the final bitmap for
the backup.

The initial tests cover the basic case of all bitmaps being present in
the top layer of the backing chain.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/qemublocktest.c
tests/qemublocktestdata/backupmerge/basic-deep-out.json [new file with mode: 0644]
tests/qemublocktestdata/backupmerge/basic-flat-out.json [new file with mode: 0644]
tests/qemublocktestdata/backupmerge/basic-intermediate-out.json [new file with mode: 0644]