1QA output created by 051 2Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 3 4=== Unknown option === 5 6Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt= 7QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt' 8QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=: could not open disk image TEST_DIR/t.qcow2: Invalid argument 9 10Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on 11QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt' 12QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on: could not open disk image TEST_DIR/t.qcow2: Invalid argument 13 14Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234 15QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt' 16QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234: could not open disk image TEST_DIR/t.qcow2: Invalid argument 17 18Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo 19QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt' 20QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: could not open disk image TEST_DIR/t.qcow2: Invalid argument 21 22 23=== Enable and disable lazy refcounting on the command line, plus some invalid values === 24 25Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on 26q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 27 28Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=off 29q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 30 31Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts= 32QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=: Parameter 'lazy_refcounts' expects 'on' or 'off' 33QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=: could not open disk image TEST_DIR/t.qcow2: Invalid argument 34 35Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=42 36QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=42: Parameter 'lazy_refcounts' expects 'on' or 'off' 37QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=42: could not open disk image TEST_DIR/t.qcow2: Invalid argument 38 39Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=foo 40QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=foo: Parameter 'lazy_refcounts' expects 'on' or 'off' 41QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=foo: could not open disk image TEST_DIR/t.qcow2: Invalid argument 42 43 44=== With version 2 images enabling lazy refcounts must fail === 45 46Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 47Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on 48QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level 49QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on: could not open disk image TEST_DIR/t.qcow2: Invalid argument 50 51Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=off 52q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 53 54 55=== No medium === 56 57Testing: -drive if=floppy 58q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 59 60Testing: -drive if=ide,media=cdrom 61q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 62 63Testing: -drive if=scsi,media=cdrom 64q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 65 66Testing: -drive if=ide 67QEMU_PROG: Device needs media, but drive is empty 68QEMU_PROG: Initialization of device ide-hd failed 69 70Testing: -drive if=virtio 71QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty 72QEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized 73 74Testing: -drive if=scsi 75QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty 76QEMU_PROG: Initialization of device lsi53c895a failed 77 78Testing: -drive if=none,id=disk -device ide-cd,drive=disk 79q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 80 81Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk 82q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 83 84Testing: -drive if=none,id=disk -device ide-drive,drive=disk 85QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty 86QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized 87 88Testing: -drive if=none,id=disk -device ide-hd,drive=disk 89QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty 90QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized 91 92Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk 93QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty 94QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized 95 96Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk 97QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty 98QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized 99 100 101=== Read-only === 102 103Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on 104q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 105 106Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on 107q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 108 109Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on 110q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 111 112Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on 113QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: readonly not supported by this bus type 114 115Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on 116q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 117 118Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on 119q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 120 121Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk 122q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 123 124Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk 125q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 126 127Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk 128QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive 129QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized 130 131Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk 132QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive 133QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized 134 135Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk 136q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 137 138Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk 139q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 140 141 142=== Cache modes === 143 144Testing: -drive media=cdrom,cache=none 145q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 146 147Testing: -drive media=cdrom,cache=directsync 148q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 149 150Testing: -drive media=cdrom,cache=writeback 151q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 152 153Testing: -drive media=cdrom,cache=writethrough 154q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 155 156Testing: -drive media=cdrom,cache=unsafe 157q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 158 159Testing: -drive media=cdrom,cache=invalid_value 160QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option 161 162*** done 163