]> xenbits.xensource.com Git - libvirt.git/commit
tests: qemublock: Add test case for detecting bitmaps as we create snapshots
authorPeter Krempa <pkrempa@redhat.com>
Thu, 12 Dec 2019 12:50:55 +0000 (13:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 13 Dec 2019 12:22:55 +0000 (13:22 +0100)
commit0b27b655b1bac480186ce80457113cd5dc34e6a1
tree8dd97dce15f9bfc1a78c9232f0831a4c5014c75d
parent3283445212708d432737650cf967b53e7aa58926
tests: qemublock: Add test case for detecting bitmaps as we create snapshots

Add test data gathered from a run of qemu after creating bitmaps and
snapshots together in various combinations.

The following sequence of commands was used to achieve the
configuration:

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

Note that VM was restarted after these operations to allow renumbering
of the bitmaps in a more human-readable way.

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