[libvirt] [PATCH 25/35] tests: qemublock: Add basic 'raw' file test

John Ferlan jferlan at redhat.com
Wed May 2 22:39:44 UTC 2018



On 04/25/2018 11:15 AM, Peter Krempa wrote:
> Test the JSON props generator with a very simple 'raw' image with no
> other options. The node-names for the image are 31 bytes long so that we
> validate our node name detector.
> 
> The top level disk image would generate the following '-drive' cmdline:
> 
> -drive file=/var/lib/libvirt/images/i.img,format=raw,if=none,id=drive-dummy
> -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

One would think we'd be able to test that too ;-)

> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>  tests/qemublocktest.c                                 |  2 ++
>  tests/qemublocktestdata/xml2json/file-raw-noopts.json | 12 ++++++++++++
>  tests/qemublocktestdata/xml2json/file-raw-noopts.xml  | 12 ++++++++++++
>  3 files changed, 26 insertions(+)
>  create mode 100644 tests/qemublocktestdata/xml2json/file-raw-noopts.json
>  create mode 100644 tests/qemublocktestdata/xml2json/file-raw-noopts.xml
> 

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

John




More information about the libvir-list mailing list