]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemublock: Add test for bitmap detection
authorPeter Krempa <pkrempa@redhat.com>
Thu, 12 Dec 2019 12:37:01 +0000 (13:37 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 13 Dec 2019 12:22:55 +0000 (13:22 +0100)
commit9aac9d5bdab039a50de2d8c627b3a1f1578ed471
treeabf9ddb50d98749dfa13655fc7849cd57e95831c
parent7a185d2f6e8cac26c305900b14bfde3ce6dae68c
tests: qemublock: Add test for bitmap detection

Test the extraction of data about changed block tracking bitmaps. The
first test case adds a simple scenario of multiple bitmaps in one layer.

The test data will be also later reused for testing the code that
determines which bitmaps to merge for an incremental backup.

The sequence of bitmaps was created by the libvirt checkpoint API with
the following sequence of commands:

virsh checkpoint-create-as VM --name a
virsh checkpoint-create-as VM --name b
virsh checkpoint-create-as VM --name c
virsh checkpoint-create-as VM --name d
virsh checkpoint-create-as VM --name current

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