qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

iotests: Test help option for unsupporting formats

This adds test cases to 082 for qemu-img create/convert/amend "-o help"
on formats that do not support creation or amendment, respectively.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180509210023.20283-7-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>

+18
+9
tests/qemu-iotests/082
··· 97 97 run_qemu_img create -f $IMGFMT -o help 98 98 run_qemu_img create -o help 99 99 100 + # Try help option for a format that does not support creation 101 + run_qemu_img create -f bochs -o help 102 + 100 103 echo 101 104 echo === convert: Options specified more than once === 102 105 ··· 151 154 run_qemu_img convert -O $IMGFMT -o help 152 155 run_qemu_img convert -o help 153 156 157 + # Try help option for a format that does not support creation 158 + run_qemu_img convert -O bochs -o help 159 + 154 160 echo 155 161 echo === amend: Options specified more than once === 156 162 ··· 200 206 # Leave out everything that isn't needed 201 207 run_qemu_img amend -f $IMGFMT -o help 202 208 run_qemu_img convert -o help 209 + 210 + # Try help option for a format that does not support amendment 211 + run_qemu_img amend -f bochs -o help 203 212 204 213 # success, all done 205 214 echo "*** done"
+9
tests/qemu-iotests/082.out
··· 249 249 Supported options: 250 250 size Virtual disk size 251 251 252 + Testing: create -f bochs -o help 253 + qemu-img: Format driver 'bochs' does not support image creation 254 + 252 255 === convert: Options specified more than once === 253 256 254 257 Testing: create -f qcow2 TEST_DIR/t.qcow2 128M ··· 501 504 Testing: convert -o help 502 505 Supported options: 503 506 size Virtual disk size 507 + 508 + Testing: convert -O bochs -o help 509 + qemu-img: Format driver 'bochs' does not support image creation 504 510 505 511 === amend: Options specified more than once === 506 512 ··· 763 769 Testing: convert -o help 764 770 Supported options: 765 771 size Virtual disk size 772 + 773 + Testing: amend -f bochs -o help 774 + qemu-img: Format driver 'bochs' does not support option amendment 766 775 *** done