mirror of https://github.com/xemu-project/xemu.git
Add testcase for scsi-hd devices without drive property
Lets add a test for scsi devices without a drive. This was broken by a recent block patch, thus indicating that we need a testcase. Suggested-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
df1d4c341a
commit
354483e507
|
@ -98,6 +98,12 @@ run_qemu -drive file="$TEST_IMG",driver=foo
|
||||||
run_qemu -drive file="$TEST_IMG",driver=raw,format=qcow2
|
run_qemu -drive file="$TEST_IMG",driver=raw,format=qcow2
|
||||||
run_qemu -drive file="$TEST_IMG",driver=qcow2,format=qcow2
|
run_qemu -drive file="$TEST_IMG",driver=qcow2,format=qcow2
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo === Device without drive ===
|
||||||
|
echo
|
||||||
|
|
||||||
|
run_qemu -device virtio-scsi-pci -device scsi-hd
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo === Overriding backing file ===
|
echo === Overriding backing file ===
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -47,6 +47,14 @@ Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
|
||||||
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
|
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
|
||||||
|
|
||||||
|
|
||||||
|
=== Device without drive ===
|
||||||
|
|
||||||
|
Testing: -device virtio-scsi-pci -device scsi-hd
|
||||||
|
QEMU X.Y.Z monitor - type 'help' for more information
|
||||||
|
(qemu) QEMU_PROG: -device scsi-hd: drive property not set
|
||||||
|
QEMU_PROG: -device scsi-hd: Device 'scsi-hd' could not be initialized
|
||||||
|
|
||||||
|
|
||||||
=== Overriding backing file ===
|
=== Overriding backing file ===
|
||||||
|
|
||||||
Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig -nodefaults
|
Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig -nodefaults
|
||||||
|
|
Loading…
Reference in New Issue