On 28.11.22 15:15, Nir Soffer wrote:
Add simple tests computing a checksum for image with all kinds of
extents in raw and qcow2 formats.

The test can be extended later for other formats, format options (e..g
compressed qcow2), protocols (e.g. nbd), and image with a backing chain,
but I'm not sure this is really needed.

To help debugging in case of failures, the output includes a json map of
the test image.

Signed-off-by: Nir Soffer <nsof...@redhat.com>
---
  tests/qemu-iotests/tests/qemu-img-checksum    | 63 +++++++++++++++++++
  .../tests/qemu-img-checksum.out.qcow2         | 11 ++++
  .../tests/qemu-img-checksum.out.raw           | 10 +++
  3 files changed, 84 insertions(+)
  create mode 100755 tests/qemu-iotests/tests/qemu-img-checksum
  create mode 100644 tests/qemu-iotests/tests/qemu-img-checksum.out.qcow2
  create mode 100644 tests/qemu-iotests/tests/qemu-img-checksum.out.raw

Thanks!

Reviewed-by: Hanna Reitz <hre...@redhat.com>


Reply via email to