blob: cfbb689e0e578b95332e3eb656f5047ee5ac9ca6 [file] [log] [blame]
Kevin Wolf89594492012-03-08 12:29:00 +01001export SRC_PATH
2
Daniel P. Berrangeb1245332015-09-02 11:35:52 +01003qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py
4
Peter Maydell3687d532014-01-23 16:22:59 +00005# Get the list of all supported sysemu targets
6SYSEMU_TARGET_LIST := $(subst -softmmu.mak,,$(notdir \
7 $(wildcard $(SRC_PATH)/default-configs/*-softmmu.mak)))
8
Paolo Bonzinib93b63f2012-03-28 15:42:01 +02009check-unit-y = tests/check-qdict$(EXESUF)
Paolo Bonzini5f7a74a2013-01-15 09:49:35 +010010gcov-files-check-qdict-y = qobject/qdict.c
Markus Armbruster44295322016-10-25 11:09:25 +020011check-unit-y += tests/test-char$(EXESUF)
Marc-André Lureau178fe0a2016-12-10 00:29:03 +030012gcov-files-check-qdict-y = chardev/char.c
Marc-André Lureau01b2ffc2017-06-07 20:35:58 +040013check-unit-y += tests/check-qnum$(EXESUF)
14gcov-files-check-qnum-y = qobject/qnum.c
Paolo Bonzinib93b63f2012-03-28 15:42:01 +020015check-unit-y += tests/check-qstring$(EXESUF)
Paolo Bonzini5f7a74a2013-01-15 09:49:35 +010016gcov-files-check-qstring-y = qobject/qstring.c
Paolo Bonzinib93b63f2012-03-28 15:42:01 +020017check-unit-y += tests/check-qlist$(EXESUF)
Paolo Bonzini5f7a74a2013-01-15 09:49:35 +010018gcov-files-check-qlist-y = qobject/qlist.c
Eric Blake7d7a3372016-04-28 15:45:21 -060019check-unit-y += tests/check-qnull$(EXESUF)
20gcov-files-check-qnull-y = qobject/qnull.c
Paolo Bonzinib93b63f2012-03-28 15:42:01 +020021check-unit-y += tests/check-qjson$(EXESUF)
Paolo Bonzini5f7a74a2013-01-15 09:49:35 +010022gcov-files-check-qjson-y = qobject/qjson.c
Daniel P. Berrangeb3db2112016-09-30 15:45:27 +010023check-unit-y += tests/test-qobject-output-visitor$(EXESUF)
24gcov-files-test-qobject-output-visitor-y = qapi/qobject-output-visitor.c
Eric Blakea15fcc32016-06-09 10:48:44 -060025check-unit-y += tests/test-clone-visitor$(EXESUF)
26gcov-files-test-clone-visitor-y = qapi/qapi-clone-visitor.c
Daniel P. Berrangeb3db2112016-09-30 15:45:27 +010027check-unit-y += tests/test-qobject-input-visitor$(EXESUF)
28gcov-files-test-qobject-input-visitor-y = qapi/qobject-input-visitor.c
Paolo Bonzinib93b63f2012-03-28 15:42:01 +020029check-unit-y += tests/test-qmp-commands$(EXESUF)
Blue Swirl1d728c32012-05-01 18:45:39 +000030gcov-files-test-qmp-commands-y = qapi/qmp-dispatch.c
Paolo Bonzinib93b63f2012-03-28 15:42:01 +020031check-unit-y += tests/test-string-input-visitor$(EXESUF)
Blue Swirl1d728c32012-05-01 18:45:39 +000032gcov-files-test-string-input-visitor-y = qapi/string-input-visitor.c
Paolo Bonzinib93b63f2012-03-28 15:42:01 +020033check-unit-y += tests/test-string-output-visitor$(EXESUF)
Blue Swirl1d728c32012-05-01 18:45:39 +000034gcov-files-test-string-output-visitor-y = qapi/string-output-visitor.c
Wenchao Xiaf6dadb02014-06-18 08:43:29 +020035check-unit-y += tests/test-qmp-event$(EXESUF)
36gcov-files-test-qmp-event-y += qapi/qmp-event.c
Laszlo Ersek3953e3a2013-08-20 00:35:40 +020037check-unit-y += tests/test-opts-visitor$(EXESUF)
38gcov-files-test-opts-visitor-y = qapi/opts-visitor.c
Paolo Bonzinib93b63f2012-03-28 15:42:01 +020039check-unit-y += tests/test-coroutine$(EXESUF)
Peter Maydell7c2acc72013-04-08 12:11:27 +010040gcov-files-test-coroutine-y = coroutine-$(CONFIG_COROUTINE_BACKEND).c
Michael Roth2d496102012-02-21 21:05:07 -060041check-unit-y += tests/test-visitor-serialization$(EXESUF)
Michael Tokarev2278a692012-06-07 20:08:19 +040042check-unit-y += tests/test-iov$(EXESUF)
Paolo Bonzini5f7a74a2013-01-15 09:49:35 +010043gcov-files-test-iov-y = util/iov.c
Paolo Bonzinib2ea25d2012-11-23 16:13:23 +010044check-unit-y += tests/test-aio$(EXESUF)
Paolo Bonzinic2b38b22017-02-13 14:52:18 +010045gcov-files-test-aio-y = util/async.c util/qemu-timer.o
46gcov-files-test-aio-$(CONFIG_WIN32) += util/aio-win32.c
47gcov-files-test-aio-$(CONFIG_POSIX) += util/aio-posix.c
Paolo Bonzini0c330a72017-02-13 14:52:19 +010048check-unit-y += tests/test-aio-multithread$(EXESUF)
49gcov-files-test-aio-multithread-y = $(gcov-files-test-aio-y)
50gcov-files-test-aio-multithread-y += util/qemu-coroutine.c tests/iothread.c
Benoît Canetf17cfe82013-09-02 14:14:38 +020051check-unit-y += tests/test-throttle$(EXESUF)
Paolo Bonzini74c856e2012-11-23 16:13:24 +010052check-unit-y += tests/test-thread-pool$(EXESUF)
Blue Swirl1d728c32012-05-01 18:45:39 +000053gcov-files-test-thread-pool-y = thread-pool.c
Paolo Bonzinie7c033c2013-01-21 17:09:40 +010054gcov-files-test-hbitmap-y = util/hbitmap.c
55check-unit-y += tests/test-hbitmap$(EXESUF)
Stefan Hajnoczi6c6f3122015-11-05 18:13:20 -050056gcov-files-test-hbitmap-y = blockjob.c
Alberto Garcia9ef81122016-07-29 17:31:41 +030057check-unit-y += tests/test-blockjob$(EXESUF)
Stefan Hajnoczi6c6f3122015-11-05 18:13:20 -050058check-unit-y += tests/test-blockjob-txn$(EXESUF)
Eduardo Habkost247c9de2013-01-23 15:58:27 -020059check-unit-y += tests/test-x86-cpuid$(EXESUF)
60# all code tested by test-x86-cpuid is inside topology.h
61gcov-files-test-x86-cpuid-y =
Dr. David Alan Gilbert60fe6372014-12-12 11:13:38 +000062ifeq ($(CONFIG_SOFTMMU),y)
Orit Wasserman21e3cd22013-01-31 09:12:16 +020063check-unit-y += tests/test-xbzrle$(EXESUF)
Dr. David Alan Gilbert60fe6372014-12-12 11:13:38 +000064gcov-files-test-xbzrle-y = migration/xbzrle.c
65check-unit-$(CONFIG_POSIX) += tests/test-vmstate$(EXESUF)
66endif
Eduardo Habkoste3f9fe22013-02-04 16:27:45 -020067check-unit-y += tests/test-cutils$(EXESUF)
68gcov-files-test-cutils-y += util/cutils.c
Jose Ricardo Zivianif539fbe2017-01-10 00:10:09 -020069check-unit-y += tests/test-shift128$(EXESUF)
70gcov-files-test-shift128-y = util/host-utils.c
Richard Hendersonf4c0f982013-02-16 12:47:01 -080071check-unit-y += tests/test-mul64$(EXESUF)
72gcov-files-test-mul64-y = util/host-utils.c
Paolo Bonzini6046c622013-06-20 16:19:32 +020073check-unit-y += tests/test-int128$(EXESUF)
74# all code tested by test-int128 is inside int128.h
75gcov-files-test-int128-y =
Paolo Bonzini8fda74a2013-06-21 09:09:34 +020076check-unit-y += tests/rcutorture$(EXESUF)
77gcov-files-rcutorture-y = util/rcu.c
Mike Day341774f2013-08-27 11:38:45 -040078check-unit-y += tests/test-rcu-list$(EXESUF)
79gcov-files-test-rcu-list-y = util/rcu.c
Emilio G. Cotaff9249b2016-06-08 14:55:27 -040080check-unit-y += tests/test-qdist$(EXESUF)
81gcov-files-test-qdist-y = util/qdist.c
Emilio G. Cota1a954042016-06-08 14:55:29 -040082check-unit-y += tests/test-qht$(EXESUF)
83gcov-files-test-qht-y = util/qht.c
Emilio G. Cota896a9ee2016-06-08 14:55:31 -040084check-unit-y += tests/test-qht-par$(EXESUF)
85gcov-files-test-qht-par-y = util/qht.c
Peter Maydell34647002013-06-28 12:40:32 +010086check-unit-y += tests/test-bitops$(EXESUF)
Alex Bennéec3f89622016-12-09 14:36:00 +000087check-unit-y += tests/test-bitcnt$(EXESUF)
Michael S. Tsirkin9d414012014-09-18 20:46:45 +030088check-unit-$(CONFIG_HAS_GLIB_SUBPROCESS_TESTS) += tests/test-qdev-global-props$(EXESUF)
Igor Mammedov14389db2013-12-20 22:14:40 +010089check-unit-y += tests/check-qom-interface$(EXESUF)
90gcov-files-check-qom-interface-y = qom/object.c
Daniel P. Berrangea31bdae2015-05-13 17:14:06 +010091check-unit-y += tests/check-qom-proplist$(EXESUF)
92gcov-files-check-qom-proplist-y = qom/object.c
Leandro Dorileo4ba6fab2014-05-19 18:53:55 -030093check-unit-y += tests/test-qemu-opts$(EXESUF)
Markus Armbruster112c9442017-02-28 22:26:48 +010094gcov-files-test-qemu-opts-y = util/qemu-option.c
Markus Armbrusterd454dbe2017-02-28 22:26:49 +010095check-unit-y += tests/test-keyval$(EXESUF)
96gcov-files-test-keyval-y = util/keyval.c
Francesco Romanie2462112015-01-12 14:11:13 +010097check-unit-y += tests/test-write-threshold$(EXESUF)
98gcov-files-test-write-threshold-y = block/write-threshold.c
Daniel P. Berrange0c16c052016-03-11 18:09:22 +000099check-unit-y += tests/test-crypto-hash$(EXESUF)
Longpeng(Mike)4fd460b2016-12-13 18:43:00 +0800100check-unit-y += tests/test-crypto-hmac$(EXESUF)
Daniel P. Berrangeca38a4c2015-07-01 18:10:32 +0100101check-unit-y += tests/test-crypto-cipher$(EXESUF)
Daniel P. Berrangeac1d8872015-10-14 09:58:38 +0100102check-unit-y += tests/test-crypto-secret$(EXESUF)
Daniel P. Berrange9a2fd432015-04-13 14:01:39 +0100103check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlscredsx509$(EXESUF)
Daniel P. Berranged321e1e2015-03-02 17:23:31 +0000104check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlssession$(EXESUF)
Yang Hongyangfb91f302016-04-19 15:39:13 +0800105ifneq (,$(findstring qemu-ga,$(TOOLS)))
106check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF)
107endif
Alberto Garciabd797fc2015-10-28 17:33:01 +0200108check-unit-y += tests/test-timed-average$(EXESUF)
Daniel P. Berrangeb02db2d2015-03-18 17:25:45 +0000109check-unit-y += tests/test-io-task$(EXESUF)
Daniel P. Berrange559607e2015-02-27 16:19:33 +0000110check-unit-y += tests/test-io-channel-socket$(EXESUF)
Daniel P. Berranged6e48862015-02-27 18:25:25 +0000111check-unit-y += tests/test-io-channel-file$(EXESUF)
Daniel P. Berrangeed8ee422015-03-02 18:13:13 +0000112check-unit-$(CONFIG_GNUTLS) += tests/test-io-channel-tls$(EXESUF)
Daniel P. Berrange195e14d2015-08-27 16:25:30 +0100113check-unit-y += tests/test-io-channel-command$(EXESUF)
Daniel P. Berranged98e4eb2015-09-15 17:27:33 +0100114check-unit-y += tests/test-io-channel-buffer$(EXESUF)
Daniel P. Berrange89bc0b62015-11-23 15:24:50 +0000115check-unit-y += tests/test-base64$(EXESUF)
Daniel P. Berrangec44e92a2016-04-04 15:08:45 +0100116check-unit-$(if $(CONFIG_NETTLE_KDF),y,$(CONFIG_GCRYPT_KDF)) += tests/test-crypto-pbkdf$(EXESUF)
Daniel P. Berrangecb730892015-10-15 12:35:28 +0100117check-unit-y += tests/test-crypto-ivgen$(EXESUF)
Daniel P. Berrange5a95e0f2015-10-23 16:14:25 +0100118check-unit-y += tests/test-crypto-afsplit$(EXESUF)
Daniel P. Berrange84f7f182016-02-11 14:00:17 +0000119check-unit-y += tests/test-crypto-xts$(EXESUF)
Daniel P. Berrange7d969012015-10-24 11:44:13 +0100120check-unit-y += tests/test-crypto-block$(EXESUF)
Alex Bennée35145522016-03-15 14:30:20 +0000121check-unit-y += tests/test-logging$(EXESUF)
Markus Armbruster112c9442017-02-28 22:26:48 +0100122gcov-files-test-logging-y = util/log.c
Changlong Xieb3110462016-07-27 15:01:51 +0800123check-unit-$(CONFIG_REPLICATION) += tests/test-replication$(EXESUF)
Richard Hendersonefad6682016-08-29 11:46:16 -0700124check-unit-y += tests/test-bufferiszero$(EXESUF)
125gcov-files-check-bufferiszero-y = util/bufferiszero.c
Fam Zhengc739cdd2016-09-21 12:27:24 +0800126check-unit-y += tests/test-uuid$(EXESUF)
Paolo Bonzini24b94622016-10-17 19:22:17 +0100127check-unit-y += tests/ptimer-test$(EXESUF)
128gcov-files-ptimer-test-y = hw/core/ptimer.c
Markus Armbruster6c873d12017-02-28 22:27:03 +0100129check-unit-y += tests/test-qapi-util$(EXESUF)
130gcov-files-test-qapi-util-y = qapi/qapi-util.c
Anthony Liguoriad65aa82012-01-10 13:10:51 -0600131
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200132check-block-$(CONFIG_POSIX) += tests/qemu-iotests-quick.sh
Anthony Liguoridbfe06c2012-01-10 13:10:43 -0600133
Anthony Liguorid1aaf542012-03-28 15:42:07 +0200134# All QTests for now are POSIX-only, but the dependencies are
135# really in libqtest, not in the testcases themselves.
Andreas Färbera21baf72013-11-07 18:25:10 +0100136
Markus Armbrusterf66e7ac2017-03-03 13:32:23 +0100137check-qtest-generic-y = tests/qmp-test$(EXESUF)
138gcov-files-generic-y = monitor.c qapi/qmp-dispatch.c
139check-qtest-generic-y += tests/device-introspect-test$(EXESUF)
Markus Armbruster2d1abb82015-10-01 10:59:56 +0200140gcov-files-generic-y = qdev-monitor.c qmp.c
Markus Armbrustere253c282015-10-01 10:59:53 +0200141
Andreas Färber1f9c4cf2013-08-02 00:48:40 +0200142gcov-files-ipack-y += hw/ipack/ipack.c
Andreas Färber37146822014-02-09 12:24:15 +0100143check-qtest-ipack-y += tests/ipoctal232-test$(EXESUF)
144gcov-files-ipack-y += hw/char/ipoctal232.c
145
Andreas Färber6e8114a2014-02-21 17:49:12 +0100146check-qtest-virtioserial-y += tests/virtio-console-test$(EXESUF)
147gcov-files-virtioserial-y += hw/char/virtio-console.c
148
Andreas Färberb815ec52014-02-09 04:13:37 +0100149gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio.c
150check-qtest-virtio-y += tests/virtio-net-test$(EXESUF)
151gcov-files-virtio-y += i386-softmmu/hw/net/virtio-net.c
Andreas Färber02063aa2014-02-09 04:39:47 +0100152check-qtest-virtio-y += tests/virtio-balloon-test$(EXESUF)
153gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio-balloon.c
Andreas Färberc7a59be2014-02-09 04:32:55 +0100154check-qtest-virtio-y += tests/virtio-blk-test$(EXESUF)
155gcov-files-virtio-y += i386-softmmu/hw/block/virtio-blk.c
Andreas Färberb6f46f02014-02-09 04:43:10 +0100156check-qtest-virtio-y += tests/virtio-rng-test$(EXESUF)
157gcov-files-virtio-y += hw/virtio/virtio-rng.c
Andreas Färber26c9a012014-02-21 16:42:15 +0100158check-qtest-virtio-y += tests/virtio-scsi-test$(EXESUF)
159gcov-files-virtio-y += i386-softmmu/hw/scsi/virtio-scsi.c
Andreas Färber2d888c02014-02-21 17:15:21 +0100160ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
161check-qtest-virtio-y += tests/virtio-9p-test$(EXESUF)
162gcov-files-virtio-y += hw/9pfs/virtio-9p.c
163gcov-files-virtio-y += i386-softmmu/hw/9pfs/virtio-9p-device.c
164endif
Andreas Färberaa974052014-02-21 17:36:57 +0100165check-qtest-virtio-y += tests/virtio-serial-test$(EXESUF)
166gcov-files-virtio-y += i386-softmmu/hw/char/virtio-serial-bus.c
Andreas Färber6e8114a2014-02-21 17:49:12 +0100167check-qtest-virtio-y += $(check-qtest-virtioserial-y)
168gcov-files-virtio-y += $(gcov-files-virtioserial-y)
Andreas Färberb815ec52014-02-09 04:13:37 +0100169
Andreas Färbera21baf72013-11-07 18:25:10 +0100170check-qtest-pci-y += tests/e1000-test$(EXESUF)
171gcov-files-pci-y += hw/net/e1000.c
Dmitry Fleytman7c375e22016-06-01 11:23:46 +0300172check-qtest-pci-y += tests/e1000e-test$(EXESUF)
173gcov-files-pci-y += hw/net/e1000e.c hw/net/e1000e_core.c
Andreas Färber74769fe2013-11-07 18:43:09 +0100174check-qtest-pci-y += tests/rtl8139-test$(EXESUF)
175gcov-files-pci-y += hw/net/rtl8139.c
Andreas Färber85f68d52013-11-07 18:53:28 +0100176check-qtest-pci-y += tests/pcnet-test$(EXESUF)
177gcov-files-pci-y += hw/net/pcnet.c
178gcov-files-pci-y += hw/net/pcnet-pci.c
Andreas Färber92838a12013-11-07 19:18:46 +0100179check-qtest-pci-y += tests/eepro100-test$(EXESUF)
180gcov-files-pci-y += hw/net/eepro100.c
Andreas Färber5297ea62014-02-09 04:01:37 +0100181check-qtest-pci-y += tests/ne2000-test$(EXESUF)
182gcov-files-pci-y += hw/net/ne2000.c
Andreas Färberfc967792014-02-21 22:19:43 +0100183check-qtest-pci-y += tests/nvme-test$(EXESUF)
184gcov-files-pci-y += hw/block/nvme.c
Andreas Färberd7b50c02014-03-30 19:00:05 +0200185check-qtest-pci-y += tests/ac97-test$(EXESUF)
186gcov-files-pci-y += hw/audio/ac97.c
Andreas Färber8fa74c92014-03-30 19:05:20 +0200187check-qtest-pci-y += tests/es1370-test$(EXESUF)
188gcov-files-pci-y += hw/audio/es1370.c
Andreas Färberb815ec52014-02-09 04:13:37 +0100189check-qtest-pci-y += $(check-qtest-virtio-y)
190gcov-files-pci-y += $(gcov-files-virtio-y) hw/virtio/virtio-pci.c
Andreas Färber76491072014-02-09 03:48:44 +0100191check-qtest-pci-y += tests/tpci200-test$(EXESUF)
Andreas Färber83bb0b22014-02-21 16:29:17 +0100192gcov-files-pci-y += hw/ipack/tpci200.c
Andreas Färber37146822014-02-09 12:24:15 +0100193check-qtest-pci-y += $(check-qtest-ipack-y)
Andreas Färber83bb0b22014-02-21 16:29:17 +0100194gcov-files-pci-y += $(gcov-files-ipack-y)
Gerd Hoffmann0850fd52014-04-28 11:01:13 +0200195check-qtest-pci-y += tests/display-vga-test$(EXESUF)
196gcov-files-pci-y += hw/display/vga.c
197gcov-files-pci-y += hw/display/cirrus_vga.c
198gcov-files-pci-y += hw/display/vga-pci.c
Gerd Hoffmann501eea42014-04-28 11:10:12 +0200199gcov-files-pci-y += hw/display/virtio-gpu.c
200gcov-files-pci-y += hw/display/virtio-gpu-pci.c
201gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c
Andreas Färberfbaf4452014-03-30 19:22:48 +0200202check-qtest-pci-y += tests/intel-hda-test$(EXESUF)
203gcov-files-pci-y += hw/audio/intel-hda.c hw/audio/hda-codec.c
Markus Armbruster330b5832016-03-15 19:34:20 +0100204check-qtest-pci-$(CONFIG_EVENTFD) += tests/ivshmem-test$(EXESUF)
Andreas Färberbbfc2ef2015-10-11 00:18:32 +0200205gcov-files-pci-y += hw/misc/ivshmem.c
Paolo Bonzini660174f2017-06-01 16:45:16 +0200206check-qtest-pci-y += tests/megasas-test$(EXESUF)
207gcov-files-pci-y += hw/scsi/megasas.c
Andreas Färbera21baf72013-11-07 18:25:10 +0100208
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200209check-qtest-i386-y = tests/endianness-test$(EXESUF)
210check-qtest-i386-y += tests/fdc-test$(EXESUF)
Andreas Färber5ec889b2014-02-14 15:09:28 +0100211gcov-files-i386-y = hw/block/fdc.c
Kevin Wolfacbe4802013-05-08 11:18:41 +0200212check-qtest-i386-y += tests/ide-test$(EXESUF)
John Snow1cd10312014-08-21 13:44:32 -0400213check-qtest-i386-y += tests/ahci-test$(EXESUF)
Markus Armbruster0e8a8c82012-07-10 11:12:30 +0200214check-qtest-i386-y += tests/hd-geo-test$(EXESUF)
Andreas Färber5ec889b2014-02-14 15:09:28 +0100215gcov-files-i386-y += hw/block/hd-geometry.c
Markus Armbrusteredbd7902013-06-26 15:52:13 +0200216check-qtest-i386-y += tests/boot-order-test$(EXESUF)
Gabriel L. Somlo501f28c2014-05-27 15:03:14 -0400217check-qtest-i386-y += tests/bios-tables-test$(EXESUF)
Thomas Huthd2ab58f2016-09-03 11:57:51 +0200218check-qtest-i386-y += tests/boot-serial-test$(EXESUF)
Victor Kaplansky4e082562016-02-14 18:59:27 +0200219check-qtest-i386-y += tests/pxe-test$(EXESUF)
Stefan Weilfba0c402012-05-15 18:19:45 +0200220check-qtest-i386-y += tests/rtc-test$(EXESUF)
Corey Minyard24f976d2015-12-17 12:50:09 -0600221check-qtest-i386-y += tests/ipmi-kcs-test$(EXESUF)
222check-qtest-i386-y += tests/ipmi-bt-test$(EXESUF)
Anthony Liguori9bda4132013-04-16 09:45:19 -0500223check-qtest-i386-y += tests/i440fx-test$(EXESUF)
Anthony Liguoribf2a38d2013-04-16 09:45:21 -0500224check-qtest-i386-y += tests/fw_cfg-test$(EXESUF)
Markus Armbrustere2f3f222014-10-02 16:51:31 +0200225check-qtest-i386-y += tests/drive_del-test$(EXESUF)
Paolo Bonzinif52b7682014-07-15 14:57:06 +0200226check-qtest-i386-y += tests/wdt_ib700-test$(EXESUF)
Michael S. Tsirkinc4fc82b2015-07-08 10:06:15 +0300227check-qtest-i386-y += tests/tco-test$(EXESUF)
Paolo Bonzinif52b7682014-07-15 14:57:06 +0200228gcov-files-i386-y += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
Andreas Färbera21baf72013-11-07 18:25:10 +0100229check-qtest-i386-y += $(check-qtest-pci-y)
230gcov-files-i386-y += $(gcov-files-pci-y)
Andreas Färber4a053e72013-11-07 18:37:34 +0100231check-qtest-i386-y += tests/vmxnet3-test$(EXESUF)
232gcov-files-i386-y += hw/net/vmxnet3.c
Dmitry Fleytman605d52e2016-06-01 11:23:39 +0300233gcov-files-i386-y += hw/net/net_rx_pkt.c
234gcov-files-i386-y += hw/net/net_tx_pkt.c
Andreas Färberabc53732014-02-21 20:38:48 +0100235check-qtest-i386-y += tests/pvpanic-test$(EXESUF)
236gcov-files-i386-y += i386-softmmu/hw/misc/pvpanic.c
Andreas Färbere683eb92014-02-21 22:43:43 +0100237check-qtest-i386-y += tests/i82801b11-test$(EXESUF)
238gcov-files-i386-y += hw/pci-bridge/i82801b11.c
Andreas Färberefbf5df2014-03-30 20:02:00 +0200239check-qtest-i386-y += tests/ioh3420-test$(EXESUF)
240gcov-files-i386-y += hw/pci-bridge/ioh3420.c
Gonglei28edfce2014-06-23 19:53:51 +0800241check-qtest-i386-y += tests/usb-hcd-ohci-test$(EXESUF)
242gcov-files-i386-y += hw/usb/hcd-ohci.c
Gonglei44ced582014-06-23 19:53:52 +0800243check-qtest-i386-y += tests/usb-hcd-uhci-test$(EXESUF)
244gcov-files-i386-y += hw/usb/hcd-uhci.c
Andreas Färbercc900d32014-03-30 20:25:38 +0200245check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
246gcov-files-i386-y += hw/usb/hcd-ehci.c
Gerd Hoffmannd81d4102014-05-07 16:39:11 +0200247gcov-files-i386-y += hw/usb/dev-hid.c
248gcov-files-i386-y += hw/usb/dev-storage.c
Gonglei25e89ec2014-06-23 19:53:53 +0800249check-qtest-i386-y += tests/usb-hcd-xhci-test$(EXESUF)
250gcov-files-i386-y += hw/usb/hcd-xhci.c
Andreas Färber7fe55c32015-03-13 17:21:11 +0100251check-qtest-i386-y += tests/pc-cpu-test$(EXESUF)
Gerd Hoffmann66e2ec22015-04-14 15:11:36 +0200252check-qtest-i386-y += tests/q35-test$(EXESUF)
Ben Warren83f3c702017-07-01 23:54:03 -0400253check-qtest-i386-y += tests/vmgenid-test$(EXESUF)
Gerd Hoffmann66e2ec22015-04-14 15:11:36 +0200254gcov-files-i386-y += hw/pci-host/q35.c
Marc-André Lureau421f4442015-10-26 15:32:00 +0100255check-qtest-i386-$(CONFIG_VHOST_NET_TEST_i386) += tests/vhost-user-test$(EXESUF)
256ifeq ($(CONFIG_VHOST_NET_TEST_i386),)
257check-qtest-x86_64-$(CONFIG_VHOST_NET_TEST_x86_64) += tests/vhost-user-test$(EXESUF)
Michael S. Tsirkin7fe34ca2015-10-06 10:17:55 +0100258endif
Yang Hongyang89b12732015-10-07 11:52:22 +0800259check-qtest-i386-y += tests/test-netfilter$(EXESUF)
Zhang Chen06809ec2016-03-15 15:41:34 +0800260check-qtest-i386-y += tests/test-filter-mirror$(EXESUF)
Zhang Chen9fd3c5d2016-03-17 16:16:27 +0800261check-qtest-i386-y += tests/test-filter-redirector$(EXESUF)
Dr. David Alan Gilbertea0c6d62016-06-13 12:16:43 +0100262check-qtest-i386-y += tests/postcopy-test$(EXESUF)
Eduardo Habkost6efef582016-09-20 17:11:39 -0300263check-qtest-i386-y += tests/test-x86-cpuid-compat$(EXESUF)
Igor Mammedov63baf8b2017-05-03 14:56:55 +0200264check-qtest-i386-y += tests/numa-test$(EXESUF)
Marc-André Lureau0ee2e9d2016-06-06 18:45:07 +0200265check-qtest-x86_64-y += $(check-qtest-i386-y)
Andreas Färber5ec889b2014-02-14 15:09:28 +0100266gcov-files-i386-y += i386-softmmu/hw/timer/mc146818rtc.c
Andreas Färberc5cd02b2013-01-26 12:45:14 +0100267gcov-files-x86_64-y = $(subst i386-softmmu/,x86_64-softmmu/,$(gcov-files-i386-y))
Thomas Huth29531542016-09-03 11:57:50 +0200268
Thomas Huthd2ab58f2016-09-03 11:57:51 +0200269check-qtest-alpha-y = tests/boot-serial-test$(EXESUF)
270
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200271check-qtest-mips-y = tests/endianness-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200272
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200273check-qtest-mips64-y = tests/endianness-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200274
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200275check-qtest-mips64el-y = tests/endianness-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200276
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200277check-qtest-ppc-y = tests/endianness-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200278check-qtest-ppc-y += tests/boot-order-test$(EXESUF)
279check-qtest-ppc-y += tests/prom-env-test$(EXESUF)
280check-qtest-ppc-y += tests/drive_del-test$(EXESUF)
Thomas Huthd2ab58f2016-09-03 11:57:51 +0200281check-qtest-ppc-y += tests/boot-serial-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200282
283check-qtest-ppc64-y = tests/spapr-phb-test$(EXESUF)
284gcov-files-ppc64-y = ppc64-softmmu/hw/ppc/spapr_pci.c
285check-qtest-ppc64-y += tests/endianness-test$(EXESUF)
286check-qtest-ppc64-y += tests/boot-order-test$(EXESUF)
287check-qtest-ppc64-y += tests/prom-env-test$(EXESUF)
David Gibsonca8e4bf2016-11-15 10:09:46 +1100288check-qtest-ppc64-y += tests/pnv-xscom-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200289check-qtest-ppc64-y += tests/drive_del-test$(EXESUF)
290check-qtest-ppc64-y += tests/postcopy-test$(EXESUF)
Thomas Huthd2ab58f2016-09-03 11:57:51 +0200291check-qtest-ppc64-y += tests/boot-serial-test$(EXESUF)
Laurent Viviereeddd592016-09-13 14:52:45 +0200292check-qtest-ppc64-y += tests/rtas-test$(EXESUF)
Thomas Huth1485ef12016-09-26 22:17:46 +0200293check-qtest-ppc64-y += tests/pxe-test$(EXESUF)
Laurent Vivieraa9026f2016-09-29 12:32:47 +0200294check-qtest-ppc64-y += tests/usb-hcd-ohci-test$(EXESUF)
295gcov-files-ppc64-y += hw/usb/hcd-ohci.c
296check-qtest-ppc64-y += tests/usb-hcd-uhci-test$(EXESUF)
297gcov-files-ppc64-y += hw/usb/hcd-uhci.c
298check-qtest-ppc64-y += tests/usb-hcd-xhci-test$(EXESUF)
299gcov-files-ppc64-y += hw/usb/hcd-xhci.c
Laurent Vivier30ca4402016-10-17 12:30:24 +0200300check-qtest-ppc64-y += $(check-qtest-virtio-y)
Laurent Vivier2f8e4902017-01-05 16:29:44 +0100301check-qtest-ppc64-y += tests/test-netfilter$(EXESUF)
302check-qtest-ppc64-y += tests/test-filter-mirror$(EXESUF)
303check-qtest-ppc64-y += tests/test-filter-redirector$(EXESUF)
Laurent Vivierf38a0b22017-01-05 16:29:45 +0100304check-qtest-ppc64-y += tests/display-vga-test$(EXESUF)
Igor Mammedov63baf8b2017-05-03 14:56:55 +0200305check-qtest-ppc64-y += tests/numa-test$(EXESUF)
Laurent Vivier2bf25e02017-01-05 16:29:48 +0100306check-qtest-ppc64-$(CONFIG_EVENTFD) += tests/ivshmem-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200307
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200308check-qtest-sh4-y = tests/endianness-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200309
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200310check-qtest-sh4eb-y = tests/endianness-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200311
312check-qtest-sparc-y = tests/prom-env-test$(EXESUF)
313#check-qtest-sparc-y += tests/m48t59-test$(EXESUF)
314#gcov-files-sparc-y = hw/timer/m48t59.c
315
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200316check-qtest-sparc64-y = tests/endianness-test$(EXESUF)
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200317#check-qtest-sparc64-y += tests/m48t59-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200318#gcov-files-sparc64-y += hw/timer/m48t59.c
Thomas Huth6b591ad2017-02-10 19:22:57 +0100319check-qtest-sparc64-y += tests/prom-env-test$(EXESUF)
Thomas Huth29531542016-09-03 11:57:50 +0200320
Andreas Färber6e998902013-01-16 01:57:57 +0100321check-qtest-arm-y = tests/tmp105-test$(EXESUF)
Thomas Huth1f5c1cf2016-06-27 15:37:32 +0100322check-qtest-arm-y += tests/ds1338-test$(EXESUF)
Cédric Le Goater7a2334f2016-10-17 19:22:17 +0100323check-qtest-arm-y += tests/m25p80-test$(EXESUF)
Andreas Färber5ec889b2014-02-14 15:09:28 +0100324gcov-files-arm-y += hw/misc/tmp105.c
Marc Marí0a6ed702015-02-24 22:21:55 +0100325check-qtest-arm-y += tests/virtio-blk-test$(EXESUF)
326gcov-files-arm-y += arm-softmmu/hw/block/virtio-blk.c
Dmitry Osipenko882fac32016-10-24 16:26:54 +0100327check-qtest-arm-y += tests/test-arm-mptimer$(EXESUF)
328gcov-files-arm-y += hw/timer/arm_mptimer.c
Thomas Huth29531542016-09-03 11:57:50 +0200329
Igor Mammedov63baf8b2017-05-03 14:56:55 +0200330check-qtest-aarch64-y = tests/numa-test$(EXESUF)
331
Andreas Färber7c41f212013-07-29 05:44:47 +0200332check-qtest-microblazeel-y = $(check-qtest-microblaze-y)
Thomas Huth29531542016-09-03 11:57:50 +0200333
Andreas Färber7c41f212013-07-29 05:44:47 +0200334check-qtest-xtensaeb-y = $(check-qtest-xtensa-y)
Anthony Liguorid1aaf542012-03-28 15:42:07 +0200335
Thomas Huthd2ab58f2016-09-03 11:57:51 +0200336check-qtest-s390x-y = tests/boot-serial-test$(EXESUF)
337
Markus Armbrustere253c282015-10-01 10:59:53 +0200338check-qtest-generic-y += tests/qom-test$(EXESUF)
Thomas Huth78f86a22017-04-25 07:16:47 +0200339check-qtest-generic-y += tests/test-hmp$(EXESUF)
Peter Maydell3687d532014-01-23 16:22:59 +0000340
Eric Blake46534302016-02-17 23:48:17 -0700341qapi-schema += alternate-any.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600342qapi-schema += alternate-array.json
343qapi-schema += alternate-base.json
344qapi-schema += alternate-clash.json
345qapi-schema += alternate-conflict-dict.json
Markus Armbrusterc0644772017-05-22 18:42:15 +0200346qapi-schema += alternate-conflict-enum-bool.json
347qapi-schema += alternate-conflict-enum-int.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600348qapi-schema += alternate-conflict-string.json
Eric Blake8d25dd12015-09-29 16:21:05 -0600349qapi-schema += alternate-empty.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600350qapi-schema += alternate-nested.json
351qapi-schema += alternate-unknown.json
352qapi-schema += args-alternate.json
353qapi-schema += args-any.json
354qapi-schema += args-array-empty.json
355qapi-schema += args-array-unknown.json
Eric Blakec8184082016-07-13 21:50:20 -0600356qapi-schema += args-bad-boxed.json
357qapi-schema += args-boxed-anon.json
358qapi-schema += args-boxed-empty.json
359qapi-schema += args-boxed-string.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600360qapi-schema += args-int.json
361qapi-schema += args-invalid.json
362qapi-schema += args-member-array-bad.json
Eric Blake893e1f22015-12-01 22:20:57 -0700363qapi-schema += args-member-case.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600364qapi-schema += args-member-unknown.json
Eric Blaked220fbc2015-09-29 16:21:03 -0600365qapi-schema += args-name-clash.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600366qapi-schema += args-union.json
367qapi-schema += args-unknown.json
368qapi-schema += bad-base.json
369qapi-schema += bad-data.json
370qapi-schema += bad-ident.json
371qapi-schema += bad-type-bool.json
372qapi-schema += bad-type-dict.json
373qapi-schema += bad-type-int.json
Eric Blakebac54292015-12-01 22:20:59 -0700374qapi-schema += base-cycle-direct.json
375qapi-schema += base-cycle-indirect.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600376qapi-schema += command-int.json
377qapi-schema += comments.json
Markus Armbrusterf641d062017-03-15 13:57:25 +0100378qapi-schema += doc-bad-alternate-member.json
Markus Armbrusterbdc001c2017-03-15 13:57:24 +0100379qapi-schema += doc-bad-command-arg.json
Marc-André Lureau3313b612017-01-13 15:41:29 +0100380qapi-schema += doc-bad-symbol.json
Markus Armbrusterf641d062017-03-15 13:57:25 +0100381qapi-schema += doc-bad-union-member.json
Markus Armbruster2028be82017-03-15 13:57:19 +0100382qapi-schema += doc-before-include.json
383qapi-schema += doc-before-pragma.json
Marc-André Lureau3313b612017-01-13 15:41:29 +0100384qapi-schema += doc-duplicated-arg.json
385qapi-schema += doc-duplicated-return.json
386qapi-schema += doc-duplicated-since.json
387qapi-schema += doc-empty-arg.json
388qapi-schema += doc-empty-section.json
389qapi-schema += doc-empty-symbol.json
Markus Armbruster80d1f2e2017-03-20 14:11:54 +0100390qapi-schema += doc-good.json
Marc-André Lureau3313b612017-01-13 15:41:29 +0100391qapi-schema += doc-interleaved-section.json
392qapi-schema += doc-invalid-end.json
393qapi-schema += doc-invalid-end2.json
394qapi-schema += doc-invalid-return.json
395qapi-schema += doc-invalid-section.json
396qapi-schema += doc-invalid-start.json
Markus Armbrusterbc52d032017-03-15 13:56:51 +0100397qapi-schema += doc-missing.json
Marc-André Lureau3313b612017-01-13 15:41:29 +0100398qapi-schema += doc-missing-colon.json
399qapi-schema += doc-missing-expr.json
400qapi-schema += doc-missing-space.json
Markus Armbruster2028be82017-03-15 13:57:19 +0100401qapi-schema += doc-no-symbol.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600402qapi-schema += double-data.json
403qapi-schema += double-type.json
404qapi-schema += duplicate-key.json
405qapi-schema += empty.json
406qapi-schema += enum-bad-name.json
407qapi-schema += enum-bad-prefix.json
408qapi-schema += enum-clash-member.json
409qapi-schema += enum-dict-member.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600410qapi-schema += enum-int-member.json
Eric Blake893e1f22015-12-01 22:20:57 -0700411qapi-schema += enum-member-case.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600412qapi-schema += enum-missing-data.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600413qapi-schema += enum-wrong-data.json
414qapi-schema += escape-outside-string.json
415qapi-schema += escape-too-big.json
416qapi-schema += escape-too-short.json
Eric Blakec8184082016-07-13 21:50:20 -0600417qapi-schema += event-boxed-empty.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600418qapi-schema += event-case.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600419qapi-schema += event-nest-struct.json
420qapi-schema += flat-union-array-branch.json
421qapi-schema += flat-union-bad-base.json
422qapi-schema += flat-union-bad-discriminator.json
423qapi-schema += flat-union-base-any.json
424qapi-schema += flat-union-base-union.json
Eric Blaked220fbc2015-09-29 16:21:03 -0600425qapi-schema += flat-union-clash-member.json
Eric Blake8d25dd12015-09-29 16:21:05 -0600426qapi-schema += flat-union-empty.json
Eric Blaked0b18232016-07-13 21:50:13 -0600427qapi-schema += flat-union-incomplete-branch.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600428qapi-schema += flat-union-inline.json
429qapi-schema += flat-union-int-branch.json
430qapi-schema += flat-union-invalid-branch-key.json
431qapi-schema += flat-union-invalid-discriminator.json
432qapi-schema += flat-union-no-base.json
433qapi-schema += flat-union-optional-discriminator.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600434qapi-schema += flat-union-string-discriminator.json
435qapi-schema += funny-char.json
436qapi-schema += ident-with-escape.json
437qapi-schema += include-before-err.json
438qapi-schema += include-cycle.json
Markus Armbrusterbc52d032017-03-15 13:56:51 +0100439qapi-schema += include-extra-junk.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600440qapi-schema += include-format-err.json
441qapi-schema += include-nested-err.json
442qapi-schema += include-no-file.json
443qapi-schema += include-non-file.json
444qapi-schema += include-relpath.json
445qapi-schema += include-repetition.json
446qapi-schema += include-self-cycle.json
447qapi-schema += include-simple.json
448qapi-schema += indented-expr.json
449qapi-schema += leading-comma-list.json
450qapi-schema += leading-comma-object.json
451qapi-schema += missing-colon.json
452qapi-schema += missing-comma-list.json
453qapi-schema += missing-comma-object.json
454qapi-schema += missing-type.json
455qapi-schema += nested-struct-data.json
456qapi-schema += non-objects.json
Markus Armbrusterbc52d032017-03-15 13:56:51 +0100457qapi-schema += pragma-doc-required-crap.json
458qapi-schema += pragma-extra-junk.json
Markus Armbruster2cfbae32017-03-15 13:56:55 +0100459qapi-schema += pragma-name-case-whitelist-crap.json
Markus Armbrusterbc52d032017-03-15 13:56:51 +0100460qapi-schema += pragma-non-dict.json
Markus Armbruster1554a8f2017-03-15 13:56:54 +0100461qapi-schema += pragma-returns-whitelist-crap.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600462qapi-schema += qapi-schema-test.json
463qapi-schema += quoted-structural-chars.json
464qapi-schema += redefined-builtin.json
465qapi-schema += redefined-command.json
466qapi-schema += redefined-event.json
467qapi-schema += redefined-type.json
Eric Blake19767082015-10-26 16:34:40 -0600468qapi-schema += reserved-command-q.json
Eric Blake59a92fe2015-11-18 01:52:56 -0700469qapi-schema += reserved-enum-q.json
Eric Blake19767082015-10-26 16:34:40 -0600470qapi-schema += reserved-member-has.json
471qapi-schema += reserved-member-q.json
Eric Blake5e59baf2015-10-26 16:35:02 -0600472qapi-schema += reserved-member-u.json
Eric Blake59a92fe2015-11-18 01:52:56 -0700473qapi-schema += reserved-member-underscore.json
Eric Blake19767082015-10-26 16:34:40 -0600474qapi-schema += reserved-type-kind.json
475qapi-schema += reserved-type-list.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600476qapi-schema += returns-alternate.json
477qapi-schema += returns-array-bad.json
478qapi-schema += returns-dict.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600479qapi-schema += returns-unknown.json
480qapi-schema += returns-whitelist.json
481qapi-schema += struct-base-clash-deep.json
482qapi-schema += struct-base-clash.json
483qapi-schema += struct-data-invalid.json
484qapi-schema += struct-member-invalid.json
485qapi-schema += trailing-comma-list.json
486qapi-schema += trailing-comma-object.json
487qapi-schema += type-bypass-bad-gen.json
488qapi-schema += unclosed-list.json
489qapi-schema += unclosed-object.json
490qapi-schema += unclosed-string.json
491qapi-schema += unicode-str.json
Markus Armbruster707fb2d2017-03-15 13:56:57 +0100492qapi-schema += union-base-empty.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600493qapi-schema += union-base-no-discriminator.json
Eric Blake893e1f22015-12-01 22:20:57 -0700494qapi-schema += union-branch-case.json
Eric Blaked220fbc2015-09-29 16:21:03 -0600495qapi-schema += union-clash-branches.json
Eric Blake8d25dd12015-09-29 16:21:05 -0600496qapi-schema += union-empty.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600497qapi-schema += union-invalid-base.json
Eric Blake1ffe8182015-09-29 16:20:59 -0600498qapi-schema += union-optional-branch.json
499qapi-schema += union-unknown.json
500qapi-schema += unknown-escape.json
501qapi-schema += unknown-expr-key.json
Marc-André Lureau3313b612017-01-13 15:41:29 +0100502
503
Eric Blake1ffe8182015-09-29 16:20:59 -0600504check-qapi-schema-y := $(addprefix tests/qapi-schema/, $(qapi-schema))
Markus Armbruster98626572013-07-27 17:41:53 +0200505
Daniel P. Berrange4f04f132017-02-28 12:29:00 +0000506GENERATED_FILES += tests/test-qapi-types.h tests/test-qapi-visit.h \
Markus Armbruster39a18152015-09-16 13:06:28 +0200507 tests/test-qmp-commands.h tests/test-qapi-event.h \
508 tests/test-qmp-introspect.h
Anthony Liguoridbfe06c2012-01-10 13:10:43 -0600509
Marc-André Lureau01b2ffc2017-06-07 20:35:58 +0400510test-obj-y = tests/check-qnum.o tests/check-qstring.o tests/check-qdict.o \
511 tests/check-qlist.o tests/check-qnull.o \
Eric Blake7d7a3372016-04-28 15:45:21 -0600512 tests/check-qjson.o \
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200513 tests/test-coroutine.o tests/test-string-output-visitor.o \
Daniel P. Berrangeb3db2112016-09-30 15:45:27 +0100514 tests/test-string-input-visitor.o tests/test-qobject-output-visitor.o \
Eric Blakea15fcc32016-06-09 10:48:44 -0600515 tests/test-clone-visitor.o \
Markus Armbruster77c47de2017-03-03 13:32:40 +0100516 tests/test-qobject-input-visitor.o \
Eduardo Habkost247c9de2013-01-23 15:58:27 -0200517 tests/test-qmp-commands.o tests/test-visitor-serialization.o \
Laszlo Ersek3953e3a2013-08-20 00:35:40 +0200518 tests/test-x86-cpuid.o tests/test-mul64.o tests/test-int128.o \
Paolo Bonzini8fda74a2013-06-21 09:09:34 +0200519 tests/test-opts-visitor.o tests/test-qmp-event.o \
Emilio G. Cotaff9249b2016-06-08 14:55:27 -0400520 tests/rcutorture.o tests/test-rcu-list.o \
Jose Ricardo Zivianif539fbe2017-01-10 00:10:09 -0200521 tests/test-qdist.o tests/test-shift128.o \
Emilio G. Cota070e3ed2016-06-27 15:02:05 -0400522 tests/test-qht.o tests/qht-bench.o tests/test-qht-par.o \
523 tests/atomic_add-bench.o
Anthony Liguoridbfe06c2012-01-10 13:10:43 -0600524
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200525$(test-obj-y): QEMU_INCLUDES += -Itests
Anthony Liguoric4efe1c2013-04-16 09:45:16 -0500526QEMU_CFLAGS += -I$(SRC_PATH)/tests
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200527
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100528
529# Deps that are common to various different sets of tests below
Xu, Anthony3d1bacc2017-04-04 21:39:39 +0000530test-util-obj-y = libqemuutil.a libqemustub.a
Daniel P. Berrange0c7012e2015-09-02 11:18:16 +0100531test-qom-obj-y = $(qom-obj-y) $(test-util-obj-y)
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100532test-qapi-obj-y = tests/test-qapi-visit.o tests/test-qapi-types.o \
Markus Armbruster39a18152015-09-16 13:06:28 +0200533 tests/test-qapi-event.o tests/test-qmp-introspect.o \
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100534 $(test-qom-obj-y)
Daniel P. Berrangea0901872015-03-13 17:39:26 +0000535test-crypto-obj-y = $(crypto-obj-y) $(test-qom-obj-y)
Daniel P. Berrangeb02db2d2015-03-18 17:25:45 +0000536test-io-obj-y = $(io-obj-y) $(test-crypto-obj-y)
Paolo Bonzini0c330a72017-02-13 14:52:19 +0100537test-block-obj-y = $(block-obj-y) $(test-io-obj-y) tests/iothread.o
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100538
Marc-André Lureau01b2ffc2017-06-07 20:35:58 +0400539tests/check-qnum$(EXESUF): tests/check-qnum.o $(test-util-obj-y)
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100540tests/check-qstring$(EXESUF): tests/check-qstring.o $(test-util-obj-y)
541tests/check-qdict$(EXESUF): tests/check-qdict.o $(test-util-obj-y)
542tests/check-qlist$(EXESUF): tests/check-qlist.o $(test-util-obj-y)
Eric Blake7d7a3372016-04-28 15:45:21 -0600543tests/check-qnull$(EXESUF): tests/check-qnull.o $(test-util-obj-y)
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100544tests/check-qjson$(EXESUF): tests/check-qjson.o $(test-util-obj-y)
545tests/check-qom-interface$(EXESUF): tests/check-qom-interface.o $(test-qom-obj-y)
546tests/check-qom-proplist$(EXESUF): tests/check-qom-proplist.o $(test-qom-obj-y)
Marc-André Lureauea3af472016-10-22 12:53:00 +0300547
Paolo Bonzinic2b38b22017-02-13 14:52:18 +0100548tests/test-char$(EXESUF): tests/test-char.o $(test-util-obj-y) $(qtest-obj-y) $(test-io-obj-y) $(chardev-obj-y)
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100549tests/test-coroutine$(EXESUF): tests/test-coroutine.o $(test-block-obj-y)
550tests/test-aio$(EXESUF): tests/test-aio.o $(test-block-obj-y)
Paolo Bonzini0c330a72017-02-13 14:52:19 +0100551tests/test-aio-multithread$(EXESUF): tests/test-aio-multithread.o $(test-block-obj-y)
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100552tests/test-throttle$(EXESUF): tests/test-throttle.o $(test-block-obj-y)
Alberto Garcia9ef81122016-07-29 17:31:41 +0300553tests/test-blockjob$(EXESUF): tests/test-blockjob.o $(test-block-obj-y) $(test-util-obj-y)
Stefan Hajnoczi6c6f3122015-11-05 18:13:20 -0500554tests/test-blockjob-txn$(EXESUF): tests/test-blockjob-txn.o $(test-block-obj-y) $(test-util-obj-y)
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100555tests/test-thread-pool$(EXESUF): tests/test-thread-pool.o $(test-block-obj-y)
556tests/test-iov$(EXESUF): tests/test-iov.o $(test-util-obj-y)
Vladimir Sementsov-Ogievskiya3b52532017-06-28 15:05:25 +0300557tests/test-hbitmap$(EXESUF): tests/test-hbitmap.o $(test-util-obj-y) $(test-crypto-obj-y)
Eduardo Habkost247c9de2013-01-23 15:58:27 -0200558tests/test-x86-cpuid$(EXESUF): tests/test-x86-cpuid.o
Juan Quintelaaa3544c2017-04-20 12:37:23 +0200559tests/test-xbzrle$(EXESUF): tests/test-xbzrle.o migration/xbzrle.o migration/page_cache.o $(test-util-obj-y)
Eduardo Habkoste3f9fe22013-02-04 16:27:45 -0200560tests/test-cutils$(EXESUF): tests/test-cutils.o util/cutils.o
Paolo Bonzini6046c622013-06-20 16:19:32 +0200561tests/test-int128$(EXESUF): tests/test-int128.o
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100562tests/rcutorture$(EXESUF): tests/rcutorture.o $(test-util-obj-y)
563tests/test-rcu-list$(EXESUF): tests/test-rcu-list.o $(test-util-obj-y)
Emilio G. Cotaff9249b2016-06-08 14:55:27 -0400564tests/test-qdist$(EXESUF): tests/test-qdist.o $(test-util-obj-y)
Emilio G. Cota1a954042016-06-08 14:55:29 -0400565tests/test-qht$(EXESUF): tests/test-qht.o $(test-util-obj-y)
Emilio G. Cota896a9ee2016-06-08 14:55:31 -0400566tests/test-qht-par$(EXESUF): tests/test-qht-par.o tests/qht-bench$(EXESUF) $(test-util-obj-y)
Emilio G. Cota515864a2016-06-08 14:55:30 -0400567tests/qht-bench$(EXESUF): tests/qht-bench.o $(test-util-obj-y)
Richard Hendersonefad6682016-08-29 11:46:16 -0700568tests/test-bufferiszero$(EXESUF): tests/test-bufferiszero.o $(test-util-obj-y)
Emilio G. Cota070e3ed2016-06-27 15:02:05 -0400569tests/atomic_add-bench$(EXESUF): tests/atomic_add-bench.o $(test-util-obj-y)
Paolo Bonzini8fda74a2013-06-21 09:09:34 +0200570
Eduardo Habkost747b0cb2013-07-10 17:08:40 -0300571tests/test-qdev-global-props$(EXESUF): tests/test-qdev-global-props.o \
Igor Mammedov5e954942014-02-05 16:36:52 +0100572 hw/core/qdev.o hw/core/qdev-properties.o hw/core/hotplug.o\
Andreas Färbera62c8912015-07-13 19:35:41 +0200573 hw/core/bus.o \
Eduardo Habkost747b0cb2013-07-10 17:08:40 -0300574 hw/core/irq.o \
Paolo Bonzini6b1566c2014-03-17 13:40:23 +1100575 hw/core/fw-path-provider.o \
Paolo Bonzini2f7b92a2016-10-24 11:19:49 +0200576 hw/core/reset.o \
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100577 $(test-qapi-obj-y)
Eduardo Habkost2668b4b2013-11-28 12:01:18 -0200578tests/test-vmstate$(EXESUF): tests/test-vmstate.o \
Juan Quintela576d1ab2017-04-20 13:41:20 +0200579 migration/vmstate.o migration/vmstate-types.o migration/qemu-file.o \
Daniel P. Berrange89258392016-04-27 11:05:08 +0100580 migration/qemu-file-channel.o migration/qjson.o \
581 $(test-io-obj-y)
Paolo Bonzinic2b38b22017-02-13 14:52:18 +0100582tests/test-timed-average$(EXESUF): tests/test-timed-average.o $(test-util-obj-y)
Daniel P. Berrange89bc0b62015-11-23 15:24:50 +0000583tests/test-base64$(EXESUF): tests/test-base64.o \
584 libqemuutil.a libqemustub.a
Paolo Bonzini24b94622016-10-17 19:22:17 +0100585tests/ptimer-test$(EXESUF): tests/ptimer-test.o tests/ptimer-test-stubs.o hw/core/ptimer.o libqemustub.a
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200586
Alex Bennée35145522016-03-15 14:30:20 +0000587tests/test-logging$(EXESUF): tests/test-logging.o $(test-util-obj-y)
588
Changlong Xieb3110462016-07-27 15:01:51 +0800589tests/test-replication$(EXESUF): tests/test-replication.o $(test-util-obj-y) \
590 $(test-block-obj-y)
591
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200592tests/test-qapi-types.c tests/test-qapi-types.h :\
Markus Armbrusterdf3e21a2015-04-02 13:38:48 +0200593$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)
Lluís Vilanova0a607742014-05-02 15:52:24 +0200594 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py \
Markus Armbruster16d80f62015-04-02 13:32:16 +0200595 $(gen-out-type) -o tests -p "test-" $<, \
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100596 "GEN","$@")
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200597tests/test-qapi-visit.c tests/test-qapi-visit.h :\
Markus Armbrusterdf3e21a2015-04-02 13:38:48 +0200598$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py)
Lluís Vilanova0a607742014-05-02 15:52:24 +0200599 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py \
Markus Armbruster16d80f62015-04-02 13:32:16 +0200600 $(gen-out-type) -o tests -p "test-" $<, \
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100601 "GEN","$@")
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200602tests/test-qmp-commands.h tests/test-qmp-marshal.c :\
Markus Armbrusterdf3e21a2015-04-02 13:38:48 +0200603$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py)
Lluís Vilanova0a607742014-05-02 15:52:24 +0200604 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py \
Markus Armbruster16d80f62015-04-02 13:32:16 +0200605 $(gen-out-type) -o tests -p "test-" $<, \
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100606 "GEN","$@")
Wenchao Xiaf6dadb02014-06-18 08:43:29 +0200607tests/test-qapi-event.c tests/test-qapi-event.h :\
Markus Armbrusterdf3e21a2015-04-02 13:38:48 +0200608$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-event.py $(qapi-py)
Wenchao Xiaf6dadb02014-06-18 08:43:29 +0200609 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-event.py \
Markus Armbruster16d80f62015-04-02 13:32:16 +0200610 $(gen-out-type) -o tests -p "test-" $<, \
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100611 "GEN","$@")
Markus Armbruster39a18152015-09-16 13:06:28 +0200612tests/test-qmp-introspect.c tests/test-qmp-introspect.h :\
613$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-introspect.py $(qapi-py)
614 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-introspect.py \
615 $(gen-out-type) -o tests -p "test-" $<, \
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100616 "GEN","$@")
Anthony Liguoridbfe06c2012-01-10 13:10:43 -0600617
Markus Armbruster80d1f2e2017-03-20 14:11:54 +0100618tests/qapi-schema/doc-good.test.texi: $(SRC_PATH)/tests/qapi-schema/doc-good.json $(SRC_PATH)/scripts/qapi2texi.py $(qapi-py)
619 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi2texi.py $< > $@,"GEN","$@")
620
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100621tests/test-string-output-visitor$(EXESUF): tests/test-string-output-visitor.o $(test-qapi-obj-y)
622tests/test-string-input-visitor$(EXESUF): tests/test-string-input-visitor.o $(test-qapi-obj-y)
623tests/test-qmp-event$(EXESUF): tests/test-qmp-event.o $(test-qapi-obj-y)
Daniel P. Berrangeb3db2112016-09-30 15:45:27 +0100624tests/test-qobject-output-visitor$(EXESUF): tests/test-qobject-output-visitor.o $(test-qapi-obj-y)
Eric Blakea15fcc32016-06-09 10:48:44 -0600625tests/test-clone-visitor$(EXESUF): tests/test-clone-visitor.o $(test-qapi-obj-y)
Daniel P. Berrangeb3db2112016-09-30 15:45:27 +0100626tests/test-qobject-input-visitor$(EXESUF): tests/test-qobject-input-visitor.o $(test-qapi-obj-y)
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100627tests/test-qmp-commands$(EXESUF): tests/test-qmp-commands.o tests/test-qmp-marshal.o $(test-qapi-obj-y)
628tests/test-visitor-serialization$(EXESUF): tests/test-visitor-serialization.o $(test-qapi-obj-y)
629tests/test-opts-visitor$(EXESUF): tests/test-opts-visitor.o $(test-qapi-obj-y)
Paolo Bonzini2d7799f2012-02-09 11:21:03 +0100630
Jose Ricardo Zivianif539fbe2017-01-10 00:10:09 -0200631tests/test-shift128$(EXESUF): tests/test-shift128.o $(test-util-obj-y)
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100632tests/test-mul64$(EXESUF): tests/test-mul64.o $(test-util-obj-y)
633tests/test-bitops$(EXESUF): tests/test-bitops.o $(test-util-obj-y)
Alex Bennéec3f89622016-12-09 14:36:00 +0000634tests/test-bitcnt$(EXESUF): tests/test-bitcnt.o $(test-util-obj-y)
Daniel P. Berrangefb377262015-09-02 10:57:27 +0100635tests/test-crypto-hash$(EXESUF): tests/test-crypto-hash.o $(test-crypto-obj-y)
Longpeng(Mike)4fd460b2016-12-13 18:43:00 +0800636tests/test-crypto-hmac$(EXESUF): tests/test-crypto-hmac.o $(test-crypto-obj-y)
Daniel P. Berrangefb377262015-09-02 10:57:27 +0100637tests/test-crypto-cipher$(EXESUF): tests/test-crypto-cipher.o $(test-crypto-obj-y)
Daniel P. Berrangeac1d8872015-10-14 09:58:38 +0100638tests/test-crypto-secret$(EXESUF): tests/test-crypto-secret.o $(test-crypto-obj-y)
Daniel P. Berrange84f7f182016-02-11 14:00:17 +0000639tests/test-crypto-xts$(EXESUF): tests/test-crypto-xts.o $(test-crypto-obj-y)
Daniel P. Berrange90246032015-09-21 17:25:34 +0100640
641tests/crypto-tls-x509-helpers.o-cflags := $(TASN1_CFLAGS)
642tests/crypto-tls-x509-helpers.o-libs := $(TASN1_LIBS)
643tests/pkix_asn1_tab.o-cflags := $(TASN1_CFLAGS)
644
645tests/test-crypto-tlscredsx509.o-cflags := $(TASN1_CFLAGS)
Daniel P. Berrange9a2fd432015-04-13 14:01:39 +0100646tests/test-crypto-tlscredsx509$(EXESUF): tests/test-crypto-tlscredsx509.o \
647 tests/crypto-tls-x509-helpers.o tests/pkix_asn1_tab.o $(test-crypto-obj-y)
Daniel P. Berrange90246032015-09-21 17:25:34 +0100648
649tests/test-crypto-tlssession.o-cflags := $(TASN1_CFLAGS)
Daniel P. Berranged321e1e2015-03-02 17:23:31 +0000650tests/test-crypto-tlssession$(EXESUF): tests/test-crypto-tlssession.o \
651 tests/crypto-tls-x509-helpers.o tests/pkix_asn1_tab.o $(test-crypto-obj-y)
Daniel P. Berrangeb02db2d2015-03-18 17:25:45 +0000652tests/test-io-task$(EXESUF): tests/test-io-task.o $(test-io-obj-y)
Daniel P. Berrange559607e2015-02-27 16:19:33 +0000653tests/test-io-channel-socket$(EXESUF): tests/test-io-channel-socket.o \
654 tests/io-channel-helpers.o $(test-io-obj-y)
Daniel P. Berranged6e48862015-02-27 18:25:25 +0000655tests/test-io-channel-file$(EXESUF): tests/test-io-channel-file.o \
656 tests/io-channel-helpers.o $(test-io-obj-y)
Daniel P. Berrangeed8ee422015-03-02 18:13:13 +0000657tests/test-io-channel-tls$(EXESUF): tests/test-io-channel-tls.o \
658 tests/crypto-tls-x509-helpers.o tests/pkix_asn1_tab.o \
659 tests/io-channel-helpers.o $(test-io-obj-y)
Daniel P. Berrange195e14d2015-08-27 16:25:30 +0100660tests/test-io-channel-command$(EXESUF): tests/test-io-channel-command.o \
661 tests/io-channel-helpers.o $(test-io-obj-y)
Daniel P. Berranged98e4eb2015-09-15 17:27:33 +0100662tests/test-io-channel-buffer$(EXESUF): tests/test-io-channel-buffer.o \
663 tests/io-channel-helpers.o $(test-io-obj-y)
Daniel P. Berrange37788f22015-10-14 13:14:04 +0100664tests/test-crypto-pbkdf$(EXESUF): tests/test-crypto-pbkdf.o $(test-crypto-obj-y)
Daniel P. Berrangecb730892015-10-15 12:35:28 +0100665tests/test-crypto-ivgen$(EXESUF): tests/test-crypto-ivgen.o $(test-crypto-obj-y)
Daniel P. Berrange5a95e0f2015-10-23 16:14:25 +0100666tests/test-crypto-afsplit$(EXESUF): tests/test-crypto-afsplit.o $(test-crypto-obj-y)
Daniel P. Berrange7d969012015-10-24 11:44:13 +0100667tests/test-crypto-block$(EXESUF): tests/test-crypto-block.o $(test-crypto-obj-y)
Richard Hendersonf4c0f982013-02-16 12:47:01 -0800668
Marc Marí292be092014-10-23 10:12:42 +0200669libqos-obj-y = tests/libqos/pci.o tests/libqos/fw_cfg.o tests/libqos/malloc.o
John Snow90e5add2015-01-19 15:15:55 -0500670libqos-obj-y += tests/libqos/i2c.o tests/libqos/libqos.o
Laurent Vivier8d6ef7c2016-09-13 14:52:44 +0200671libqos-spapr-obj-y = $(libqos-obj-y) tests/libqos/malloc-spapr.o
672libqos-spapr-obj-y += tests/libqos/libqos-spapr.o
Laurent Viviereeddd592016-09-13 14:52:45 +0200673libqos-spapr-obj-y += tests/libqos/rtas.o
Laurent Viviercf716b32016-09-29 12:32:44 +0200674libqos-spapr-obj-y += tests/libqos/pci-spapr.o
Markus Armbruster26491a32013-06-26 15:52:22 +0200675libqos-pc-obj-y = $(libqos-obj-y) tests/libqos/pci-pc.o
John Snow90e5add2015-01-19 15:15:55 -0500676libqos-pc-obj-y += tests/libqos/malloc-pc.o tests/libqos/libqos-pc.o
John Snow9a75b0a2015-01-19 15:16:03 -0500677libqos-pc-obj-y += tests/libqos/ahci.o
Andreas Färbercc9936a2013-05-02 15:56:26 +0200678libqos-omap-obj-y = $(libqos-obj-y) tests/libqos/i2c-omap.o
Jean-Christophe Dubois7f398622015-09-07 10:39:31 +0100679libqos-imx-obj-y = $(libqos-obj-y) tests/libqos/i2c-imx.o
Laurent Vivieraa9026f2016-09-29 12:32:47 +0200680libqos-usb-obj-y = $(libqos-spapr-obj-y) $(libqos-pc-obj-y) tests/libqos/usb.o
Laurent Vivier30ca4402016-10-17 12:30:24 +0200681libqos-virtio-obj-y = $(libqos-spapr-obj-y) $(libqos-pc-obj-y) tests/libqos/virtio.o tests/libqos/virtio-pci.o tests/libqos/virtio-mmio.o tests/libqos/malloc-generic.o
Anthony Liguoric4efe1c2013-04-16 09:45:16 -0500682
Markus Armbrusterf66e7ac2017-03-03 13:32:23 +0100683tests/qmp-test$(EXESUF): tests/qmp-test.o
Markus Armbruster2d1abb82015-10-01 10:59:56 +0200684tests/device-introspect-test$(EXESUF): tests/device-introspect-test.o
Paolo Bonziniff667e22012-12-21 09:45:20 +0100685tests/rtc-test$(EXESUF): tests/rtc-test.o
686tests/m48t59-test$(EXESUF): tests/m48t59-test.o
Paolo Bonzini8fefa312013-07-22 15:54:34 +0200687tests/endianness-test$(EXESUF): tests/endianness-test.o
Alexey Kardashevskiy04e9a202014-02-10 14:52:56 +1100688tests/spapr-phb-test$(EXESUF): tests/spapr-phb-test.o $(libqos-obj-y)
Thomas Huthfcbf4a32016-06-14 15:57:56 +0200689tests/prom-env-test$(EXESUF): tests/prom-env-test.o $(libqos-obj-y)
Laurent Viviereeddd592016-09-13 14:52:45 +0200690tests/rtas-test$(EXESUF): tests/rtas-test.o $(libqos-spapr-obj-y)
Paolo Bonziniff667e22012-12-21 09:45:20 +0100691tests/fdc-test$(EXESUF): tests/fdc-test.o
Kevin Wolfacbe4802013-05-08 11:18:41 +0200692tests/ide-test$(EXESUF): tests/ide-test.o $(libqos-pc-obj-y)
John Snow90e5add2015-01-19 15:15:55 -0500693tests/ahci-test$(EXESUF): tests/ahci-test.o $(libqos-pc-obj-y)
Corey Minyard24f976d2015-12-17 12:50:09 -0600694tests/ipmi-kcs-test$(EXESUF): tests/ipmi-kcs-test.o
695tests/ipmi-bt-test$(EXESUF): tests/ipmi-bt-test.o
Paolo Bonziniff667e22012-12-21 09:45:20 +0100696tests/hd-geo-test$(EXESUF): tests/hd-geo-test.o
Andreas Färber530a7e42013-06-26 15:52:16 +0200697tests/boot-order-test$(EXESUF): tests/boot-order-test.o $(libqos-obj-y)
Thomas Huthd2ab58f2016-09-03 11:57:51 +0200698tests/boot-serial-test$(EXESUF): tests/boot-serial-test.o $(libqos-obj-y)
Victor Kaplansky4e082562016-02-14 18:59:27 +0200699tests/bios-tables-test$(EXESUF): tests/bios-tables-test.o \
Ben Warren3248f1b2017-02-16 15:15:38 -0800700 tests/boot-sector.o tests/acpi-utils.o $(libqos-obj-y)
Victor Kaplansky4e082562016-02-14 18:59:27 +0200701tests/pxe-test$(EXESUF): tests/pxe-test.o tests/boot-sector.o $(libqos-obj-y)
Andreas Färbercc9936a2013-05-02 15:56:26 +0200702tests/tmp105-test$(EXESUF): tests/tmp105-test.o $(libqos-omap-obj-y)
Jean-Christophe Dubois7f398622015-09-07 10:39:31 +0100703tests/ds1338-test$(EXESUF): tests/ds1338-test.o $(libqos-imx-obj-y)
Cédric Le Goater7a2334f2016-10-17 19:22:17 +0100704tests/m25p80-test$(EXESUF): tests/m25p80-test.o
Anthony Liguori9bda4132013-04-16 09:45:19 -0500705tests/i440fx-test$(EXESUF): tests/i440fx-test.o $(libqos-pc-obj-y)
Gerd Hoffmann66e2ec22015-04-14 15:11:36 +0200706tests/q35-test$(EXESUF): tests/q35-test.o $(libqos-pc-obj-y)
Anthony Liguoribf2a38d2013-04-16 09:45:21 -0500707tests/fw_cfg-test$(EXESUF): tests/fw_cfg-test.o $(libqos-pc-obj-y)
Andreas Färbera21baf72013-11-07 18:25:10 +0100708tests/e1000-test$(EXESUF): tests/e1000-test.o
Dmitry Fleytman7c375e22016-06-01 11:23:46 +0300709tests/e1000e-test$(EXESUF): tests/e1000e-test.o $(libqos-pc-obj-y)
Frediano Ziglio069bb582015-01-08 18:38:23 +0000710tests/rtl8139-test$(EXESUF): tests/rtl8139-test.o $(libqos-pc-obj-y)
Andreas Färber85f68d52013-11-07 18:53:28 +0100711tests/pcnet-test$(EXESUF): tests/pcnet-test.o
David Gibsonca8e4bf2016-11-15 10:09:46 +1100712tests/pnv-xscom-test$(EXESUF): tests/pnv-xscom-test.o
Andreas Färber92838a12013-11-07 19:18:46 +0100713tests/eepro100-test$(EXESUF): tests/eepro100-test.o
Andreas Färber4a053e72013-11-07 18:37:34 +0100714tests/vmxnet3-test$(EXESUF): tests/vmxnet3-test.o
Andreas Färber5297ea62014-02-09 04:01:37 +0100715tests/ne2000-test$(EXESUF): tests/ne2000-test.o
Paolo Bonzinif52b7682014-07-15 14:57:06 +0200716tests/wdt_ib700-test$(EXESUF): tests/wdt_ib700-test.o
Paulo Alcantara45dcdb92015-06-28 14:58:57 -0300717tests/tco-test$(EXESUF): tests/tco-test.o $(libqos-pc-obj-y)
Andreas Färber02063aa2014-02-09 04:39:47 +0100718tests/virtio-balloon-test$(EXESUF): tests/virtio-balloon-test.o
Marc Marí311e6662014-09-01 12:07:54 +0200719tests/virtio-blk-test$(EXESUF): tests/virtio-blk-test.o $(libqos-virtio-obj-y)
Jason Wang2af40252015-07-17 15:25:53 +0800720tests/virtio-net-test$(EXESUF): tests/virtio-net-test.o $(libqos-pc-obj-y) $(libqos-virtio-obj-y)
Igor Mammedovd1f3fc22014-09-26 09:28:09 +0000721tests/virtio-rng-test$(EXESUF): tests/virtio-rng-test.o $(libqos-pc-obj-y)
Fam Zhengebe7d8b2015-04-24 19:35:16 +0800722tests/virtio-scsi-test$(EXESUF): tests/virtio-scsi-test.o $(libqos-virtio-obj-y)
Greg Kurz557a4cc2016-09-16 08:58:35 +0200723tests/virtio-9p-test$(EXESUF): tests/virtio-9p-test.o $(libqos-virtio-obj-y)
Andreas Färberaa974052014-02-21 17:36:57 +0100724tests/virtio-serial-test$(EXESUF): tests/virtio-serial-test.o
Andreas Färber6e8114a2014-02-21 17:49:12 +0100725tests/virtio-console-test$(EXESUF): tests/virtio-console-test.o
Andreas Färber76491072014-02-09 03:48:44 +0100726tests/tpci200-test$(EXESUF): tests/tpci200-test.o
Gerd Hoffmann0850fd52014-04-28 11:01:13 +0200727tests/display-vga-test$(EXESUF): tests/display-vga-test.o
Andreas Färber37146822014-02-09 12:24:15 +0100728tests/ipoctal232-test$(EXESUF): tests/ipoctal232-test.o
Andreas Färber7c41f212013-07-29 05:44:47 +0200729tests/qom-test$(EXESUF): tests/qom-test.o
Thomas Huth78f86a22017-04-25 07:16:47 +0200730tests/test-hmp$(EXESUF): tests/test-hmp.o
Markus Armbrustere2f3f222014-10-02 16:51:31 +0200731tests/drive_del-test$(EXESUF): tests/drive_del-test.o $(libqos-pc-obj-y)
Stefan Hajnoczi43cd2092013-10-30 14:54:35 +0100732tests/qdev-monitor-test$(EXESUF): tests/qdev-monitor-test.o $(libqos-pc-obj-y)
Andreas Färberfc967792014-02-21 22:19:43 +0100733tests/nvme-test$(EXESUF): tests/nvme-test.o
Andreas Färberabc53732014-02-21 20:38:48 +0100734tests/pvpanic-test$(EXESUF): tests/pvpanic-test.o
Andreas Färbere683eb92014-02-21 22:43:43 +0100735tests/i82801b11-test$(EXESUF): tests/i82801b11-test.o
Andreas Färberd7b50c02014-03-30 19:00:05 +0200736tests/ac97-test$(EXESUF): tests/ac97-test.o
Andreas Färber8fa74c92014-03-30 19:05:20 +0200737tests/es1370-test$(EXESUF): tests/es1370-test.o
Andreas Färberfbaf4452014-03-30 19:22:48 +0200738tests/intel-hda-test$(EXESUF): tests/intel-hda-test.o
Andreas Färberefbf5df2014-03-30 20:02:00 +0200739tests/ioh3420-test$(EXESUF): tests/ioh3420-test.o
Igor Mammedovb3937682014-09-26 09:28:14 +0000740tests/usb-hcd-ohci-test$(EXESUF): tests/usb-hcd-ohci-test.o $(libqos-usb-obj-y)
Igor Mammedovfbd942c2014-09-26 09:28:13 +0000741tests/usb-hcd-uhci-test$(EXESUF): tests/usb-hcd-uhci-test.o $(libqos-usb-obj-y)
Igor Mammedovb0354ec2014-09-26 09:28:12 +0000742tests/usb-hcd-ehci-test$(EXESUF): tests/usb-hcd-ehci-test.o $(libqos-usb-obj-y)
Igor Mammedovb3937682014-09-26 09:28:14 +0000743tests/usb-hcd-xhci-test$(EXESUF): tests/usb-hcd-xhci-test.o $(libqos-usb-obj-y)
Andreas Färber7fe55c32015-03-13 17:21:11 +0100744tests/pc-cpu-test$(EXESUF): tests/pc-cpu-test.o
Dr. David Alan Gilbertea0c6d62016-06-13 12:16:43 +0100745tests/postcopy-test$(EXESUF): tests/postcopy-test.o
Paolo Bonzinic2b38b22017-02-13 14:52:18 +0100746tests/vhost-user-test$(EXESUF): tests/vhost-user-test.o $(test-util-obj-y) \
Marc-André Lureau32d955a2016-12-12 15:49:01 +0300747 $(qtest-obj-y) $(test-io-obj-y) $(libqos-virtio-obj-y) $(libqos-pc-obj-y) \
748 $(chardev-obj-y)
Wenchao Xiaf93296e2013-09-06 11:24:32 +0800749tests/qemu-iotests/socket_scm_helper$(EXESUF): tests/qemu-iotests/socket_scm_helper.o
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100750tests/test-qemu-opts$(EXESUF): tests/test-qemu-opts.o $(test-util-obj-y)
Markus Armbruster599c1562017-03-20 13:55:46 +0100751tests/test-keyval$(EXESUF): tests/test-keyval.o $(test-util-obj-y) $(test-qapi-obj-y)
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100752tests/test-write-threshold$(EXESUF): tests/test-write-threshold.o $(test-block-obj-y)
Yang Hongyang89b12732015-10-07 11:52:22 +0800753tests/test-netfilter$(EXESUF): tests/test-netfilter.o $(qtest-obj-y)
Zhang Chen06809ec2016-03-15 15:41:34 +0800754tests/test-filter-mirror$(EXESUF): tests/test-filter-mirror.o $(qtest-obj-y)
Zhang Chen9fd3c5d2016-03-17 16:16:27 +0800755tests/test-filter-redirector$(EXESUF): tests/test-filter-redirector.o $(qtest-obj-y)
Eduardo Habkost6efef582016-09-20 17:11:39 -0300756tests/test-x86-cpuid-compat$(EXESUF): tests/test-x86-cpuid-compat.o $(qtest-obj-y)
Laurent Vivier2bf25e02017-01-05 16:29:48 +0100757tests/ivshmem-test$(EXESUF): tests/ivshmem-test.o contrib/ivshmem-server/ivshmem-server.o $(libqos-pc-obj-y) $(libqos-spapr-obj-y)
Paolo Bonzini660174f2017-06-01 16:45:16 +0200758tests/megasas-test$(EXESUF): tests/megasas-test.o $(libqos-spapr-obj-y) $(libqos-pc-obj-y)
Marc-André Lureaue10e7982016-10-18 12:24:05 +0300759tests/vhost-user-bridge$(EXESUF): tests/vhost-user-bridge.o contrib/libvhost-user/libvhost-user.o $(test-util-obj-y)
Fam Zhengc739cdd2016-09-21 12:27:24 +0800760tests/test-uuid$(EXESUF): tests/test-uuid.o $(test-util-obj-y)
Dmitry Osipenko882fac32016-10-24 16:26:54 +0100761tests/test-arm-mptimer$(EXESUF): tests/test-arm-mptimer.o
Markus Armbruster6c873d12017-02-28 22:27:03 +0100762tests/test-qapi-util$(EXESUF): tests/test-qapi-util.o $(test-util-obj-y)
Igor Mammedov63baf8b2017-05-03 14:56:55 +0200763tests/numa-test$(EXESUF): tests/numa-test.o
Michael S. Tsirkin4871b512017-07-14 18:30:45 +0300764tests/vmgenid-test$(EXESUF): tests/vmgenid-test.o tests/boot-sector.o tests/acpi-utils.o
Blue Swirld2a16f72012-03-30 17:39:33 +0000765
Daniel P. Berrange409437e2016-07-20 14:23:13 +0100766tests/migration/stress$(EXESUF): tests/migration/stress.o
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100767 $(call quiet-command, $(LINKPROG) -static -O3 $(PTHREAD_LIB) -o $@ $< ,"LINK","$(TARGET_DIR)$@")
Daniel P. Berrange409437e2016-07-20 14:23:13 +0100768
769INITRD_WORK_DIR=tests/migration/initrd
770
771tests/migration/initrd-stress.img: tests/migration/stress$(EXESUF)
772 mkdir -p $(INITRD_WORK_DIR)
773 cp $< $(INITRD_WORK_DIR)/init
774 (cd $(INITRD_WORK_DIR) && (find | cpio --quiet -o -H newc | gzip -9)) > $@
775 rm $(INITRD_WORK_DIR)/init
776 rmdir $(INITRD_WORK_DIR)
777
Nikolay Nikolaeve06cbc32014-06-19 20:35:42 +0300778ifeq ($(CONFIG_POSIX),y)
779LIBS += -lutil
780endif
Nikolay Nikolaeva77e6b12014-06-10 13:03:23 +0300781
Anthony Liguori49ee3592012-03-28 15:42:05 +0200782# QTest rules
783
784TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_DIRS)))
Stefan Hajnoczi5c4e24c2014-03-28 10:55:54 +0100785ifeq ($(CONFIG_POSIX),y)
Markus Armbrustere253c282015-10-01 10:59:53 +0200786QTEST_TARGETS = $(TARGETS)
Stefan Hajnoczi5c4e24c2014-03-28 10:55:54 +0100787check-qtest-y=$(foreach TARGET,$(TARGETS), $(check-qtest-$(TARGET)-y))
Markus Armbrustere253c282015-10-01 10:59:53 +0200788check-qtest-y += $(check-qtest-generic-y)
789else
790QTEST_TARGETS =
Stefan Hajnoczi5c4e24c2014-03-28 10:55:54 +0100791endif
Anthony Liguori49ee3592012-03-28 15:42:05 +0200792
Daniel P. Berrangeb1245332015-09-02 11:35:52 +0100793qtest-obj-y = tests/libqtest.o $(test-util-obj-y)
Anthony Liguori49ee3592012-03-28 15:42:05 +0200794$(check-qtest-y): $(qtest-obj-y)
795
Marc-André Lureau62c39b32015-10-02 14:58:18 +0200796tests/test-qga: tests/test-qga.o $(qtest-obj-y)
797
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200798.PHONY: check-help
799check-help:
800 @echo "Regression testing targets:"
801 @echo
802 @echo " make check Run all tests"
Anthony Liguori49ee3592012-03-28 15:42:05 +0200803 @echo " make check-qtest-TARGET Run qtest tests for given target"
804 @echo " make check-qtest Run qtest tests"
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200805 @echo " make check-unit Run qobject tests"
Markus Armbruster98626572013-07-27 17:41:53 +0200806 @echo " make check-qapi-schema Run QAPI schema tests"
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200807 @echo " make check-block Run block tests"
808 @echo " make check-report.html Generates an HTML test report"
Wenchao Xia2cdfb122013-09-26 08:42:56 +0800809 @echo " make check-clean Clean the tests"
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200810 @echo
811 @echo "Please note that HTML reports do not regenerate if the unit tests"
812 @echo "has not changed."
813 @echo
814 @echo "The variable SPEED can be set to control the gtester speed setting."
815 @echo "Default options are -k and (for make V=1) --verbose; they can be"
816 @echo "changed with variable GTESTER_OPTIONS."
Paolo Bonzini2d7799f2012-02-09 11:21:03 +0100817
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200818SPEED = quick
819GTESTER_OPTIONS = -k $(if $(V),--verbose,-q)
Blue Swirl1d728c32012-05-01 18:45:39 +0000820GCOV_OPTIONS = -n $(if $(V),-f,)
Anthony Liguoridbfe06c2012-01-10 13:10:43 -0600821
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200822# gtester tests, possibly with verbose output
Anthony Liguoridbfe06c2012-01-10 13:10:43 -0600823
Anthony Liguori49ee3592012-03-28 15:42:05 +0200824.PHONY: $(patsubst %, check-qtest-%, $(QTEST_TARGETS))
825$(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-qtest-%: $(check-qtest-y)
Blue Swirl1d728c32012-05-01 18:45:39 +0000826 $(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,)
Anthony Liguori49ee3592012-03-28 15:42:05 +0200827 $(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \
John Snow122fdf22015-04-28 15:27:51 -0400828 QTEST_QEMU_IMG=qemu-img$(EXESUF) \
Stefan Hajnoczi04129602013-05-27 15:28:51 +0200829 MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100830 gtester $(GTESTER_OPTIONS) -m=$(SPEED) $(check-qtest-$*-y) $(check-qtest-generic-y),"GTESTER","$@")
Markus Armbruster2d1abb82015-10-01 10:59:56 +0200831 $(if $(CONFIG_GCOV),@for f in $(gcov-files-$*-y) $(gcov-files-generic-y); do \
Blue Swirl1d728c32012-05-01 18:45:39 +0000832 echo Gcov report for $$f:;\
833 $(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \
834 done,)
Anthony Liguori49ee3592012-03-28 15:42:05 +0200835
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200836.PHONY: $(patsubst %, check-%, $(check-unit-y))
837$(patsubst %, check-%, $(check-unit-y)): check-%: %
Blue Swirl1d728c32012-05-01 18:45:39 +0000838 $(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,)
Stefan Hajnoczi04129602013-05-27 15:28:51 +0200839 $(call quiet-command, \
840 MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100841 gtester $(GTESTER_OPTIONS) -m=$(SPEED) $*,"GTESTER","$*")
Markus Armbruster2d1abb82015-10-01 10:59:56 +0200842 $(if $(CONFIG_GCOV),@for f in $(gcov-files-$(subst tests/,,$*)-y) $(gcov-files-generic-y); do \
Blue Swirl1d728c32012-05-01 18:45:39 +0000843 echo Gcov report for $$f:;\
844 $(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \
845 done,)
Anthony Liguoridbfe06c2012-01-10 13:10:43 -0600846
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200847# gtester tests with XML output
848
Anthony Liguori49ee3592012-03-28 15:42:05 +0200849$(patsubst %, check-report-qtest-%.xml, $(QTEST_TARGETS)): check-report-qtest-%.xml: $(check-qtest-y)
850 $(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \
Stefan Weil47c71992015-07-20 12:21:18 -0400851 QTEST_QEMU_IMG=qemu-img$(EXESUF) \
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100852 gtester -q $(GTESTER_OPTIONS) -o $@ -m=$(SPEED) $(check-qtest-$*-y) $(check-qtest-generic-y),"GTESTER","$@")
Anthony Liguori49ee3592012-03-28 15:42:05 +0200853
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200854check-report-unit.xml: $(check-unit-y)
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100855 $(call quiet-command,gtester -q $(GTESTER_OPTIONS) -o $@ -m=$(SPEED) $^,"GTESTER","$@")
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200856
857# Reports and overall runs
858
Anthony Liguori49ee3592012-03-28 15:42:05 +0200859check-report.xml: $(patsubst %,check-report-qtest-%.xml, $(QTEST_TARGETS)) check-report-unit.xml
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100860 $(call quiet-command,$(SRC_PATH)/scripts/gtester-cat $^ > $@,"GEN","$@")
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200861
862check-report.html: check-report.xml
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100863 $(call quiet-command,gtester-report $< > $@,"GEN","$@")
Kevin Wolf89594492012-03-08 12:29:00 +0100864
Kevin Wolfb8c6f292012-03-09 13:37:40 +0100865
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200866# Other tests
Kevin Wolfb8c6f292012-03-09 13:37:40 +0100867
Wenchao Xia22ee5a52013-09-26 08:42:55 +0800868QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
869
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200870.PHONY: check-tests/qemu-iotests-quick.sh
Wenchao Xia22ee5a52013-09-26 08:42:55 +0800871check-tests/qemu-iotests-quick.sh: tests/qemu-iotests-quick.sh qemu-img$(EXESUF) qemu-io$(EXESUF) $(QEMU_IOTESTS_HELPERS-y)
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200872 $<
Kevin Wolfb8c6f292012-03-09 13:37:40 +0100873
Markus Armbruster98626572013-07-27 17:41:53 +0200874.PHONY: $(patsubst %, check-%, $(check-qapi-schema-y))
875$(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json
Lluís Vilanova0a607742014-05-02 15:52:24 +0200876 $(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts \
877 $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py \
Lluís Vilanova33aaad52014-05-02 15:52:35 +0200878 $^ >$*.test.out 2>$*.test.err; \
Lluís Vilanova0a607742014-05-02 15:52:24 +0200879 echo $$? >$*.test.exit, \
Peter Maydell0bdb12c2016-10-04 17:27:21 +0100880 "TEST","$*.out")
Markus Armbrusterd8039e52013-09-24 09:43:39 +0200881 @diff -q $(SRC_PATH)/$*.out $*.test.out
Lluís Vilanova33aaad52014-05-02 15:52:35 +0200882 @# Sanitize error messages (make them independent of build directory)
883 @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff -q $(SRC_PATH)/$*.err -
Markus Armbrusterd8039e52013-09-24 09:43:39 +0200884 @diff -q $(SRC_PATH)/$*.exit $*.test.exit
Markus Armbruster98626572013-07-27 17:41:53 +0200885
Markus Armbruster80d1f2e2017-03-20 14:11:54 +0100886.PHONY: check-tests/qapi-schema/doc-good.texi
887check-tests/qapi-schema/doc-good.texi: tests/qapi-schema/doc-good.test.texi
888 @diff -q $(SRC_PATH)/tests/qapi-schema/doc-good.texi $<
889
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200890# Consolidated targets
891
Wenchao Xia2cdfb122013-09-26 08:42:56 +0800892.PHONY: check-qapi-schema check-qtest check-unit check check-clean
Markus Armbruster80d1f2e2017-03-20 14:11:54 +0100893check-qapi-schema: $(patsubst %,check-%, $(check-qapi-schema-y)) check-tests/qapi-schema/doc-good.texi
Anthony Liguori49ee3592012-03-28 15:42:05 +0200894check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS))
Paolo Bonzinib93b63f2012-03-28 15:42:01 +0200895check-unit: $(patsubst %,check-%, $(check-unit-y))
896check-block: $(patsubst %,check-%, $(check-block-y))
Markus Armbruster98626572013-07-27 17:41:53 +0200897check: check-qapi-schema check-unit check-qtest
Wenchao Xia2cdfb122013-09-26 08:42:56 +0800898check-clean:
899 $(MAKE) -C tests/tcg clean
Andreas Färberf85e3452014-04-07 18:33:22 +0200900 rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y)
Andreas Färberb5e62af2015-11-21 02:20:06 +0100901 rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), $(check-qtest-$(target)-y)) $(check-qtest-generic-y))
Wenchao Xia2cdfb122013-09-26 08:42:56 +0800902
903clean: check-clean
Eduardo Habkost14117c72012-07-18 14:22:27 -0300904
Wenchao Xia22ee5a52013-09-26 08:42:55 +0800905# Build the help program automatically
906
907all: $(QEMU_IOTESTS_HELPERS-y)
908
Eduardo Habkost14117c72012-07-18 14:22:27 -0300909-include $(wildcard tests/*.d)
Anthony Liguoridb2b5502013-06-26 15:52:14 +0200910-include $(wildcard tests/libqos/*.d)