1 QA output created by 051
2 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
6 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=
7 QEMU_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'
8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=: could not open disk image TEST_DIR/t.qcow2: Invalid argument
10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on
11 QEMU_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'
12 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on: could not open disk image TEST_DIR/t.qcow2: Invalid argument
14 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234
15 QEMU_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'
16 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234: could not open disk image TEST_DIR/t.qcow2: Invalid argument
18 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo
19 QEMU_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'
20 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: could not open disk image TEST_DIR/t.qcow2: Invalid argument
23 === Enable and disable lazy refcounting on the command line, plus some invalid values ===
25 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on
26 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
28 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=off
29 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
31 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=
32 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=: Parameter 'lazy_refcounts' expects 'on' or 'off'
33 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=: could not open disk image TEST_DIR/t.qcow2: Invalid argument
35 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=42
36 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=42: Parameter 'lazy_refcounts' expects 'on' or 'off'
37 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=42: could not open disk image TEST_DIR/t.qcow2: Invalid argument
39 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=foo
40 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=foo: Parameter 'lazy_refcounts' expects 'on' or 'off'
41 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=foo: could not open disk image TEST_DIR/t.qcow2: Invalid argument
44 === With version 2 images enabling lazy refcounts must fail ===
46 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
47 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on
48 QEMU_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
49 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on: could not open disk image TEST_DIR/t.qcow2: Invalid argument
51 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=off
52 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
57 Testing: -drive if=floppy
58 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
60 Testing: -drive if=ide,media=cdrom
61 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
63 Testing: -drive if=scsi,media=cdrom
64 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
66 Testing: -drive if=ide
67 QEMU_PROG: Device needs media, but drive is empty
68 QEMU_PROG: Initialization of device ide-hd failed
70 Testing: -drive if=virtio
71 QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
72 QEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized
74 Testing: -drive if=scsi
75 QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
76 QEMU_PROG: Initialization of device lsi53c895a failed
78 Testing: -drive if=none,id=disk -device ide-cd,drive=disk
79 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
81 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
82 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
84 Testing: -drive if=none,id=disk -device ide-drive,drive=disk
85 QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
86 QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
88 Testing: -drive if=none,id=disk -device ide-hd,drive=disk
89 QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
90 QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
92 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
93 QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
94 QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
96 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
97 QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
98 QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
103 Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
104 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
106 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
107 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
109 Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
110 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
112 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
113 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: readonly not supported by this bus type
115 Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
116 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
118 Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
119 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
121 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
122 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
124 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
125 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
127 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
128 QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
129 QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
131 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
132 QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
133 QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
135 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
136 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
138 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
139 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
144 Testing: -drive media=cdrom,cache=none
145 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
147 Testing: -drive media=cdrom,cache=directsync
148 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
150 Testing: -drive media=cdrom,cache=writeback
151 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
153 Testing: -drive media=cdrom,cache=writethrough
154 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
156 Testing: -drive media=cdrom,cache=unsafe
157 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
159 Testing: -drive media=cdrom,cache=invalid_value
160 QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
163 === Specifying the protocol layer ===
165 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
166 q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
\r
168 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
169 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: Can't use 'qcow2' as a block driver for the protocol level
170 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Invalid argument