qtest: add tulip test case
[qemu.git] / tests / qtest / Makefile.include
1 # All QTests for now are POSIX-only, but the dependencies are
2 # really in libqtest, not in the testcases themselves.
3
4 check-qtest-generic-y += cdrom-test
5 check-qtest-generic-y += device-introspect-test
6 check-qtest-generic-y += machine-none-test
7 check-qtest-generic-y += qmp-test
8 check-qtest-generic-y += qmp-cmd-test
9 check-qtest-generic-y += qom-test
10 check-qtest-generic-$(CONFIG_MODULES) += modules-test
11 check-qtest-generic-y += test-hmp
12
13 check-qtest-pci-$(CONFIG_RTL8139_PCI) += rtl8139-test
14 check-qtest-pci-$(CONFIG_VGA) += display-vga-test
15 check-qtest-pci-$(CONFIG_HDA) += intel-hda-test
16 check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) += ivshmem-test
17
18 DBUS_DAEMON := $(shell which dbus-daemon 2>/dev/null)
19 ifneq ($(GDBUS_CODEGEN),)
20 ifneq ($(DBUS_DAEMON),)
21 # Temporarily disabled due to Patchew failures:
22 #check-qtest-pci-$(CONFIG_GIO) += dbus-vmstate-test
23 endif
24 endif
25
26 check-qtest-i386-$(CONFIG_ISA_TESTDEV) = endianness-test
27 check-qtest-i386-y += fdc-test
28 check-qtest-i386-y += ide-test
29 check-qtest-i386-$(CONFIG_TOOLS) += ahci-test
30 check-qtest-i386-y += hd-geo-test
31 check-qtest-i386-y += boot-order-test
32 check-qtest-i386-y += bios-tables-test
33 check-qtest-i386-$(CONFIG_SGA) += boot-serial-test
34 check-qtest-i386-$(CONFIG_SLIRP) += pxe-test
35 check-qtest-i386-y += rtc-test
36 check-qtest-i386-$(CONFIG_ISA_IPMI_KCS) += ipmi-kcs-test
37 ifdef CONFIG_LINUX
38 check-qtest-i386-$(CONFIG_ISA_IPMI_BT) += ipmi-bt-test
39 endif
40 check-qtest-i386-y += i440fx-test
41 check-qtest-i386-y += fw_cfg-test
42 check-qtest-i386-y += device-plug-test
43 check-qtest-i386-y += drive_del-test
44 check-qtest-i386-$(CONFIG_WDT_IB700) += wdt_ib700-test
45 check-qtest-i386-y += tco-test
46 check-qtest-i386-y += $(check-qtest-pci-y)
47 check-qtest-i386-$(CONFIG_PVPANIC) += pvpanic-test
48 check-qtest-i386-$(CONFIG_I82801B11) += i82801b11-test
49 check-qtest-i386-$(CONFIG_IOH3420) += ioh3420-test
50 check-qtest-i386-$(CONFIG_USB_UHCI) += usb-hcd-uhci-test
51 check-qtest-i386-$(call land,$(CONFIG_USB_EHCI),$(CONFIG_USB_UHCI)) += usb-hcd-ehci-test
52 check-qtest-i386-$(CONFIG_USB_XHCI_NEC) += usb-hcd-xhci-test
53 check-qtest-i386-y += cpu-plug-test
54 check-qtest-i386-y += q35-test
55 check-qtest-i386-y += vmgenid-test
56 check-qtest-i386-$(CONFIG_TPM_CRB) += tpm-crb-swtpm-test
57 check-qtest-i386-$(CONFIG_TPM_CRB) += tpm-crb-test
58 check-qtest-i386-$(CONFIG_TPM_TIS_ISA) += tpm-tis-swtpm-test
59 check-qtest-i386-$(CONFIG_TPM_TIS_ISA) += tpm-tis-test
60 check-qtest-i386-$(CONFIG_SLIRP) += test-netfilter
61 check-qtest-i386-$(CONFIG_POSIX) += test-filter-mirror
62 check-qtest-i386-$(CONFIG_RTL8139_PCI) += test-filter-redirector
63 check-qtest-i386-y += migration-test
64 check-qtest-i386-y += test-x86-cpuid-compat
65 check-qtest-i386-y += numa-test
66
67 check-qtest-x86_64-y += $(check-qtest-i386-y)
68
69 check-qtest-alpha-y += boot-serial-test
70 check-qtest-alpha-$(CONFIG_VGA) += display-vga-test
71
72 check-qtest-hppa-y += boot-serial-test
73 check-qtest-hppa-$(CONFIG_VGA) += display-vga-test
74
75 check-qtest-m68k-y = boot-serial-test
76
77 check-qtest-microblaze-y += boot-serial-test
78
79 check-qtest-mips-$(CONFIG_ISA_TESTDEV) = endianness-test
80 check-qtest-mips-$(CONFIG_VGA) += display-vga-test
81
82 check-qtest-mips64-$(CONFIG_ISA_TESTDEV) = endianness-test
83 check-qtest-mips64-$(CONFIG_VGA) += display-vga-test
84
85 check-qtest-mips64el-$(CONFIG_ISA_TESTDEV) = endianness-test
86 check-qtest-mips64el-$(CONFIG_VGA) += display-vga-test
87
88 check-qtest-moxie-y += boot-serial-test
89
90 check-qtest-ppc-$(CONFIG_ISA_TESTDEV) = endianness-test
91 check-qtest-ppc-y += boot-order-test
92 check-qtest-ppc-y += prom-env-test
93 check-qtest-ppc-y += drive_del-test
94 check-qtest-ppc-y += boot-serial-test
95 check-qtest-ppc-$(CONFIG_M48T59) += m48t59-test
96
97 check-qtest-ppc64-y += $(check-qtest-ppc-y)
98 check-qtest-ppc64-$(CONFIG_PSERIES) += device-plug-test
99 check-qtest-ppc64-$(CONFIG_POWERNV) += pnv-xscom-test
100 check-qtest-ppc64-y += migration-test
101 check-qtest-ppc64-$(CONFIG_PSERIES) += rtas-test
102 check-qtest-ppc64-$(CONFIG_SLIRP) += pxe-test
103 check-qtest-ppc64-$(CONFIG_USB_UHCI) += usb-hcd-uhci-test
104 check-qtest-ppc64-$(CONFIG_USB_XHCI_NEC) += usb-hcd-xhci-test
105 check-qtest-ppc64-$(CONFIG_SLIRP) += test-netfilter
106 check-qtest-ppc64-$(CONFIG_POSIX) += test-filter-mirror
107 check-qtest-ppc64-$(CONFIG_RTL8139_PCI) += test-filter-redirector
108 check-qtest-ppc64-$(CONFIG_VGA) += display-vga-test
109 check-qtest-ppc64-y += numa-test
110 check-qtest-ppc64-$(CONFIG_IVSHMEM_DEVICE) += ivshmem-test
111 check-qtest-ppc64-y += cpu-plug-test
112
113 check-qtest-sh4-$(CONFIG_ISA_TESTDEV) = endianness-test
114
115 check-qtest-sh4eb-$(CONFIG_ISA_TESTDEV) = endianness-test
116
117 check-qtest-sparc-y += prom-env-test
118 check-qtest-sparc-y += m48t59-test
119 check-qtest-sparc-y += boot-serial-test
120
121 check-qtest-sparc64-$(CONFIG_ISA_TESTDEV) = endianness-test
122 check-qtest-sparc64-y += prom-env-test
123 check-qtest-sparc64-y += boot-serial-test
124
125 check-qtest-arm-y += arm-cpu-features
126 check-qtest-arm-y += microbit-test
127 check-qtest-arm-y += m25p80-test
128 check-qtest-arm-y += test-arm-mptimer
129 check-qtest-arm-y += boot-serial-test
130 check-qtest-arm-y += hexloader-test
131 check-qtest-arm-$(CONFIG_PFLASH_CFI02) += pflash-cfi02-test
132
133 check-qtest-aarch64-y += arm-cpu-features
134 check-qtest-aarch64-$(CONFIG_TPM_TIS_SYSBUS) += tpm-tis-device-test
135 check-qtest-aarch64-$(CONFIG_TPM_TIS_SYSBUS) += tpm-tis-device-swtpm-test
136 check-qtest-aarch64-y += numa-test
137 check-qtest-aarch64-y += boot-serial-test
138 check-qtest-aarch64-y += migration-test
139
140 # TODO: once aarch64 TCG is fixed on ARM 32 bit host, make test unconditional
141 ifneq ($(ARCH),arm)
142 check-qtest-aarch64-y += bios-tables-test
143 endif
144
145 check-qtest-microblazeel-y += $(check-qtest-microblaze-y)
146
147 check-qtest-xtensaeb-y += $(check-qtest-xtensa-y)
148
149 check-qtest-s390x-y = boot-serial-test
150 check-qtest-s390x-$(CONFIG_SLIRP) += pxe-test
151 check-qtest-s390x-$(CONFIG_SLIRP) += test-netfilter
152 check-qtest-s390x-$(CONFIG_POSIX) += test-filter-mirror
153 check-qtest-s390x-$(CONFIG_POSIX) += test-filter-redirector
154 check-qtest-s390x-y += drive_del-test
155 check-qtest-s390x-y += device-plug-test
156 check-qtest-s390x-y += virtio-ccw-test
157 check-qtest-s390x-y += cpu-plug-test
158 check-qtest-s390x-y += migration-test
159
160 # libqos / qgraph :
161 libqgraph-obj-y = tests/qtest/libqos/qgraph.o
162
163 libqos-core-obj-y = $(libqgraph-obj-y) tests/qtest/libqos/pci.o tests/qtest/libqos/fw_cfg.o
164 libqos-core-obj-y += tests/qtest/libqos/malloc.o
165 libqos-core-obj-y += tests/qtest/libqos/libqos.o
166 libqos-spapr-obj-y = $(libqos-core-obj-y) tests/qtest/libqos/malloc-spapr.o
167 libqos-spapr-obj-y += tests/qtest/libqos/libqos-spapr.o
168 libqos-spapr-obj-y += tests/qtest/libqos/rtas.o
169 libqos-spapr-obj-y += tests/qtest/libqos/pci-spapr.o
170 libqos-pc-obj-y = $(libqos-core-obj-y) tests/qtest/libqos/pci-pc.o
171 libqos-pc-obj-y += tests/qtest/libqos/malloc-pc.o tests/qtest/libqos/libqos-pc.o
172 libqos-pc-obj-y += tests/qtest/libqos/ahci.o
173 libqos-usb-obj-y = $(libqos-spapr-obj-y) $(libqos-pc-obj-y) tests/qtest/libqos/usb.o
174
175 # qos devices:
176 libqos-obj-y =  $(libqgraph-obj-y)
177 libqos-obj-y += $(libqos-pc-obj-y) $(libqos-spapr-obj-y)
178 libqos-obj-y += tests/qtest/libqos/qos_external.o
179 libqos-obj-y += tests/qtest/libqos/e1000e.o
180 libqos-obj-y += tests/qtest/libqos/i2c.o
181 libqos-obj-y += tests/qtest/libqos/i2c-imx.o
182 libqos-obj-y += tests/qtest/libqos/i2c-omap.o
183 libqos-obj-y += tests/qtest/libqos/sdhci.o
184 libqos-obj-y += tests/qtest/libqos/tpci200.o
185 libqos-obj-y += tests/qtest/libqos/virtio.o
186 libqos-obj-$(CONFIG_VIRTFS) += tests/qtest/libqos/virtio-9p.o
187 libqos-obj-y += tests/qtest/libqos/virtio-balloon.o
188 libqos-obj-y += tests/qtest/libqos/virtio-blk.o
189 libqos-obj-y += tests/qtest/libqos/virtio-mmio.o
190 libqos-obj-y += tests/qtest/libqos/virtio-net.o
191 libqos-obj-y += tests/qtest/libqos/virtio-pci.o
192 libqos-obj-y += tests/qtest/libqos/virtio-pci-modern.o
193 libqos-obj-y += tests/qtest/libqos/virtio-rng.o
194 libqos-obj-y += tests/qtest/libqos/virtio-scsi.o
195 libqos-obj-y += tests/qtest/libqos/virtio-serial.o
196
197 # qos machines:
198 libqos-obj-y += tests/qtest/libqos/aarch64-xlnx-zcu102-machine.o
199 libqos-obj-y += tests/qtest/libqos/arm-imx25-pdk-machine.o
200 libqos-obj-y += tests/qtest/libqos/arm-n800-machine.o
201 libqos-obj-y += tests/qtest/libqos/arm-raspi2-machine.o
202 libqos-obj-y += tests/qtest/libqos/arm-sabrelite-machine.o
203 libqos-obj-y += tests/qtest/libqos/arm-smdkc210-machine.o
204 libqos-obj-y += tests/qtest/libqos/arm-virt-machine.o
205 libqos-obj-y += tests/qtest/libqos/arm-xilinx-zynq-a9-machine.o
206 libqos-obj-y += tests/qtest/libqos/ppc64_pseries-machine.o
207 libqos-obj-y += tests/qtest/libqos/x86_64_pc-machine.o
208
209 # qos tests:
210 qos-test-obj-y += tests/qtest/qos-test.o
211 qos-test-obj-y += tests/qtest/ac97-test.o
212 qos-test-obj-y += tests/qtest/ds1338-test.o
213 qos-test-obj-y += tests/qtest/e1000-test.o
214 qos-test-obj-y += tests/qtest/e1000e-test.o
215 qos-test-obj-y += tests/qtest/eepro100-test.o
216 qos-test-obj-y += tests/qtest/es1370-test.o
217 qos-test-obj-y += tests/qtest/ipoctal232-test.o
218 qos-test-obj-y += tests/qtest/megasas-test.o
219 qos-test-obj-y += tests/qtest/ne2000-test.o
220 qos-test-obj-y += tests/qtest/tulip-test.o
221 qos-test-obj-y += tests/qtest/nvme-test.o
222 qos-test-obj-y += tests/qtest/pca9552-test.o
223 qos-test-obj-y += tests/qtest/pci-test.o
224 qos-test-obj-y += tests/qtest/pcnet-test.o
225 qos-test-obj-y += tests/qtest/sdhci-test.o
226 qos-test-obj-y += tests/qtest/spapr-phb-test.o
227 qos-test-obj-y += tests/qtest/tmp105-test.o
228 qos-test-obj-y += tests/qtest/usb-hcd-ohci-test.o $(libqos-usb-obj-y)
229 qos-test-obj-$(CONFIG_VHOST_NET_USER) += tests/qtest/vhost-user-test.o $(chardev-obj-y) $(test-io-obj-y)
230 qos-test-obj-y += tests/qtest/virtio-test.o
231 qos-test-obj-$(CONFIG_VIRTFS) += tests/qtest/virtio-9p-test.o
232 qos-test-obj-y += tests/qtest/virtio-blk-test.o
233 qos-test-obj-y += tests/qtest/virtio-net-test.o
234 qos-test-obj-y += tests/qtest/virtio-rng-test.o
235 qos-test-obj-y += tests/qtest/virtio-scsi-test.o
236 qos-test-obj-y += tests/qtest/virtio-serial-test.o
237 qos-test-obj-y += tests/qtest/vmxnet3-test.o
238
239 check-unit-y += tests/test-qgraph$(EXESUF)
240 tests/test-qgraph$(EXESUF): tests/test-qgraph.o $(libqgraph-obj-y)
241
242 check-qtest-generic-y += qos-test
243 tests/qtest/qos-test$(EXESUF): $(qos-test-obj-y) $(libqos-obj-y)
244
245 # QTest dependencies:
246 tests/qtest/qmp-test$(EXESUF): tests/qtest/qmp-test.o
247 tests/qtest/qmp-cmd-test$(EXESUF): tests/qtest/qmp-cmd-test.o
248 tests/qtest/device-introspect-test$(EXESUF): tests/qtest/device-introspect-test.o
249 tests/qtest/rtc-test$(EXESUF): tests/qtest/rtc-test.o
250 tests/qtest/m48t59-test$(EXESUF): tests/qtest/m48t59-test.o
251 tests/qtest/hexloader-test$(EXESUF): tests/qtest/hexloader-test.o
252 tests/qtest/pflash-cfi02$(EXESUF): tests/qtest/pflash-cfi02-test.o
253 tests/qtest/endianness-test$(EXESUF): tests/qtest/endianness-test.o
254 tests/qtest/prom-env-test$(EXESUF): tests/qtest/prom-env-test.o $(libqos-obj-y)
255 tests/qtest/rtas-test$(EXESUF): tests/qtest/rtas-test.o $(libqos-spapr-obj-y)
256 tests/qtest/fdc-test$(EXESUF): tests/qtest/fdc-test.o
257 tests/qtest/ide-test$(EXESUF): tests/qtest/ide-test.o $(libqos-pc-obj-y)
258 tests/qtest/ahci-test$(EXESUF): tests/qtest/ahci-test.o $(libqos-pc-obj-y) qemu-img$(EXESUF)
259 tests/qtest/ipmi-kcs-test$(EXESUF): tests/qtest/ipmi-kcs-test.o
260 tests/qtest/ipmi-bt-test$(EXESUF): tests/qtest/ipmi-bt-test.o
261 tests/qtest/hd-geo-test$(EXESUF): tests/qtest/hd-geo-test.o $(libqos-obj-y)
262 tests/qtest/boot-order-test$(EXESUF): tests/qtest/boot-order-test.o $(libqos-obj-y)
263 tests/qtest/boot-serial-test$(EXESUF): tests/qtest/boot-serial-test.o $(libqos-obj-y)
264 tests/qtest/bios-tables-test$(EXESUF): tests/qtest/bios-tables-test.o \
265         tests/qtest/boot-sector.o tests/qtest/acpi-utils.o $(libqos-obj-y)
266 tests/qtest/pxe-test$(EXESUF): tests/qtest/pxe-test.o tests/qtest/boot-sector.o $(libqos-obj-y)
267 tests/qtest/microbit-test$(EXESUF): tests/qtest/microbit-test.o
268 tests/qtest/m25p80-test$(EXESUF): tests/qtest/m25p80-test.o
269 tests/qtest/i440fx-test$(EXESUF): tests/qtest/i440fx-test.o $(libqos-pc-obj-y)
270 tests/qtest/q35-test$(EXESUF): tests/qtest/q35-test.o $(libqos-pc-obj-y)
271 tests/qtest/fw_cfg-test$(EXESUF): tests/qtest/fw_cfg-test.o $(libqos-pc-obj-y)
272 tests/qtest/rtl8139-test$(EXESUF): tests/qtest/rtl8139-test.o $(libqos-pc-obj-y)
273 tests/qtest/pnv-xscom-test$(EXESUF): tests/qtest/pnv-xscom-test.o
274 tests/qtest/wdt_ib700-test$(EXESUF): tests/qtest/wdt_ib700-test.o
275 tests/qtest/tco-test$(EXESUF): tests/qtest/tco-test.o $(libqos-pc-obj-y)
276 tests/qtest/virtio-ccw-test$(EXESUF): tests/qtest/virtio-ccw-test.o
277 tests/qtest/display-vga-test$(EXESUF): tests/qtest/display-vga-test.o
278 tests/qtest/qom-test$(EXESUF): tests/qtest/qom-test.o
279 tests/qtest/test-hmp$(EXESUF): tests/qtest/test-hmp.o
280 tests/qtest/machine-none-test$(EXESUF): tests/qtest/machine-none-test.o
281 tests/qtest/device-plug-test$(EXESUF): tests/qtest/device-plug-test.o
282 tests/qtest/drive_del-test$(EXESUF): tests/qtest/drive_del-test.o
283 tests/qtest/pvpanic-test$(EXESUF): tests/qtest/pvpanic-test.o
284 tests/qtest/i82801b11-test$(EXESUF): tests/qtest/i82801b11-test.o
285 tests/qtest/intel-hda-test$(EXESUF): tests/qtest/intel-hda-test.o
286 tests/qtest/ioh3420-test$(EXESUF): tests/qtest/ioh3420-test.o
287 tests/qtest/usb-hcd-uhci-test$(EXESUF): tests/qtest/usb-hcd-uhci-test.o $(libqos-usb-obj-y)
288 tests/qtest/usb-hcd-ehci-test$(EXESUF): tests/qtest/usb-hcd-ehci-test.o $(libqos-usb-obj-y)
289 tests/qtest/usb-hcd-xhci-test$(EXESUF): tests/qtest/usb-hcd-xhci-test.o $(libqos-usb-obj-y)
290 tests/qtest/cpu-plug-test$(EXESUF): tests/qtest/cpu-plug-test.o
291 tests/qtest/migration-test$(EXESUF): tests/qtest/migration-test.o tests/qtest/migration-helpers.o
292 tests/qtest/test-netfilter$(EXESUF): tests/qtest/test-netfilter.o $(qtest-obj-y)
293 tests/qtest/test-filter-mirror$(EXESUF): tests/qtest/test-filter-mirror.o $(qtest-obj-y)
294 tests/qtest/test-filter-redirector$(EXESUF): tests/qtest/test-filter-redirector.o $(qtest-obj-y)
295 tests/qtest/test-x86-cpuid-compat$(EXESUF): tests/qtest/test-x86-cpuid-compat.o $(qtest-obj-y)
296 tests/qtest/ivshmem-test$(EXESUF): tests/qtest/ivshmem-test.o contrib/ivshmem-server/ivshmem-server.o $(libqos-pc-obj-y) $(libqos-spapr-obj-y)
297 tests/qtest/dbus-vmstate-test$(EXESUF): tests/qtest/dbus-vmstate-test.o tests/qtest/migration-helpers.o tests/qtest/dbus-vmstate1.o $(libqos-pc-obj-y) $(libqos-spapr-obj-y)
298 tests/qtest/test-arm-mptimer$(EXESUF): tests/qtest/test-arm-mptimer.o
299 tests/qtest/numa-test$(EXESUF): tests/qtest/numa-test.o
300 tests/qtest/vmgenid-test$(EXESUF): tests/qtest/vmgenid-test.o tests/qtest/boot-sector.o tests/qtest/acpi-utils.o
301 tests/qtest/cdrom-test$(EXESUF): tests/qtest/cdrom-test.o tests/qtest/boot-sector.o $(libqos-obj-y)
302 tests/qtest/arm-cpu-features$(EXESUF): tests/qtest/arm-cpu-features.o
303 tests/qtest/tpm-crb-swtpm-test$(EXESUF): tests/qtest/tpm-crb-swtpm-test.o tests/qtest/tpm-emu.o \
304         tests/qtest/tpm-util.o tests/qtest/tpm-tests.o $(test-io-obj-y)
305 tests/qtest/tpm-crb-test$(EXESUF): tests/qtest/tpm-crb-test.o tests/qtest/tpm-emu.o $(test-io-obj-y)
306 tests/qtest/tpm-tis-swtpm-test$(EXESUF): tests/qtest/tpm-tis-swtpm-test.o tests/qtest/tpm-emu.o \
307         tests/qtest/tpm-util.o tests/qtest/tpm-tests.o $(test-io-obj-y)
308 tests/qtest/tpm-tis-device-swtpm-test$(EXESUF): tests/qtest/tpm-tis-device-swtpm-test.o tests/qtest/tpm-emu.o \
309         tests/qtest/tpm-util.o tests/qtest/tpm-tests.o $(test-io-obj-y)
310 tests/qtest/tpm-tis-test$(EXESUF): tests/qtest/tpm-tis-test.o tests/qtest/tpm-tis-util.o tests/qtest/tpm-emu.o $(test-io-obj-y)
311 tests/qtest/tpm-tis-device-test$(EXESUF): tests/qtest/tpm-tis-device-test.o tests/qtest/tpm-tis-util.o tests/qtest/tpm-emu.o $(test-io-obj-y)
312
313 # QTest rules
314
315 TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_DIRS)))
316 ifeq ($(CONFIG_POSIX),y)
317 QTEST_TARGETS = $(TARGETS)
318 check-qtest-y=$(foreach TARGET,$(TARGETS), $(check-qtest-$(TARGET)-y:%=tests/qtest/%$(EXESUF)))
319 check-qtest-y += $(check-qtest-generic-y:%=tests/qtest/%$(EXESUF))
320 else
321 QTEST_TARGETS =
322 endif
323
324 qtest-obj-y = tests/qtest/libqtest.o $(test-util-obj-y)
325 $(check-qtest-y): $(qtest-obj-y)