]> xenbits.xensource.com Git - libvirt.git/commit
tests: qemublock: Add basic 'raw' file test
authorPeter Krempa <pkrempa@redhat.com>
Wed, 28 Mar 2018 07:40:03 +0000 (09:40 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 13:51:45 +0000 (15:51 +0200)
commit5ce01b15e11f695ee7410e61bdba305a26263fa6
tree1dac88d2591230290452abc780c1bc45d5dab55f
parent8f60653de30dd146f4a5ec1936f9194faca60f21
tests: qemublock: Add basic 'raw' file test

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

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tests/qemublocktest.c
tests/qemublocktestdata/xml2json/file-raw-noopts.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-raw-noopts.xml [new file with mode: 0644]