[libvirt] [PATCH 27/35] tests: qemublock: Add tests for basic backing chain formats

John Ferlan jferlan at redhat.com
Wed May 2 22:48:03 UTC 2018



On 04/25/2018 11:15 AM, Peter Krempa wrote:
> Formats supporting backing chain such as qed, vmdk, don't have any other
> parameters than the backing store and 'qcow' has only encryption params
> which will be tested extra. Add this test case so they are covered since
> any further test cases will mainly care about 'qcow2' and 'raw'.
> 
> The top level disk image would generate the following '-drive' cmdline:
> 
> -drive file=/var/lib/libvirt/images/a,format=qed,if=none,id=drive-dummy
> -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>  tests/qemublocktest.c                              |  2 +
>  .../xml2json/file-backing_basic-noopts.json        | 51 ++++++++++++++++++++++
>  .../xml2json/file-backing_basic-noopts.xml         | 46 +++++++++++++++++++
>  3 files changed, 99 insertions(+)
>  create mode 100644 tests/qemublocktestdata/xml2json/file-backing_basic-noopts.json
>  create mode 100644 tests/qemublocktestdata/xml2json/file-backing_basic-noopts.xml
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

John




More information about the libvir-list mailing list