iotests: add test for QCOW2 header dump
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Thu, 6 Aug 2020 19:35:47 +0000 (22:35 +0300)
committerEric Blake <eblake@redhat.com>
Fri, 21 Aug 2020 13:56:07 +0000 (08:56 -0500)
commitbf654b37e19eb43abca5b5b2a6eac21732b368ca
tree7ae6eee004c606800191c947d144b0bcdcd67e03
parent7fd51e68c34fcefdb4d6fd646ed3346f780f89f4
iotests: add test for QCOW2 header dump

The simple script creates a QCOW2 image and fills it with some data.
Two bitmaps are created as well. Then the script reads the image header
with extensions from the disk by running the script qcow2.py and dumps
the information to the output. Other entities, such as snapshots, may
be added to the test later.

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <1596742557-320265-2-git-send-email-andrey.shinkevich@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/303 [new file with mode: 0755]
tests/qemu-iotests/303.out [new file with mode: 0644]
tests/qemu-iotests/group