[PATCH 18/19] tests: qemublock: Add tests for qemuBlockBitmapsHandleBlockcopy

Ján Tomko jtomko at redhat.com
Mon Feb 3 12:56:02 UTC 2020


On Fri, Jan 31, 2020 at 03:31:22PM +0100, Peter Krempa wrote:
>Use some of the existing bitmap data to add tests for
>qemuBlockBitmapsHandleBlockcopy.
>
>As the output depends on the ordering in the hash table we must also
>install the "virdeterministichash" mock preload library.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> tests/qemublocktest.c                         |  71 +++++++++-
> .../bitmapblockcopy/basic-deep-out.json       | 117 +++++++++++++++
> .../bitmapblockcopy/basic-shallow-out.json    | 117 +++++++++++++++
> .../bitmapblockcopy/snapshots-deep-out.json   | 133 ++++++++++++++++++
> .../snapshots-shallow-out.json                |  48 +++++++
> 5 files changed, 485 insertions(+), 1 deletion(-)
> create mode 100644 tests/qemublocktestdata/bitmapblockcopy/basic-deep-out.json
> create mode 100644 tests/qemublocktestdata/bitmapblockcopy/basic-shallow-out.json
> create mode 100644 tests/qemublocktestdata/bitmapblockcopy/snapshots-deep-out.json
> create mode 100644 tests/qemublocktestdata/bitmapblockcopy/snapshots-shallow-out.json
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200203/303ea2ce/attachment-0001.sig>


More information about the libvir-list mailing list