qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 4/5] iotests: Test qemu-img checksum


From: Hanna Reitz
Subject: Re: [PATCH v2 4/5] iotests: Test qemu-img checksum
Date: Mon, 12 Dec 2022 11:43:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

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 <nsoffer@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 <hreitz@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]