]> xenbits.xensource.com Git - libvirt.git/commit
tests: qemublock: Add tests for all other format without special options
authorPeter Krempa <pkrempa@redhat.com>
Wed, 28 Mar 2018 08:11:38 +0000 (10:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 13:53:12 +0000 (15:53 +0200)
commitc4f0e16f5ab37051f8cb673ed13214953e21cf37
tree11d028ebfc63e875480fde2ab6403eae354d26c1
parent5ce01b15e11f695ee7410e61bdba305a26263fa6
tests: qemublock: Add tests for all other format without special options

Similarly to the 'raw' case add tests for bochs, cloop, dmg, ploop, vdi
vhd, and vpc. Covering all supported non-backing formats.

Note that the JSON name for 'ploop' maps to 'parallels' and 'vhd' maps
to 'vhdx'.

Files added here would result in the followint configs:

file-bochs-noopts.xml:
-drive file=/path/to/i.img,format=bochs,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

file-cloop-noopts.xml:
-drive file=/path/to/i.img,format=cloop,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

file-dmg-noopts.xml:
-drive file=/path/to/i.img,format=dmg,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

file-ploop-noopts.xml:
-drive file=/path/to/i.img,format=ploop,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

file-vdi-noopts.xml:
-drive file=/path/to/i.img,format=vdi,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

file-vhd-noopts.xml:
-drive file=/path/to/i.img,format=vhd,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

file-vpc-noopts.xml:
-drive file=/path/to/i.img,format=vpc,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>
15 files changed:
tests/qemublocktest.c
tests/qemublocktestdata/xml2json/file-bochs-noopts.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-bochs-noopts.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-cloop-noopts.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-cloop-noopts.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-dmg-noopts.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-dmg-noopts.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-ploop-noopts.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-ploop-noopts.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-vdi-noopts.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-vdi-noopts.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-vhd-noopts.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-vhd-noopts.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-vpc-noopts.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-vpc-noopts.xml [new file with mode: 0644]