]>
Commit | Line | Data |
---|---|---|
47e5df21 KW |
1 | QA output created by 051 |
2 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 | |
3 | ||
4 | === Unknown option === | |
5 | ||
6 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt= | |
c09b437b SH |
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 | |
47e5df21 KW |
9 | |
10 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on | |
c09b437b SH |
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 | |
47e5df21 KW |
13 | |
14 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234 | |
c09b437b SH |
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 | |
47e5df21 KW |
17 | |
18 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo | |
c09b437b SH |
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 | |
47e5df21 KW |
21 | |
22 | ||
23 | === Enable and disable lazy refcounting on the command line, plus some invalid values === | |
24 | ||
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 | |
27 | ||
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 | |
30 | ||
31 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts= | |
c09b437b SH |
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 | |
47e5df21 KW |
34 | |
35 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=42 | |
c09b437b SH |
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 | |
47e5df21 KW |
38 | |
39 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=foo | |
c09b437b SH |
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 | |
47e5df21 KW |
42 | |
43 | ||
44 | === With version 2 images enabling lazy refcounts must fail === | |
45 | ||
46 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 | |
47 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on | |
c09b437b SH |
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 | |
47e5df21 KW |
50 | |
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 | |
53 | ||
54 | ||
55 | === No medium === | |
56 | ||
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 | |
59 | ||
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 | |
62 | ||
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 | |
65 | ||
66 | Testing: -drive if=ide | |
c09b437b SH |
67 | QEMU_PROG: Device needs media, but drive is empty |
68 | QEMU_PROG: Initialization of device ide-hd failed | |
47e5df21 KW |
69 | |
70 | Testing: -drive if=virtio | |
c09b437b SH |
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 | |
47e5df21 KW |
73 | |
74 | Testing: -drive if=scsi | |
c09b437b SH |
75 | QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty |
76 | QEMU_PROG: Initialization of device lsi53c895a failed | |
47e5df21 KW |
77 | |
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 | |
80 | ||
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 | |
83 | ||
84 | Testing: -drive if=none,id=disk -device ide-drive,drive=disk | |
c09b437b SH |
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 | |
47e5df21 KW |
87 | |
88 | Testing: -drive if=none,id=disk -device ide-hd,drive=disk | |
c09b437b SH |
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 | |
47e5df21 KW |
91 | |
92 | Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk | |
c09b437b SH |
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 | |
47e5df21 KW |
95 | |
96 | Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk | |
c09b437b SH |
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 | |
47e5df21 KW |
99 | |
100 | ||
101 | === Read-only === | |
102 | ||
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 | |
105 | ||
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 | |
108 | ||
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 | |
111 | ||
112 | Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on | |
c09b437b | 113 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: readonly not supported by this bus type |
47e5df21 KW |
114 | |
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 | |
117 | ||
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 | |
120 | ||
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 | |
123 | ||
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 | |
126 | ||
127 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk | |
c09b437b SH |
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 | |
47e5df21 KW |
130 | |
131 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk | |
c09b437b SH |
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 | |
47e5df21 KW |
134 | |
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 | |
137 | ||
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 | |
140 | ||
141 | ||
142 | === Cache modes === | |
143 | ||
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 | |
146 | ||
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 | |
149 | ||
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 | |
152 | ||
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 | |
155 | ||
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 | |
158 | ||
159 | Testing: -drive media=cdrom,cache=invalid_value | |
c09b437b | 160 | QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option |
47e5df21 KW |
161 | |
162 | *** done |