Kevin Wolf | 8959449 | 2012-03-08 12:29:00 +0100 | [diff] [blame] | 1 | export SRC_PATH |
| 2 | |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 3 | qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py |
| 4 | |
Peter Maydell | 3687d53 | 2014-01-23 16:22:59 +0000 | [diff] [blame] | 5 | # Get the list of all supported sysemu targets |
| 6 | SYSEMU_TARGET_LIST := $(subst -softmmu.mak,,$(notdir \ |
| 7 | $(wildcard $(SRC_PATH)/default-configs/*-softmmu.mak))) |
| 8 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 9 | check-unit-y = tests/check-qdict$(EXESUF) |
Paolo Bonzini | 5f7a74a | 2013-01-15 09:49:35 +0100 | [diff] [blame] | 10 | gcov-files-check-qdict-y = qobject/qdict.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 11 | check-unit-y += tests/check-qfloat$(EXESUF) |
Paolo Bonzini | 5f7a74a | 2013-01-15 09:49:35 +0100 | [diff] [blame] | 12 | gcov-files-check-qfloat-y = qobject/qfloat.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 13 | check-unit-y += tests/check-qint$(EXESUF) |
Paolo Bonzini | 5f7a74a | 2013-01-15 09:49:35 +0100 | [diff] [blame] | 14 | gcov-files-check-qint-y = qobject/qint.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 15 | check-unit-y += tests/check-qstring$(EXESUF) |
Paolo Bonzini | 5f7a74a | 2013-01-15 09:49:35 +0100 | [diff] [blame] | 16 | gcov-files-check-qstring-y = qobject/qstring.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 17 | check-unit-y += tests/check-qlist$(EXESUF) |
Paolo Bonzini | 5f7a74a | 2013-01-15 09:49:35 +0100 | [diff] [blame] | 18 | gcov-files-check-qlist-y = qobject/qlist.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 19 | check-unit-y += tests/check-qjson$(EXESUF) |
Paolo Bonzini | 5f7a74a | 2013-01-15 09:49:35 +0100 | [diff] [blame] | 20 | gcov-files-check-qjson-y = qobject/qjson.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 21 | check-unit-y += tests/test-qmp-output-visitor$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 22 | gcov-files-test-qmp-output-visitor-y = qapi/qmp-output-visitor.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 23 | check-unit-y += tests/test-qmp-input-visitor$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 24 | gcov-files-test-qmp-input-visitor-y = qapi/qmp-input-visitor.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 25 | check-unit-y += tests/test-qmp-input-strict$(EXESUF) |
| 26 | check-unit-y += tests/test-qmp-commands$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 27 | gcov-files-test-qmp-commands-y = qapi/qmp-dispatch.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 28 | check-unit-y += tests/test-string-input-visitor$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 29 | gcov-files-test-string-input-visitor-y = qapi/string-input-visitor.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 30 | check-unit-y += tests/test-string-output-visitor$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 31 | gcov-files-test-string-output-visitor-y = qapi/string-output-visitor.c |
Wenchao Xia | f6dadb0 | 2014-06-18 08:43:29 +0200 | [diff] [blame] | 32 | check-unit-y += tests/test-qmp-event$(EXESUF) |
| 33 | gcov-files-test-qmp-event-y += qapi/qmp-event.c |
Laszlo Ersek | 3953e3a | 2013-08-20 00:35:40 +0200 | [diff] [blame] | 34 | check-unit-y += tests/test-opts-visitor$(EXESUF) |
| 35 | gcov-files-test-opts-visitor-y = qapi/opts-visitor.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 36 | check-unit-y += tests/test-coroutine$(EXESUF) |
Peter Maydell | 7c2acc7 | 2013-04-08 12:11:27 +0100 | [diff] [blame] | 37 | gcov-files-test-coroutine-y = coroutine-$(CONFIG_COROUTINE_BACKEND).c |
Michael Roth | 2d49610 | 2012-02-21 21:05:07 -0600 | [diff] [blame] | 38 | check-unit-y += tests/test-visitor-serialization$(EXESUF) |
Michael Tokarev | 2278a69 | 2012-06-07 20:08:19 +0400 | [diff] [blame] | 39 | check-unit-y += tests/test-iov$(EXESUF) |
Paolo Bonzini | 5f7a74a | 2013-01-15 09:49:35 +0100 | [diff] [blame] | 40 | gcov-files-test-iov-y = util/iov.c |
Paolo Bonzini | b2ea25d | 2012-11-23 16:13:23 +0100 | [diff] [blame] | 41 | check-unit-y += tests/test-aio$(EXESUF) |
Stefan Hajnoczi | d597a32 | 2014-03-28 10:55:53 +0100 | [diff] [blame] | 42 | check-unit-$(CONFIG_POSIX) += tests/test-rfifolock$(EXESUF) |
Benoît Canet | f17cfe8 | 2013-09-02 14:14:38 +0200 | [diff] [blame] | 43 | check-unit-y += tests/test-throttle$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 44 | gcov-files-test-aio-$(CONFIG_WIN32) = aio-win32.c |
| 45 | gcov-files-test-aio-$(CONFIG_POSIX) = aio-posix.c |
Paolo Bonzini | 74c856e | 2012-11-23 16:13:24 +0100 | [diff] [blame] | 46 | check-unit-y += tests/test-thread-pool$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 47 | gcov-files-test-thread-pool-y = thread-pool.c |
Paolo Bonzini | e7c033c | 2013-01-21 17:09:40 +0100 | [diff] [blame] | 48 | gcov-files-test-hbitmap-y = util/hbitmap.c |
| 49 | check-unit-y += tests/test-hbitmap$(EXESUF) |
Stefan Hajnoczi | 6c6f312 | 2015-11-05 18:13:20 -0500 | [diff] [blame] | 50 | gcov-files-test-hbitmap-y = blockjob.c |
| 51 | check-unit-y += tests/test-blockjob-txn$(EXESUF) |
Eduardo Habkost | 247c9de | 2013-01-23 15:58:27 -0200 | [diff] [blame] | 52 | check-unit-y += tests/test-x86-cpuid$(EXESUF) |
| 53 | # all code tested by test-x86-cpuid is inside topology.h |
| 54 | gcov-files-test-x86-cpuid-y = |
Dr. David Alan Gilbert | 60fe637 | 2014-12-12 11:13:38 +0000 | [diff] [blame] | 55 | ifeq ($(CONFIG_SOFTMMU),y) |
Orit Wasserman | 21e3cd2 | 2013-01-31 09:12:16 +0200 | [diff] [blame] | 56 | check-unit-y += tests/test-xbzrle$(EXESUF) |
Dr. David Alan Gilbert | 60fe637 | 2014-12-12 11:13:38 +0000 | [diff] [blame] | 57 | gcov-files-test-xbzrle-y = migration/xbzrle.c |
| 58 | check-unit-$(CONFIG_POSIX) += tests/test-vmstate$(EXESUF) |
| 59 | endif |
Eduardo Habkost | e3f9fe2 | 2013-02-04 16:27:45 -0200 | [diff] [blame] | 60 | check-unit-y += tests/test-cutils$(EXESUF) |
| 61 | gcov-files-test-cutils-y += util/cutils.c |
Richard Henderson | f4c0f98 | 2013-02-16 12:47:01 -0800 | [diff] [blame] | 62 | check-unit-y += tests/test-mul64$(EXESUF) |
| 63 | gcov-files-test-mul64-y = util/host-utils.c |
Paolo Bonzini | 6046c62 | 2013-06-20 16:19:32 +0200 | [diff] [blame] | 64 | check-unit-y += tests/test-int128$(EXESUF) |
| 65 | # all code tested by test-int128 is inside int128.h |
| 66 | gcov-files-test-int128-y = |
Paolo Bonzini | 8fda74a | 2013-06-21 09:09:34 +0200 | [diff] [blame] | 67 | check-unit-y += tests/rcutorture$(EXESUF) |
| 68 | gcov-files-rcutorture-y = util/rcu.c |
Mike Day | 341774f | 2013-08-27 11:38:45 -0400 | [diff] [blame] | 69 | check-unit-y += tests/test-rcu-list$(EXESUF) |
| 70 | gcov-files-test-rcu-list-y = util/rcu.c |
Peter Maydell | 3464700 | 2013-06-28 12:40:32 +0100 | [diff] [blame] | 71 | check-unit-y += tests/test-bitops$(EXESUF) |
Michael S. Tsirkin | 9d41401 | 2014-09-18 20:46:45 +0300 | [diff] [blame] | 72 | check-unit-$(CONFIG_HAS_GLIB_SUBPROCESS_TESTS) += tests/test-qdev-global-props$(EXESUF) |
Igor Mammedov | 14389db | 2013-12-20 22:14:40 +0100 | [diff] [blame] | 73 | check-unit-y += tests/check-qom-interface$(EXESUF) |
| 74 | gcov-files-check-qom-interface-y = qom/object.c |
Daniel P. Berrange | a31bdae | 2015-05-13 17:14:06 +0100 | [diff] [blame] | 75 | check-unit-y += tests/check-qom-proplist$(EXESUF) |
| 76 | gcov-files-check-qom-proplist-y = qom/object.c |
Leandro Dorileo | 4ba6fab | 2014-05-19 18:53:55 -0300 | [diff] [blame] | 77 | check-unit-y += tests/test-qemu-opts$(EXESUF) |
| 78 | gcov-files-test-qemu-opts-y = qom/test-qemu-opts.c |
Francesco Romani | e246211 | 2015-01-12 14:11:13 +0100 | [diff] [blame] | 79 | check-unit-y += tests/test-write-threshold$(EXESUF) |
| 80 | gcov-files-test-write-threshold-y = block/write-threshold.c |
Daniel P. Berrange | ddbb0d0 | 2015-07-01 18:10:29 +0100 | [diff] [blame] | 81 | check-unit-$(CONFIG_GNUTLS_HASH) += tests/test-crypto-hash$(EXESUF) |
Daniel P. Berrange | ca38a4c | 2015-07-01 18:10:32 +0100 | [diff] [blame] | 82 | check-unit-y += tests/test-crypto-cipher$(EXESUF) |
Daniel P. Berrange | ac1d887 | 2015-10-14 09:58:38 +0100 | [diff] [blame] | 83 | check-unit-y += tests/test-crypto-secret$(EXESUF) |
Daniel P. Berrange | 9a2fd43 | 2015-04-13 14:01:39 +0100 | [diff] [blame] | 84 | check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlscredsx509$(EXESUF) |
Daniel P. Berrange | d321e1e | 2015-03-02 17:23:31 +0000 | [diff] [blame] | 85 | check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlssession$(EXESUF) |
Marc-André Lureau | 62c39b3 | 2015-10-02 14:58:18 +0200 | [diff] [blame] | 86 | check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) |
Alberto Garcia | bd797fc | 2015-10-28 17:33:01 +0200 | [diff] [blame] | 87 | check-unit-y += tests/test-timed-average$(EXESUF) |
Daniel P. Berrange | b02db2d | 2015-03-18 17:25:45 +0000 | [diff] [blame] | 88 | check-unit-y += tests/test-io-task$(EXESUF) |
Daniel P. Berrange | 559607e | 2015-02-27 16:19:33 +0000 | [diff] [blame] | 89 | check-unit-y += tests/test-io-channel-socket$(EXESUF) |
Daniel P. Berrange | d6e4886 | 2015-02-27 18:25:25 +0000 | [diff] [blame] | 90 | check-unit-y += tests/test-io-channel-file$(EXESUF) |
Daniel P. Berrange | ed8ee42 | 2015-03-02 18:13:13 +0000 | [diff] [blame] | 91 | check-unit-$(CONFIG_GNUTLS) += tests/test-io-channel-tls$(EXESUF) |
Daniel P. Berrange | 195e14d | 2015-08-27 16:25:30 +0100 | [diff] [blame] | 92 | check-unit-y += tests/test-io-channel-command$(EXESUF) |
Daniel P. Berrange | d98e4eb | 2015-09-15 17:27:33 +0100 | [diff] [blame] | 93 | check-unit-y += tests/test-io-channel-buffer$(EXESUF) |
Daniel P. Berrange | 89bc0b6 | 2015-11-23 15:24:50 +0000 | [diff] [blame] | 94 | check-unit-y += tests/test-base64$(EXESUF) |
Daniel P. Berrange | c44e92a | 2016-04-04 15:08:45 +0100 | [diff] [blame^] | 95 | check-unit-$(if $(CONFIG_NETTLE_KDF),y,$(CONFIG_GCRYPT_KDF)) += tests/test-crypto-pbkdf$(EXESUF) |
Daniel P. Berrange | cb73089 | 2015-10-15 12:35:28 +0100 | [diff] [blame] | 96 | check-unit-y += tests/test-crypto-ivgen$(EXESUF) |
Daniel P. Berrange | 5a95e0f | 2015-10-23 16:14:25 +0100 | [diff] [blame] | 97 | check-unit-y += tests/test-crypto-afsplit$(EXESUF) |
Daniel P. Berrange | 84f7f18 | 2016-02-11 14:00:17 +0000 | [diff] [blame] | 98 | check-unit-y += tests/test-crypto-xts$(EXESUF) |
Daniel P. Berrange | 7d96901 | 2015-10-24 11:44:13 +0100 | [diff] [blame] | 99 | check-unit-y += tests/test-crypto-block$(EXESUF) |
Alex Bennée | 3514552 | 2016-03-15 14:30:20 +0000 | [diff] [blame] | 100 | gcov-files-test-logging-y = tests/test-logging.c |
| 101 | check-unit-y += tests/test-logging$(EXESUF) |
Anthony Liguori | ad65aa8 | 2012-01-10 13:10:51 -0600 | [diff] [blame] | 102 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 103 | check-block-$(CONFIG_POSIX) += tests/qemu-iotests-quick.sh |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 104 | |
Anthony Liguori | d1aaf54 | 2012-03-28 15:42:07 +0200 | [diff] [blame] | 105 | # All QTests for now are POSIX-only, but the dependencies are |
| 106 | # really in libqtest, not in the testcases themselves. |
Andreas Färber | a21baf7 | 2013-11-07 18:25:10 +0100 | [diff] [blame] | 107 | |
Markus Armbruster | 2d1abb8 | 2015-10-01 10:59:56 +0200 | [diff] [blame] | 108 | check-qtest-generic-y = tests/device-introspect-test$(EXESUF) |
| 109 | gcov-files-generic-y = qdev-monitor.c qmp.c |
Markus Armbruster | e253c28 | 2015-10-01 10:59:53 +0200 | [diff] [blame] | 110 | |
Andreas Färber | 1f9c4cf | 2013-08-02 00:48:40 +0200 | [diff] [blame] | 111 | gcov-files-ipack-y += hw/ipack/ipack.c |
Andreas Färber | 3714682 | 2014-02-09 12:24:15 +0100 | [diff] [blame] | 112 | check-qtest-ipack-y += tests/ipoctal232-test$(EXESUF) |
| 113 | gcov-files-ipack-y += hw/char/ipoctal232.c |
| 114 | |
Andreas Färber | 6e8114a | 2014-02-21 17:49:12 +0100 | [diff] [blame] | 115 | check-qtest-virtioserial-y += tests/virtio-console-test$(EXESUF) |
| 116 | gcov-files-virtioserial-y += hw/char/virtio-console.c |
| 117 | |
Andreas Färber | b815ec5 | 2014-02-09 04:13:37 +0100 | [diff] [blame] | 118 | gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio.c |
| 119 | check-qtest-virtio-y += tests/virtio-net-test$(EXESUF) |
| 120 | gcov-files-virtio-y += i386-softmmu/hw/net/virtio-net.c |
Andreas Färber | 02063aa | 2014-02-09 04:39:47 +0100 | [diff] [blame] | 121 | check-qtest-virtio-y += tests/virtio-balloon-test$(EXESUF) |
| 122 | gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio-balloon.c |
Andreas Färber | c7a59be | 2014-02-09 04:32:55 +0100 | [diff] [blame] | 123 | check-qtest-virtio-y += tests/virtio-blk-test$(EXESUF) |
| 124 | gcov-files-virtio-y += i386-softmmu/hw/block/virtio-blk.c |
Andreas Färber | b6f46f0 | 2014-02-09 04:43:10 +0100 | [diff] [blame] | 125 | check-qtest-virtio-y += tests/virtio-rng-test$(EXESUF) |
| 126 | gcov-files-virtio-y += hw/virtio/virtio-rng.c |
Andreas Färber | 26c9a01 | 2014-02-21 16:42:15 +0100 | [diff] [blame] | 127 | check-qtest-virtio-y += tests/virtio-scsi-test$(EXESUF) |
| 128 | gcov-files-virtio-y += i386-softmmu/hw/scsi/virtio-scsi.c |
Andreas Färber | 2d888c0 | 2014-02-21 17:15:21 +0100 | [diff] [blame] | 129 | ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy) |
| 130 | check-qtest-virtio-y += tests/virtio-9p-test$(EXESUF) |
| 131 | gcov-files-virtio-y += hw/9pfs/virtio-9p.c |
| 132 | gcov-files-virtio-y += i386-softmmu/hw/9pfs/virtio-9p-device.c |
| 133 | endif |
Andreas Färber | aa97405 | 2014-02-21 17:36:57 +0100 | [diff] [blame] | 134 | check-qtest-virtio-y += tests/virtio-serial-test$(EXESUF) |
| 135 | gcov-files-virtio-y += i386-softmmu/hw/char/virtio-serial-bus.c |
Andreas Färber | 6e8114a | 2014-02-21 17:49:12 +0100 | [diff] [blame] | 136 | check-qtest-virtio-y += $(check-qtest-virtioserial-y) |
| 137 | gcov-files-virtio-y += $(gcov-files-virtioserial-y) |
Andreas Färber | b815ec5 | 2014-02-09 04:13:37 +0100 | [diff] [blame] | 138 | |
Andreas Färber | a21baf7 | 2013-11-07 18:25:10 +0100 | [diff] [blame] | 139 | check-qtest-pci-y += tests/e1000-test$(EXESUF) |
| 140 | gcov-files-pci-y += hw/net/e1000.c |
Andreas Färber | 74769fe | 2013-11-07 18:43:09 +0100 | [diff] [blame] | 141 | check-qtest-pci-y += tests/rtl8139-test$(EXESUF) |
| 142 | gcov-files-pci-y += hw/net/rtl8139.c |
Andreas Färber | 85f68d5 | 2013-11-07 18:53:28 +0100 | [diff] [blame] | 143 | check-qtest-pci-y += tests/pcnet-test$(EXESUF) |
| 144 | gcov-files-pci-y += hw/net/pcnet.c |
| 145 | gcov-files-pci-y += hw/net/pcnet-pci.c |
Andreas Färber | 92838a1 | 2013-11-07 19:18:46 +0100 | [diff] [blame] | 146 | check-qtest-pci-y += tests/eepro100-test$(EXESUF) |
| 147 | gcov-files-pci-y += hw/net/eepro100.c |
Andreas Färber | 5297ea6 | 2014-02-09 04:01:37 +0100 | [diff] [blame] | 148 | check-qtest-pci-y += tests/ne2000-test$(EXESUF) |
| 149 | gcov-files-pci-y += hw/net/ne2000.c |
Andreas Färber | fc96779 | 2014-02-21 22:19:43 +0100 | [diff] [blame] | 150 | check-qtest-pci-y += tests/nvme-test$(EXESUF) |
| 151 | gcov-files-pci-y += hw/block/nvme.c |
Andreas Färber | d7b50c0 | 2014-03-30 19:00:05 +0200 | [diff] [blame] | 152 | check-qtest-pci-y += tests/ac97-test$(EXESUF) |
| 153 | gcov-files-pci-y += hw/audio/ac97.c |
Andreas Färber | 8fa74c9 | 2014-03-30 19:05:20 +0200 | [diff] [blame] | 154 | check-qtest-pci-y += tests/es1370-test$(EXESUF) |
| 155 | gcov-files-pci-y += hw/audio/es1370.c |
Andreas Färber | b815ec5 | 2014-02-09 04:13:37 +0100 | [diff] [blame] | 156 | check-qtest-pci-y += $(check-qtest-virtio-y) |
| 157 | gcov-files-pci-y += $(gcov-files-virtio-y) hw/virtio/virtio-pci.c |
Andreas Färber | 7649107 | 2014-02-09 03:48:44 +0100 | [diff] [blame] | 158 | check-qtest-pci-y += tests/tpci200-test$(EXESUF) |
Andreas Färber | 83bb0b2 | 2014-02-21 16:29:17 +0100 | [diff] [blame] | 159 | gcov-files-pci-y += hw/ipack/tpci200.c |
Andreas Färber | 3714682 | 2014-02-09 12:24:15 +0100 | [diff] [blame] | 160 | check-qtest-pci-y += $(check-qtest-ipack-y) |
Andreas Färber | 83bb0b2 | 2014-02-21 16:29:17 +0100 | [diff] [blame] | 161 | gcov-files-pci-y += $(gcov-files-ipack-y) |
Gerd Hoffmann | 0850fd5 | 2014-04-28 11:01:13 +0200 | [diff] [blame] | 162 | check-qtest-pci-y += tests/display-vga-test$(EXESUF) |
| 163 | gcov-files-pci-y += hw/display/vga.c |
| 164 | gcov-files-pci-y += hw/display/cirrus_vga.c |
| 165 | gcov-files-pci-y += hw/display/vga-pci.c |
Gerd Hoffmann | 501eea4 | 2014-04-28 11:10:12 +0200 | [diff] [blame] | 166 | gcov-files-pci-y += hw/display/virtio-gpu.c |
| 167 | gcov-files-pci-y += hw/display/virtio-gpu-pci.c |
| 168 | gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c |
Andreas Färber | fbaf445 | 2014-03-30 19:22:48 +0200 | [diff] [blame] | 169 | check-qtest-pci-y += tests/intel-hda-test$(EXESUF) |
| 170 | gcov-files-pci-y += hw/audio/intel-hda.c hw/audio/hda-codec.c |
Markus Armbruster | 330b583 | 2016-03-15 19:34:20 +0100 | [diff] [blame] | 171 | check-qtest-pci-$(CONFIG_EVENTFD) += tests/ivshmem-test$(EXESUF) |
Andreas Färber | bbfc2ef | 2015-10-11 00:18:32 +0200 | [diff] [blame] | 172 | gcov-files-pci-y += hw/misc/ivshmem.c |
Andreas Färber | a21baf7 | 2013-11-07 18:25:10 +0100 | [diff] [blame] | 173 | |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 174 | check-qtest-i386-y = tests/endianness-test$(EXESUF) |
| 175 | check-qtest-i386-y += tests/fdc-test$(EXESUF) |
Andreas Färber | 5ec889b | 2014-02-14 15:09:28 +0100 | [diff] [blame] | 176 | gcov-files-i386-y = hw/block/fdc.c |
Kevin Wolf | acbe480 | 2013-05-08 11:18:41 +0200 | [diff] [blame] | 177 | check-qtest-i386-y += tests/ide-test$(EXESUF) |
John Snow | 1cd1031 | 2014-08-21 13:44:32 -0400 | [diff] [blame] | 178 | check-qtest-i386-y += tests/ahci-test$(EXESUF) |
Markus Armbruster | 0e8a8c8 | 2012-07-10 11:12:30 +0200 | [diff] [blame] | 179 | check-qtest-i386-y += tests/hd-geo-test$(EXESUF) |
Andreas Färber | 5ec889b | 2014-02-14 15:09:28 +0100 | [diff] [blame] | 180 | gcov-files-i386-y += hw/block/hd-geometry.c |
Markus Armbruster | edbd790 | 2013-06-26 15:52:13 +0200 | [diff] [blame] | 181 | check-qtest-i386-y += tests/boot-order-test$(EXESUF) |
Gabriel L. Somlo | 501f28c | 2014-05-27 15:03:14 -0400 | [diff] [blame] | 182 | check-qtest-i386-y += tests/bios-tables-test$(EXESUF) |
Victor Kaplansky | 4e08256 | 2016-02-14 18:59:27 +0200 | [diff] [blame] | 183 | check-qtest-i386-y += tests/pxe-test$(EXESUF) |
Stefan Weil | fba0c40 | 2012-05-15 18:19:45 +0200 | [diff] [blame] | 184 | check-qtest-i386-y += tests/rtc-test$(EXESUF) |
Corey Minyard | 24f976d | 2015-12-17 12:50:09 -0600 | [diff] [blame] | 185 | check-qtest-i386-y += tests/ipmi-kcs-test$(EXESUF) |
| 186 | check-qtest-i386-y += tests/ipmi-bt-test$(EXESUF) |
Anthony Liguori | 9bda413 | 2013-04-16 09:45:19 -0500 | [diff] [blame] | 187 | check-qtest-i386-y += tests/i440fx-test$(EXESUF) |
Anthony Liguori | bf2a38d | 2013-04-16 09:45:21 -0500 | [diff] [blame] | 188 | check-qtest-i386-y += tests/fw_cfg-test$(EXESUF) |
Markus Armbruster | e2f3f22 | 2014-10-02 16:51:31 +0200 | [diff] [blame] | 189 | check-qtest-i386-y += tests/drive_del-test$(EXESUF) |
Paolo Bonzini | f52b768 | 2014-07-15 14:57:06 +0200 | [diff] [blame] | 190 | check-qtest-i386-y += tests/wdt_ib700-test$(EXESUF) |
Michael S. Tsirkin | c4fc82b | 2015-07-08 10:06:15 +0300 | [diff] [blame] | 191 | check-qtest-i386-y += tests/tco-test$(EXESUF) |
Paolo Bonzini | f52b768 | 2014-07-15 14:57:06 +0200 | [diff] [blame] | 192 | gcov-files-i386-y += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c |
Andreas Färber | a21baf7 | 2013-11-07 18:25:10 +0100 | [diff] [blame] | 193 | check-qtest-i386-y += $(check-qtest-pci-y) |
| 194 | gcov-files-i386-y += $(gcov-files-pci-y) |
Andreas Färber | 4a053e7 | 2013-11-07 18:37:34 +0100 | [diff] [blame] | 195 | check-qtest-i386-y += tests/vmxnet3-test$(EXESUF) |
| 196 | gcov-files-i386-y += hw/net/vmxnet3.c |
| 197 | gcov-files-i386-y += hw/net/vmxnet_rx_pkt.c |
| 198 | gcov-files-i386-y += hw/net/vmxnet_tx_pkt.c |
Andreas Färber | abc5373 | 2014-02-21 20:38:48 +0100 | [diff] [blame] | 199 | check-qtest-i386-y += tests/pvpanic-test$(EXESUF) |
| 200 | gcov-files-i386-y += i386-softmmu/hw/misc/pvpanic.c |
Andreas Färber | e683eb9 | 2014-02-21 22:43:43 +0100 | [diff] [blame] | 201 | check-qtest-i386-y += tests/i82801b11-test$(EXESUF) |
| 202 | gcov-files-i386-y += hw/pci-bridge/i82801b11.c |
Andreas Färber | efbf5df | 2014-03-30 20:02:00 +0200 | [diff] [blame] | 203 | check-qtest-i386-y += tests/ioh3420-test$(EXESUF) |
| 204 | gcov-files-i386-y += hw/pci-bridge/ioh3420.c |
Gonglei | 28edfce | 2014-06-23 19:53:51 +0800 | [diff] [blame] | 205 | check-qtest-i386-y += tests/usb-hcd-ohci-test$(EXESUF) |
| 206 | gcov-files-i386-y += hw/usb/hcd-ohci.c |
Gonglei | 44ced58 | 2014-06-23 19:53:52 +0800 | [diff] [blame] | 207 | check-qtest-i386-y += tests/usb-hcd-uhci-test$(EXESUF) |
| 208 | gcov-files-i386-y += hw/usb/hcd-uhci.c |
Andreas Färber | cc900d3 | 2014-03-30 20:25:38 +0200 | [diff] [blame] | 209 | check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF) |
| 210 | gcov-files-i386-y += hw/usb/hcd-ehci.c |
Gerd Hoffmann | d81d410 | 2014-05-07 16:39:11 +0200 | [diff] [blame] | 211 | gcov-files-i386-y += hw/usb/dev-hid.c |
| 212 | gcov-files-i386-y += hw/usb/dev-storage.c |
Gonglei | 25e89ec | 2014-06-23 19:53:53 +0800 | [diff] [blame] | 213 | check-qtest-i386-y += tests/usb-hcd-xhci-test$(EXESUF) |
| 214 | gcov-files-i386-y += hw/usb/hcd-xhci.c |
Andreas Färber | 7fe55c3 | 2015-03-13 17:21:11 +0100 | [diff] [blame] | 215 | check-qtest-i386-y += tests/pc-cpu-test$(EXESUF) |
Gerd Hoffmann | 66e2ec2 | 2015-04-14 15:11:36 +0200 | [diff] [blame] | 216 | check-qtest-i386-y += tests/q35-test$(EXESUF) |
| 217 | gcov-files-i386-y += hw/pci-host/q35.c |
Marc-André Lureau | 421f444 | 2015-10-26 15:32:00 +0100 | [diff] [blame] | 218 | check-qtest-i386-$(CONFIG_VHOST_NET_TEST_i386) += tests/vhost-user-test$(EXESUF) |
| 219 | ifeq ($(CONFIG_VHOST_NET_TEST_i386),) |
| 220 | check-qtest-x86_64-$(CONFIG_VHOST_NET_TEST_x86_64) += tests/vhost-user-test$(EXESUF) |
Michael S. Tsirkin | 7fe34ca | 2015-10-06 10:17:55 +0100 | [diff] [blame] | 221 | endif |
Yang Hongyang | 89b1273 | 2015-10-07 11:52:22 +0800 | [diff] [blame] | 222 | check-qtest-i386-y += tests/test-netfilter$(EXESUF) |
Zhang Chen | 06809ec | 2016-03-15 15:41:34 +0800 | [diff] [blame] | 223 | check-qtest-i386-y += tests/test-filter-mirror$(EXESUF) |
Zhang Chen | 9fd3c5d | 2016-03-17 16:16:27 +0800 | [diff] [blame] | 224 | check-qtest-i386-y += tests/test-filter-redirector$(EXESUF) |
Anthony Liguori | d1aaf54 | 2012-03-28 15:42:07 +0200 | [diff] [blame] | 225 | check-qtest-x86_64-y = $(check-qtest-i386-y) |
Andreas Färber | 5ec889b | 2014-02-14 15:09:28 +0100 | [diff] [blame] | 226 | gcov-files-i386-y += i386-softmmu/hw/timer/mc146818rtc.c |
Andreas Färber | c5cd02b | 2013-01-26 12:45:14 +0100 | [diff] [blame] | 227 | gcov-files-x86_64-y = $(subst i386-softmmu/,x86_64-softmmu/,$(gcov-files-i386-y)) |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 228 | check-qtest-mips-y = tests/endianness-test$(EXESUF) |
| 229 | check-qtest-mips64-y = tests/endianness-test$(EXESUF) |
| 230 | check-qtest-mips64el-y = tests/endianness-test$(EXESUF) |
| 231 | check-qtest-ppc-y = tests/endianness-test$(EXESUF) |
| 232 | check-qtest-ppc64-y = tests/endianness-test$(EXESUF) |
| 233 | check-qtest-sh4-y = tests/endianness-test$(EXESUF) |
| 234 | check-qtest-sh4eb-y = tests/endianness-test$(EXESUF) |
| 235 | check-qtest-sparc64-y = tests/endianness-test$(EXESUF) |
Anthony Liguori | baeddde | 2013-01-29 15:42:45 -0600 | [diff] [blame] | 236 | #check-qtest-sparc-y = tests/m48t59-test$(EXESUF) |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 237 | #check-qtest-sparc64-y += tests/m48t59-test$(EXESUF) |
Andreas Färber | 5ec889b | 2014-02-14 15:09:28 +0100 | [diff] [blame] | 238 | gcov-files-sparc-y += hw/timer/m48t59.c |
| 239 | gcov-files-sparc64-y += hw/timer/m48t59.c |
Andreas Färber | 6e99890 | 2013-01-16 01:57:57 +0100 | [diff] [blame] | 240 | check-qtest-arm-y = tests/tmp105-test$(EXESUF) |
Jean-Christophe Dubois | 7f39862 | 2015-09-07 10:39:31 +0100 | [diff] [blame] | 241 | check-qtest-arm-y = tests/ds1338-test$(EXESUF) |
Andreas Färber | 5ec889b | 2014-02-14 15:09:28 +0100 | [diff] [blame] | 242 | gcov-files-arm-y += hw/misc/tmp105.c |
Marc Marí | 0a6ed70 | 2015-02-24 22:21:55 +0100 | [diff] [blame] | 243 | check-qtest-arm-y += tests/virtio-blk-test$(EXESUF) |
| 244 | gcov-files-arm-y += arm-softmmu/hw/block/virtio-blk.c |
Andreas Färber | 530a7e4 | 2013-06-26 15:52:16 +0200 | [diff] [blame] | 245 | check-qtest-ppc-y += tests/boot-order-test$(EXESUF) |
| 246 | check-qtest-ppc64-y += tests/boot-order-test$(EXESUF) |
Alexey Kardashevskiy | 04e9a20 | 2014-02-10 14:52:56 +1100 | [diff] [blame] | 247 | check-qtest-ppc64-y += tests/spapr-phb-test$(EXESUF) |
| 248 | gcov-files-ppc64-y += ppc64-softmmu/hw/ppc/spapr_pci.c |
Andreas Färber | 7c41f21 | 2013-07-29 05:44:47 +0200 | [diff] [blame] | 249 | check-qtest-microblazeel-y = $(check-qtest-microblaze-y) |
Andreas Färber | 7c41f21 | 2013-07-29 05:44:47 +0200 | [diff] [blame] | 250 | check-qtest-xtensaeb-y = $(check-qtest-xtensa-y) |
Anthony Liguori | d1aaf54 | 2012-03-28 15:42:07 +0200 | [diff] [blame] | 251 | |
Markus Armbruster | e253c28 | 2015-10-01 10:59:53 +0200 | [diff] [blame] | 252 | check-qtest-generic-y += tests/qom-test$(EXESUF) |
Peter Maydell | 3687d53 | 2014-01-23 16:22:59 +0000 | [diff] [blame] | 253 | |
Eric Blake | 4653430 | 2016-02-17 23:48:17 -0700 | [diff] [blame] | 254 | qapi-schema += alternate-any.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 255 | qapi-schema += alternate-array.json |
| 256 | qapi-schema += alternate-base.json |
| 257 | qapi-schema += alternate-clash.json |
| 258 | qapi-schema += alternate-conflict-dict.json |
| 259 | qapi-schema += alternate-conflict-string.json |
Eric Blake | 8d25dd1 | 2015-09-29 16:21:05 -0600 | [diff] [blame] | 260 | qapi-schema += alternate-empty.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 261 | qapi-schema += alternate-nested.json |
| 262 | qapi-schema += alternate-unknown.json |
| 263 | qapi-schema += args-alternate.json |
| 264 | qapi-schema += args-any.json |
| 265 | qapi-schema += args-array-empty.json |
| 266 | qapi-schema += args-array-unknown.json |
| 267 | qapi-schema += args-int.json |
| 268 | qapi-schema += args-invalid.json |
| 269 | qapi-schema += args-member-array-bad.json |
Eric Blake | 893e1f2 | 2015-12-01 22:20:57 -0700 | [diff] [blame] | 270 | qapi-schema += args-member-case.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 271 | qapi-schema += args-member-unknown.json |
Eric Blake | d220fbc | 2015-09-29 16:21:03 -0600 | [diff] [blame] | 272 | qapi-schema += args-name-clash.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 273 | qapi-schema += args-union.json |
| 274 | qapi-schema += args-unknown.json |
| 275 | qapi-schema += bad-base.json |
| 276 | qapi-schema += bad-data.json |
| 277 | qapi-schema += bad-ident.json |
| 278 | qapi-schema += bad-type-bool.json |
| 279 | qapi-schema += bad-type-dict.json |
| 280 | qapi-schema += bad-type-int.json |
Eric Blake | bac5429 | 2015-12-01 22:20:59 -0700 | [diff] [blame] | 281 | qapi-schema += base-cycle-direct.json |
| 282 | qapi-schema += base-cycle-indirect.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 283 | qapi-schema += command-int.json |
| 284 | qapi-schema += comments.json |
| 285 | qapi-schema += double-data.json |
| 286 | qapi-schema += double-type.json |
| 287 | qapi-schema += duplicate-key.json |
| 288 | qapi-schema += empty.json |
| 289 | qapi-schema += enum-bad-name.json |
| 290 | qapi-schema += enum-bad-prefix.json |
| 291 | qapi-schema += enum-clash-member.json |
| 292 | qapi-schema += enum-dict-member.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 293 | qapi-schema += enum-int-member.json |
Eric Blake | 893e1f2 | 2015-12-01 22:20:57 -0700 | [diff] [blame] | 294 | qapi-schema += enum-member-case.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 295 | qapi-schema += enum-missing-data.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 296 | qapi-schema += enum-wrong-data.json |
| 297 | qapi-schema += escape-outside-string.json |
| 298 | qapi-schema += escape-too-big.json |
| 299 | qapi-schema += escape-too-short.json |
| 300 | qapi-schema += event-case.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 301 | qapi-schema += event-nest-struct.json |
| 302 | qapi-schema += flat-union-array-branch.json |
| 303 | qapi-schema += flat-union-bad-base.json |
| 304 | qapi-schema += flat-union-bad-discriminator.json |
| 305 | qapi-schema += flat-union-base-any.json |
| 306 | qapi-schema += flat-union-base-union.json |
Eric Blake | d220fbc | 2015-09-29 16:21:03 -0600 | [diff] [blame] | 307 | qapi-schema += flat-union-clash-member.json |
Eric Blake | 8d25dd1 | 2015-09-29 16:21:05 -0600 | [diff] [blame] | 308 | qapi-schema += flat-union-empty.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 309 | qapi-schema += flat-union-inline.json |
| 310 | qapi-schema += flat-union-int-branch.json |
| 311 | qapi-schema += flat-union-invalid-branch-key.json |
| 312 | qapi-schema += flat-union-invalid-discriminator.json |
| 313 | qapi-schema += flat-union-no-base.json |
| 314 | qapi-schema += flat-union-optional-discriminator.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 315 | qapi-schema += flat-union-string-discriminator.json |
| 316 | qapi-schema += funny-char.json |
| 317 | qapi-schema += ident-with-escape.json |
| 318 | qapi-schema += include-before-err.json |
| 319 | qapi-schema += include-cycle.json |
| 320 | qapi-schema += include-format-err.json |
| 321 | qapi-schema += include-nested-err.json |
| 322 | qapi-schema += include-no-file.json |
| 323 | qapi-schema += include-non-file.json |
| 324 | qapi-schema += include-relpath.json |
| 325 | qapi-schema += include-repetition.json |
| 326 | qapi-schema += include-self-cycle.json |
| 327 | qapi-schema += include-simple.json |
| 328 | qapi-schema += indented-expr.json |
| 329 | qapi-schema += leading-comma-list.json |
| 330 | qapi-schema += leading-comma-object.json |
| 331 | qapi-schema += missing-colon.json |
| 332 | qapi-schema += missing-comma-list.json |
| 333 | qapi-schema += missing-comma-object.json |
| 334 | qapi-schema += missing-type.json |
| 335 | qapi-schema += nested-struct-data.json |
| 336 | qapi-schema += non-objects.json |
| 337 | qapi-schema += qapi-schema-test.json |
| 338 | qapi-schema += quoted-structural-chars.json |
| 339 | qapi-schema += redefined-builtin.json |
| 340 | qapi-schema += redefined-command.json |
| 341 | qapi-schema += redefined-event.json |
| 342 | qapi-schema += redefined-type.json |
Eric Blake | 1976708 | 2015-10-26 16:34:40 -0600 | [diff] [blame] | 343 | qapi-schema += reserved-command-q.json |
Eric Blake | 59a92fe | 2015-11-18 01:52:56 -0700 | [diff] [blame] | 344 | qapi-schema += reserved-enum-q.json |
Eric Blake | 1976708 | 2015-10-26 16:34:40 -0600 | [diff] [blame] | 345 | qapi-schema += reserved-member-has.json |
| 346 | qapi-schema += reserved-member-q.json |
Eric Blake | 5e59baf | 2015-10-26 16:35:02 -0600 | [diff] [blame] | 347 | qapi-schema += reserved-member-u.json |
Eric Blake | 59a92fe | 2015-11-18 01:52:56 -0700 | [diff] [blame] | 348 | qapi-schema += reserved-member-underscore.json |
Eric Blake | 1976708 | 2015-10-26 16:34:40 -0600 | [diff] [blame] | 349 | qapi-schema += reserved-type-kind.json |
| 350 | qapi-schema += reserved-type-list.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 351 | qapi-schema += returns-alternate.json |
| 352 | qapi-schema += returns-array-bad.json |
| 353 | qapi-schema += returns-dict.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 354 | qapi-schema += returns-unknown.json |
| 355 | qapi-schema += returns-whitelist.json |
| 356 | qapi-schema += struct-base-clash-deep.json |
| 357 | qapi-schema += struct-base-clash.json |
| 358 | qapi-schema += struct-data-invalid.json |
| 359 | qapi-schema += struct-member-invalid.json |
| 360 | qapi-schema += trailing-comma-list.json |
| 361 | qapi-schema += trailing-comma-object.json |
| 362 | qapi-schema += type-bypass-bad-gen.json |
| 363 | qapi-schema += unclosed-list.json |
| 364 | qapi-schema += unclosed-object.json |
| 365 | qapi-schema += unclosed-string.json |
| 366 | qapi-schema += unicode-str.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 367 | qapi-schema += union-base-no-discriminator.json |
Eric Blake | 893e1f2 | 2015-12-01 22:20:57 -0700 | [diff] [blame] | 368 | qapi-schema += union-branch-case.json |
Eric Blake | d220fbc | 2015-09-29 16:21:03 -0600 | [diff] [blame] | 369 | qapi-schema += union-clash-branches.json |
Eric Blake | 8d25dd1 | 2015-09-29 16:21:05 -0600 | [diff] [blame] | 370 | qapi-schema += union-empty.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 371 | qapi-schema += union-invalid-base.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 372 | qapi-schema += union-optional-branch.json |
| 373 | qapi-schema += union-unknown.json |
| 374 | qapi-schema += unknown-escape.json |
| 375 | qapi-schema += unknown-expr-key.json |
| 376 | check-qapi-schema-y := $(addprefix tests/qapi-schema/, $(qapi-schema)) |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 377 | |
Wenchao Xia | f6dadb0 | 2014-06-18 08:43:29 +0200 | [diff] [blame] | 378 | GENERATED_HEADERS += tests/test-qapi-types.h tests/test-qapi-visit.h \ |
Markus Armbruster | 39a1815 | 2015-09-16 13:06:28 +0200 | [diff] [blame] | 379 | tests/test-qmp-commands.h tests/test-qapi-event.h \ |
| 380 | tests/test-qmp-introspect.h |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 381 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 382 | test-obj-y = tests/check-qint.o tests/check-qstring.o tests/check-qdict.o \ |
| 383 | tests/check-qlist.o tests/check-qfloat.o tests/check-qjson.o \ |
| 384 | tests/test-coroutine.o tests/test-string-output-visitor.o \ |
| 385 | tests/test-string-input-visitor.o tests/test-qmp-output-visitor.o \ |
| 386 | tests/test-qmp-input-visitor.o tests/test-qmp-input-strict.o \ |
Eduardo Habkost | 247c9de | 2013-01-23 15:58:27 -0200 | [diff] [blame] | 387 | tests/test-qmp-commands.o tests/test-visitor-serialization.o \ |
Laszlo Ersek | 3953e3a | 2013-08-20 00:35:40 +0200 | [diff] [blame] | 388 | tests/test-x86-cpuid.o tests/test-mul64.o tests/test-int128.o \ |
Paolo Bonzini | 8fda74a | 2013-06-21 09:09:34 +0200 | [diff] [blame] | 389 | tests/test-opts-visitor.o tests/test-qmp-event.o \ |
Mike Day | 341774f | 2013-08-27 11:38:45 -0400 | [diff] [blame] | 390 | tests/rcutorture.o tests/test-rcu-list.o |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 391 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 392 | $(test-obj-y): QEMU_INCLUDES += -Itests |
Anthony Liguori | c4efe1c | 2013-04-16 09:45:16 -0500 | [diff] [blame] | 393 | QEMU_CFLAGS += -I$(SRC_PATH)/tests |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 394 | |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 395 | |
| 396 | # Deps that are common to various different sets of tests below |
| 397 | test-util-obj-y = libqemuutil.a libqemustub.a |
Daniel P. Berrange | 0c7012e | 2015-09-02 11:18:16 +0100 | [diff] [blame] | 398 | test-qom-obj-y = $(qom-obj-y) $(test-util-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 399 | test-qapi-obj-y = tests/test-qapi-visit.o tests/test-qapi-types.o \ |
Markus Armbruster | 39a1815 | 2015-09-16 13:06:28 +0200 | [diff] [blame] | 400 | tests/test-qapi-event.o tests/test-qmp-introspect.o \ |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 401 | $(test-qom-obj-y) |
Daniel P. Berrange | a090187 | 2015-03-13 17:39:26 +0000 | [diff] [blame] | 402 | test-crypto-obj-y = $(crypto-obj-y) $(test-qom-obj-y) |
Daniel P. Berrange | b02db2d | 2015-03-18 17:25:45 +0000 | [diff] [blame] | 403 | test-io-obj-y = $(io-obj-y) $(test-crypto-obj-y) |
Daniel P. Berrange | 064097d | 2016-02-10 18:41:01 +0000 | [diff] [blame] | 404 | test-block-obj-y = $(block-obj-y) $(test-io-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 405 | |
| 406 | tests/check-qint$(EXESUF): tests/check-qint.o $(test-util-obj-y) |
| 407 | tests/check-qstring$(EXESUF): tests/check-qstring.o $(test-util-obj-y) |
| 408 | tests/check-qdict$(EXESUF): tests/check-qdict.o $(test-util-obj-y) |
| 409 | tests/check-qlist$(EXESUF): tests/check-qlist.o $(test-util-obj-y) |
| 410 | tests/check-qfloat$(EXESUF): tests/check-qfloat.o $(test-util-obj-y) |
| 411 | tests/check-qjson$(EXESUF): tests/check-qjson.o $(test-util-obj-y) |
| 412 | tests/check-qom-interface$(EXESUF): tests/check-qom-interface.o $(test-qom-obj-y) |
| 413 | tests/check-qom-proplist$(EXESUF): tests/check-qom-proplist.o $(test-qom-obj-y) |
| 414 | tests/test-coroutine$(EXESUF): tests/test-coroutine.o $(test-block-obj-y) |
| 415 | tests/test-aio$(EXESUF): tests/test-aio.o $(test-block-obj-y) |
| 416 | tests/test-rfifolock$(EXESUF): tests/test-rfifolock.o $(test-util-obj-y) |
| 417 | tests/test-throttle$(EXESUF): tests/test-throttle.o $(test-block-obj-y) |
Stefan Hajnoczi | 6c6f312 | 2015-11-05 18:13:20 -0500 | [diff] [blame] | 418 | tests/test-blockjob-txn$(EXESUF): tests/test-blockjob-txn.o $(test-block-obj-y) $(test-util-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 419 | tests/test-thread-pool$(EXESUF): tests/test-thread-pool.o $(test-block-obj-y) |
| 420 | tests/test-iov$(EXESUF): tests/test-iov.o $(test-util-obj-y) |
| 421 | tests/test-hbitmap$(EXESUF): tests/test-hbitmap.o $(test-util-obj-y) |
Eduardo Habkost | 247c9de | 2013-01-23 15:58:27 -0200 | [diff] [blame] | 422 | tests/test-x86-cpuid$(EXESUF): tests/test-x86-cpuid.o |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 423 | tests/test-xbzrle$(EXESUF): tests/test-xbzrle.o migration/xbzrle.o page_cache.o $(test-util-obj-y) |
Eduardo Habkost | e3f9fe2 | 2013-02-04 16:27:45 -0200 | [diff] [blame] | 424 | tests/test-cutils$(EXESUF): tests/test-cutils.o util/cutils.o |
Paolo Bonzini | 6046c62 | 2013-06-20 16:19:32 +0200 | [diff] [blame] | 425 | tests/test-int128$(EXESUF): tests/test-int128.o |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 426 | tests/rcutorture$(EXESUF): tests/rcutorture.o $(test-util-obj-y) |
| 427 | tests/test-rcu-list$(EXESUF): tests/test-rcu-list.o $(test-util-obj-y) |
Paolo Bonzini | 8fda74a | 2013-06-21 09:09:34 +0200 | [diff] [blame] | 428 | |
Eduardo Habkost | 747b0cb | 2013-07-10 17:08:40 -0300 | [diff] [blame] | 429 | tests/test-qdev-global-props$(EXESUF): tests/test-qdev-global-props.o \ |
Igor Mammedov | 5e95494 | 2014-02-05 16:36:52 +0100 | [diff] [blame] | 430 | hw/core/qdev.o hw/core/qdev-properties.o hw/core/hotplug.o\ |
Eduardo Habkost | 747b0cb | 2013-07-10 17:08:40 -0300 | [diff] [blame] | 431 | hw/core/irq.o \ |
Paolo Bonzini | 6b1566c | 2014-03-17 13:40:23 +1100 | [diff] [blame] | 432 | hw/core/fw-path-provider.o \ |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 433 | $(test-qapi-obj-y) |
Eduardo Habkost | 2668b4b | 2013-11-28 12:01:18 -0200 | [diff] [blame] | 434 | tests/test-vmstate$(EXESUF): tests/test-vmstate.o \ |
Dr. David Alan Gilbert | 977184d | 2014-12-12 11:13:41 +0000 | [diff] [blame] | 435 | migration/vmstate.o migration/qemu-file.o migration/qemu-file-buf.o \ |
Alexander Graf | 8118f09 | 2015-01-22 15:01:39 +0100 | [diff] [blame] | 436 | migration/qemu-file-unix.o qjson.o \ |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 437 | $(test-qom-obj-y) |
Alberto Garcia | bd797fc | 2015-10-28 17:33:01 +0200 | [diff] [blame] | 438 | tests/test-timed-average$(EXESUF): tests/test-timed-average.o qemu-timer.o \ |
Kevin Wolf | 5e41fbf | 2015-11-23 13:28:12 +0100 | [diff] [blame] | 439 | $(test-util-obj-y) |
Daniel P. Berrange | 89bc0b6 | 2015-11-23 15:24:50 +0000 | [diff] [blame] | 440 | tests/test-base64$(EXESUF): tests/test-base64.o \ |
| 441 | libqemuutil.a libqemustub.a |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 442 | |
Alex Bennée | 3514552 | 2016-03-15 14:30:20 +0000 | [diff] [blame] | 443 | tests/test-logging$(EXESUF): tests/test-logging.o $(test-util-obj-y) |
| 444 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 445 | tests/test-qapi-types.c tests/test-qapi-types.h :\ |
Markus Armbruster | df3e21a | 2015-04-02 13:38:48 +0200 | [diff] [blame] | 446 | $(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 447 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py \ |
Markus Armbruster | 16d80f6 | 2015-04-02 13:32:16 +0200 | [diff] [blame] | 448 | $(gen-out-type) -o tests -p "test-" $<, \ |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 449 | " GEN $@") |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 450 | tests/test-qapi-visit.c tests/test-qapi-visit.h :\ |
Markus Armbruster | df3e21a | 2015-04-02 13:38:48 +0200 | [diff] [blame] | 451 | $(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 452 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py \ |
Markus Armbruster | 16d80f6 | 2015-04-02 13:32:16 +0200 | [diff] [blame] | 453 | $(gen-out-type) -o tests -p "test-" $<, \ |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 454 | " GEN $@") |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 455 | tests/test-qmp-commands.h tests/test-qmp-marshal.c :\ |
Markus Armbruster | df3e21a | 2015-04-02 13:38:48 +0200 | [diff] [blame] | 456 | $(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 457 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py \ |
Markus Armbruster | 16d80f6 | 2015-04-02 13:32:16 +0200 | [diff] [blame] | 458 | $(gen-out-type) -o tests -p "test-" $<, \ |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 459 | " GEN $@") |
Wenchao Xia | f6dadb0 | 2014-06-18 08:43:29 +0200 | [diff] [blame] | 460 | tests/test-qapi-event.c tests/test-qapi-event.h :\ |
Markus Armbruster | df3e21a | 2015-04-02 13:38:48 +0200 | [diff] [blame] | 461 | $(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-event.py $(qapi-py) |
Wenchao Xia | f6dadb0 | 2014-06-18 08:43:29 +0200 | [diff] [blame] | 462 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-event.py \ |
Markus Armbruster | 16d80f6 | 2015-04-02 13:32:16 +0200 | [diff] [blame] | 463 | $(gen-out-type) -o tests -p "test-" $<, \ |
Wenchao Xia | f6dadb0 | 2014-06-18 08:43:29 +0200 | [diff] [blame] | 464 | " GEN $@") |
Markus Armbruster | 39a1815 | 2015-09-16 13:06:28 +0200 | [diff] [blame] | 465 | tests/test-qmp-introspect.c tests/test-qmp-introspect.h :\ |
| 466 | $(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-introspect.py $(qapi-py) |
| 467 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-introspect.py \ |
| 468 | $(gen-out-type) -o tests -p "test-" $<, \ |
| 469 | " GEN $@") |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 470 | |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 471 | tests/test-string-output-visitor$(EXESUF): tests/test-string-output-visitor.o $(test-qapi-obj-y) |
| 472 | tests/test-string-input-visitor$(EXESUF): tests/test-string-input-visitor.o $(test-qapi-obj-y) |
| 473 | tests/test-qmp-event$(EXESUF): tests/test-qmp-event.o $(test-qapi-obj-y) |
| 474 | tests/test-qmp-output-visitor$(EXESUF): tests/test-qmp-output-visitor.o $(test-qapi-obj-y) |
| 475 | tests/test-qmp-input-visitor$(EXESUF): tests/test-qmp-input-visitor.o $(test-qapi-obj-y) |
| 476 | tests/test-qmp-input-strict$(EXESUF): tests/test-qmp-input-strict.o $(test-qapi-obj-y) |
| 477 | tests/test-qmp-commands$(EXESUF): tests/test-qmp-commands.o tests/test-qmp-marshal.o $(test-qapi-obj-y) |
| 478 | tests/test-visitor-serialization$(EXESUF): tests/test-visitor-serialization.o $(test-qapi-obj-y) |
| 479 | tests/test-opts-visitor$(EXESUF): tests/test-opts-visitor.o $(test-qapi-obj-y) |
Paolo Bonzini | 2d7799f | 2012-02-09 11:21:03 +0100 | [diff] [blame] | 480 | |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 481 | tests/test-mul64$(EXESUF): tests/test-mul64.o $(test-util-obj-y) |
| 482 | tests/test-bitops$(EXESUF): tests/test-bitops.o $(test-util-obj-y) |
Daniel P. Berrange | fb37726 | 2015-09-02 10:57:27 +0100 | [diff] [blame] | 483 | tests/test-crypto-hash$(EXESUF): tests/test-crypto-hash.o $(test-crypto-obj-y) |
| 484 | tests/test-crypto-cipher$(EXESUF): tests/test-crypto-cipher.o $(test-crypto-obj-y) |
Daniel P. Berrange | ac1d887 | 2015-10-14 09:58:38 +0100 | [diff] [blame] | 485 | tests/test-crypto-secret$(EXESUF): tests/test-crypto-secret.o $(test-crypto-obj-y) |
Daniel P. Berrange | 84f7f18 | 2016-02-11 14:00:17 +0000 | [diff] [blame] | 486 | tests/test-crypto-xts$(EXESUF): tests/test-crypto-xts.o $(test-crypto-obj-y) |
Daniel P. Berrange | 9024603 | 2015-09-21 17:25:34 +0100 | [diff] [blame] | 487 | |
| 488 | tests/crypto-tls-x509-helpers.o-cflags := $(TASN1_CFLAGS) |
| 489 | tests/crypto-tls-x509-helpers.o-libs := $(TASN1_LIBS) |
| 490 | tests/pkix_asn1_tab.o-cflags := $(TASN1_CFLAGS) |
| 491 | |
| 492 | tests/test-crypto-tlscredsx509.o-cflags := $(TASN1_CFLAGS) |
Daniel P. Berrange | 9a2fd43 | 2015-04-13 14:01:39 +0100 | [diff] [blame] | 493 | tests/test-crypto-tlscredsx509$(EXESUF): tests/test-crypto-tlscredsx509.o \ |
| 494 | tests/crypto-tls-x509-helpers.o tests/pkix_asn1_tab.o $(test-crypto-obj-y) |
Daniel P. Berrange | 9024603 | 2015-09-21 17:25:34 +0100 | [diff] [blame] | 495 | |
| 496 | tests/test-crypto-tlssession.o-cflags := $(TASN1_CFLAGS) |
Daniel P. Berrange | d321e1e | 2015-03-02 17:23:31 +0000 | [diff] [blame] | 497 | tests/test-crypto-tlssession$(EXESUF): tests/test-crypto-tlssession.o \ |
| 498 | tests/crypto-tls-x509-helpers.o tests/pkix_asn1_tab.o $(test-crypto-obj-y) |
Daniel P. Berrange | b02db2d | 2015-03-18 17:25:45 +0000 | [diff] [blame] | 499 | tests/test-io-task$(EXESUF): tests/test-io-task.o $(test-io-obj-y) |
Daniel P. Berrange | 559607e | 2015-02-27 16:19:33 +0000 | [diff] [blame] | 500 | tests/test-io-channel-socket$(EXESUF): tests/test-io-channel-socket.o \ |
| 501 | tests/io-channel-helpers.o $(test-io-obj-y) |
Daniel P. Berrange | d6e4886 | 2015-02-27 18:25:25 +0000 | [diff] [blame] | 502 | tests/test-io-channel-file$(EXESUF): tests/test-io-channel-file.o \ |
| 503 | tests/io-channel-helpers.o $(test-io-obj-y) |
Daniel P. Berrange | ed8ee42 | 2015-03-02 18:13:13 +0000 | [diff] [blame] | 504 | tests/test-io-channel-tls$(EXESUF): tests/test-io-channel-tls.o \ |
| 505 | tests/crypto-tls-x509-helpers.o tests/pkix_asn1_tab.o \ |
| 506 | tests/io-channel-helpers.o $(test-io-obj-y) |
Daniel P. Berrange | 195e14d | 2015-08-27 16:25:30 +0100 | [diff] [blame] | 507 | tests/test-io-channel-command$(EXESUF): tests/test-io-channel-command.o \ |
| 508 | tests/io-channel-helpers.o $(test-io-obj-y) |
Daniel P. Berrange | d98e4eb | 2015-09-15 17:27:33 +0100 | [diff] [blame] | 509 | tests/test-io-channel-buffer$(EXESUF): tests/test-io-channel-buffer.o \ |
| 510 | tests/io-channel-helpers.o $(test-io-obj-y) |
Daniel P. Berrange | 37788f2 | 2015-10-14 13:14:04 +0100 | [diff] [blame] | 511 | tests/test-crypto-pbkdf$(EXESUF): tests/test-crypto-pbkdf.o $(test-crypto-obj-y) |
Daniel P. Berrange | cb73089 | 2015-10-15 12:35:28 +0100 | [diff] [blame] | 512 | tests/test-crypto-ivgen$(EXESUF): tests/test-crypto-ivgen.o $(test-crypto-obj-y) |
Daniel P. Berrange | 5a95e0f | 2015-10-23 16:14:25 +0100 | [diff] [blame] | 513 | tests/test-crypto-afsplit$(EXESUF): tests/test-crypto-afsplit.o $(test-crypto-obj-y) |
Daniel P. Berrange | 7d96901 | 2015-10-24 11:44:13 +0100 | [diff] [blame] | 514 | tests/test-crypto-block$(EXESUF): tests/test-crypto-block.o $(test-crypto-obj-y) |
Richard Henderson | f4c0f98 | 2013-02-16 12:47:01 -0800 | [diff] [blame] | 515 | |
Marc Marí | 292be09 | 2014-10-23 10:12:42 +0200 | [diff] [blame] | 516 | libqos-obj-y = tests/libqos/pci.o tests/libqos/fw_cfg.o tests/libqos/malloc.o |
John Snow | 90e5add | 2015-01-19 15:15:55 -0500 | [diff] [blame] | 517 | libqos-obj-y += tests/libqos/i2c.o tests/libqos/libqos.o |
Markus Armbruster | 26491a3 | 2013-06-26 15:52:22 +0200 | [diff] [blame] | 518 | libqos-pc-obj-y = $(libqos-obj-y) tests/libqos/pci-pc.o |
John Snow | 90e5add | 2015-01-19 15:15:55 -0500 | [diff] [blame] | 519 | libqos-pc-obj-y += tests/libqos/malloc-pc.o tests/libqos/libqos-pc.o |
John Snow | 9a75b0a | 2015-01-19 15:16:03 -0500 | [diff] [blame] | 520 | libqos-pc-obj-y += tests/libqos/ahci.o |
Andreas Färber | cc9936a | 2013-05-02 15:56:26 +0200 | [diff] [blame] | 521 | libqos-omap-obj-y = $(libqos-obj-y) tests/libqos/i2c-omap.o |
Jean-Christophe Dubois | 7f39862 | 2015-09-07 10:39:31 +0100 | [diff] [blame] | 522 | libqos-imx-obj-y = $(libqos-obj-y) tests/libqos/i2c-imx.o |
Igor Mammedov | b0354ec | 2014-09-26 09:28:12 +0000 | [diff] [blame] | 523 | libqos-usb-obj-y = $(libqos-pc-obj-y) tests/libqos/usb.o |
Marc Marí | 0a6ed70 | 2015-02-24 22:21:55 +0100 | [diff] [blame] | 524 | libqos-virtio-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 Liguori | c4efe1c | 2013-04-16 09:45:16 -0500 | [diff] [blame] | 525 | |
Markus Armbruster | 2d1abb8 | 2015-10-01 10:59:56 +0200 | [diff] [blame] | 526 | tests/device-introspect-test$(EXESUF): tests/device-introspect-test.o |
Paolo Bonzini | ff667e2 | 2012-12-21 09:45:20 +0100 | [diff] [blame] | 527 | tests/rtc-test$(EXESUF): tests/rtc-test.o |
| 528 | tests/m48t59-test$(EXESUF): tests/m48t59-test.o |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 529 | tests/endianness-test$(EXESUF): tests/endianness-test.o |
Alexey Kardashevskiy | 04e9a20 | 2014-02-10 14:52:56 +1100 | [diff] [blame] | 530 | tests/spapr-phb-test$(EXESUF): tests/spapr-phb-test.o $(libqos-obj-y) |
Paolo Bonzini | ff667e2 | 2012-12-21 09:45:20 +0100 | [diff] [blame] | 531 | tests/fdc-test$(EXESUF): tests/fdc-test.o |
Kevin Wolf | acbe480 | 2013-05-08 11:18:41 +0200 | [diff] [blame] | 532 | tests/ide-test$(EXESUF): tests/ide-test.o $(libqos-pc-obj-y) |
John Snow | 90e5add | 2015-01-19 15:15:55 -0500 | [diff] [blame] | 533 | tests/ahci-test$(EXESUF): tests/ahci-test.o $(libqos-pc-obj-y) |
Corey Minyard | 24f976d | 2015-12-17 12:50:09 -0600 | [diff] [blame] | 534 | tests/ipmi-kcs-test$(EXESUF): tests/ipmi-kcs-test.o |
| 535 | tests/ipmi-bt-test$(EXESUF): tests/ipmi-bt-test.o |
Paolo Bonzini | ff667e2 | 2012-12-21 09:45:20 +0100 | [diff] [blame] | 536 | tests/hd-geo-test$(EXESUF): tests/hd-geo-test.o |
Andreas Färber | 530a7e4 | 2013-06-26 15:52:16 +0200 | [diff] [blame] | 537 | tests/boot-order-test$(EXESUF): tests/boot-order-test.o $(libqos-obj-y) |
Victor Kaplansky | 4e08256 | 2016-02-14 18:59:27 +0200 | [diff] [blame] | 538 | tests/bios-tables-test$(EXESUF): tests/bios-tables-test.o \ |
| 539 | tests/boot-sector.o $(libqos-obj-y) |
| 540 | tests/pxe-test$(EXESUF): tests/pxe-test.o tests/boot-sector.o $(libqos-obj-y) |
Andreas Färber | cc9936a | 2013-05-02 15:56:26 +0200 | [diff] [blame] | 541 | tests/tmp105-test$(EXESUF): tests/tmp105-test.o $(libqos-omap-obj-y) |
Jean-Christophe Dubois | 7f39862 | 2015-09-07 10:39:31 +0100 | [diff] [blame] | 542 | tests/ds1338-test$(EXESUF): tests/ds1338-test.o $(libqos-imx-obj-y) |
Anthony Liguori | 9bda413 | 2013-04-16 09:45:19 -0500 | [diff] [blame] | 543 | tests/i440fx-test$(EXESUF): tests/i440fx-test.o $(libqos-pc-obj-y) |
Gerd Hoffmann | 66e2ec2 | 2015-04-14 15:11:36 +0200 | [diff] [blame] | 544 | tests/q35-test$(EXESUF): tests/q35-test.o $(libqos-pc-obj-y) |
Anthony Liguori | bf2a38d | 2013-04-16 09:45:21 -0500 | [diff] [blame] | 545 | tests/fw_cfg-test$(EXESUF): tests/fw_cfg-test.o $(libqos-pc-obj-y) |
Andreas Färber | a21baf7 | 2013-11-07 18:25:10 +0100 | [diff] [blame] | 546 | tests/e1000-test$(EXESUF): tests/e1000-test.o |
Frediano Ziglio | 069bb58 | 2015-01-08 18:38:23 +0000 | [diff] [blame] | 547 | tests/rtl8139-test$(EXESUF): tests/rtl8139-test.o $(libqos-pc-obj-y) |
Andreas Färber | 85f68d5 | 2013-11-07 18:53:28 +0100 | [diff] [blame] | 548 | tests/pcnet-test$(EXESUF): tests/pcnet-test.o |
Andreas Färber | 92838a1 | 2013-11-07 19:18:46 +0100 | [diff] [blame] | 549 | tests/eepro100-test$(EXESUF): tests/eepro100-test.o |
Andreas Färber | 4a053e7 | 2013-11-07 18:37:34 +0100 | [diff] [blame] | 550 | tests/vmxnet3-test$(EXESUF): tests/vmxnet3-test.o |
Andreas Färber | 5297ea6 | 2014-02-09 04:01:37 +0100 | [diff] [blame] | 551 | tests/ne2000-test$(EXESUF): tests/ne2000-test.o |
Paolo Bonzini | f52b768 | 2014-07-15 14:57:06 +0200 | [diff] [blame] | 552 | tests/wdt_ib700-test$(EXESUF): tests/wdt_ib700-test.o |
Paulo Alcantara | 45dcdb9 | 2015-06-28 14:58:57 -0300 | [diff] [blame] | 553 | tests/tco-test$(EXESUF): tests/tco-test.o $(libqos-pc-obj-y) |
Andreas Färber | 02063aa | 2014-02-09 04:39:47 +0100 | [diff] [blame] | 554 | tests/virtio-balloon-test$(EXESUF): tests/virtio-balloon-test.o |
Marc Marí | 311e666 | 2014-09-01 12:07:54 +0200 | [diff] [blame] | 555 | tests/virtio-blk-test$(EXESUF): tests/virtio-blk-test.o $(libqos-virtio-obj-y) |
Jason Wang | 2af4025 | 2015-07-17 15:25:53 +0800 | [diff] [blame] | 556 | tests/virtio-net-test$(EXESUF): tests/virtio-net-test.o $(libqos-pc-obj-y) $(libqos-virtio-obj-y) |
Igor Mammedov | d1f3fc2 | 2014-09-26 09:28:09 +0000 | [diff] [blame] | 557 | tests/virtio-rng-test$(EXESUF): tests/virtio-rng-test.o $(libqos-pc-obj-y) |
Fam Zheng | ebe7d8b | 2015-04-24 19:35:16 +0800 | [diff] [blame] | 558 | tests/virtio-scsi-test$(EXESUF): tests/virtio-scsi-test.o $(libqos-virtio-obj-y) |
Andreas Färber | 2d888c0 | 2014-02-21 17:15:21 +0100 | [diff] [blame] | 559 | tests/virtio-9p-test$(EXESUF): tests/virtio-9p-test.o |
Andreas Färber | aa97405 | 2014-02-21 17:36:57 +0100 | [diff] [blame] | 560 | tests/virtio-serial-test$(EXESUF): tests/virtio-serial-test.o |
Andreas Färber | 6e8114a | 2014-02-21 17:49:12 +0100 | [diff] [blame] | 561 | tests/virtio-console-test$(EXESUF): tests/virtio-console-test.o |
Andreas Färber | 7649107 | 2014-02-09 03:48:44 +0100 | [diff] [blame] | 562 | tests/tpci200-test$(EXESUF): tests/tpci200-test.o |
Gerd Hoffmann | 0850fd5 | 2014-04-28 11:01:13 +0200 | [diff] [blame] | 563 | tests/display-vga-test$(EXESUF): tests/display-vga-test.o |
Andreas Färber | 3714682 | 2014-02-09 12:24:15 +0100 | [diff] [blame] | 564 | tests/ipoctal232-test$(EXESUF): tests/ipoctal232-test.o |
Andreas Färber | 7c41f21 | 2013-07-29 05:44:47 +0200 | [diff] [blame] | 565 | tests/qom-test$(EXESUF): tests/qom-test.o |
Markus Armbruster | e2f3f22 | 2014-10-02 16:51:31 +0200 | [diff] [blame] | 566 | tests/drive_del-test$(EXESUF): tests/drive_del-test.o $(libqos-pc-obj-y) |
Stefan Hajnoczi | 43cd209 | 2013-10-30 14:54:35 +0100 | [diff] [blame] | 567 | tests/qdev-monitor-test$(EXESUF): tests/qdev-monitor-test.o $(libqos-pc-obj-y) |
Andreas Färber | fc96779 | 2014-02-21 22:19:43 +0100 | [diff] [blame] | 568 | tests/nvme-test$(EXESUF): tests/nvme-test.o |
Andreas Färber | abc5373 | 2014-02-21 20:38:48 +0100 | [diff] [blame] | 569 | tests/pvpanic-test$(EXESUF): tests/pvpanic-test.o |
Andreas Färber | e683eb9 | 2014-02-21 22:43:43 +0100 | [diff] [blame] | 570 | tests/i82801b11-test$(EXESUF): tests/i82801b11-test.o |
Andreas Färber | d7b50c0 | 2014-03-30 19:00:05 +0200 | [diff] [blame] | 571 | tests/ac97-test$(EXESUF): tests/ac97-test.o |
Andreas Färber | 8fa74c9 | 2014-03-30 19:05:20 +0200 | [diff] [blame] | 572 | tests/es1370-test$(EXESUF): tests/es1370-test.o |
Andreas Färber | fbaf445 | 2014-03-30 19:22:48 +0200 | [diff] [blame] | 573 | tests/intel-hda-test$(EXESUF): tests/intel-hda-test.o |
Andreas Färber | efbf5df | 2014-03-30 20:02:00 +0200 | [diff] [blame] | 574 | tests/ioh3420-test$(EXESUF): tests/ioh3420-test.o |
Igor Mammedov | b393768 | 2014-09-26 09:28:14 +0000 | [diff] [blame] | 575 | tests/usb-hcd-ohci-test$(EXESUF): tests/usb-hcd-ohci-test.o $(libqos-usb-obj-y) |
Igor Mammedov | fbd942c | 2014-09-26 09:28:13 +0000 | [diff] [blame] | 576 | tests/usb-hcd-uhci-test$(EXESUF): tests/usb-hcd-uhci-test.o $(libqos-usb-obj-y) |
Igor Mammedov | b0354ec | 2014-09-26 09:28:12 +0000 | [diff] [blame] | 577 | tests/usb-hcd-ehci-test$(EXESUF): tests/usb-hcd-ehci-test.o $(libqos-usb-obj-y) |
Igor Mammedov | b393768 | 2014-09-26 09:28:14 +0000 | [diff] [blame] | 578 | tests/usb-hcd-xhci-test$(EXESUF): tests/usb-hcd-xhci-test.o $(libqos-usb-obj-y) |
Andreas Färber | 7fe55c3 | 2015-03-13 17:21:11 +0100 | [diff] [blame] | 579 | tests/pc-cpu-test$(EXESUF): tests/pc-cpu-test.o |
Daniel P. Berrange | 9894dc0 | 2016-01-19 11:14:29 +0000 | [diff] [blame] | 580 | tests/vhost-user-test$(EXESUF): tests/vhost-user-test.o qemu-char.o qemu-timer.o $(qtest-obj-y) $(test-io-obj-y) |
Wenchao Xia | f93296e | 2013-09-06 11:24:32 +0800 | [diff] [blame] | 581 | tests/qemu-iotests/socket_scm_helper$(EXESUF): tests/qemu-iotests/socket_scm_helper.o |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 582 | tests/test-qemu-opts$(EXESUF): tests/test-qemu-opts.o $(test-util-obj-y) |
| 583 | tests/test-write-threshold$(EXESUF): tests/test-write-threshold.o $(test-block-obj-y) |
Yang Hongyang | 89b1273 | 2015-10-07 11:52:22 +0800 | [diff] [blame] | 584 | tests/test-netfilter$(EXESUF): tests/test-netfilter.o $(qtest-obj-y) |
Zhang Chen | 06809ec | 2016-03-15 15:41:34 +0800 | [diff] [blame] | 585 | tests/test-filter-mirror$(EXESUF): tests/test-filter-mirror.o $(qtest-obj-y) |
Zhang Chen | 9fd3c5d | 2016-03-17 16:16:27 +0800 | [diff] [blame] | 586 | tests/test-filter-redirector$(EXESUF): tests/test-filter-redirector.o $(qtest-obj-y) |
Marc-André Lureau | ddef6a0 | 2014-04-02 16:57:48 +0200 | [diff] [blame] | 587 | tests/ivshmem-test$(EXESUF): tests/ivshmem-test.o contrib/ivshmem-server/ivshmem-server.o $(libqos-pc-obj-y) |
Victor Kaplansky | 3595e2e | 2015-10-28 14:53:07 +0200 | [diff] [blame] | 588 | tests/vhost-user-bridge$(EXESUF): tests/vhost-user-bridge.o |
Blue Swirl | d2a16f7 | 2012-03-30 17:39:33 +0000 | [diff] [blame] | 589 | |
Nikolay Nikolaev | e06cbc3 | 2014-06-19 20:35:42 +0300 | [diff] [blame] | 590 | ifeq ($(CONFIG_POSIX),y) |
| 591 | LIBS += -lutil |
| 592 | endif |
Nikolay Nikolaev | a77e6b1 | 2014-06-10 13:03:23 +0300 | [diff] [blame] | 593 | |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 594 | # QTest rules |
| 595 | |
| 596 | TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_DIRS))) |
Stefan Hajnoczi | 5c4e24c | 2014-03-28 10:55:54 +0100 | [diff] [blame] | 597 | ifeq ($(CONFIG_POSIX),y) |
Markus Armbruster | e253c28 | 2015-10-01 10:59:53 +0200 | [diff] [blame] | 598 | QTEST_TARGETS = $(TARGETS) |
Stefan Hajnoczi | 5c4e24c | 2014-03-28 10:55:54 +0100 | [diff] [blame] | 599 | check-qtest-y=$(foreach TARGET,$(TARGETS), $(check-qtest-$(TARGET)-y)) |
Markus Armbruster | e253c28 | 2015-10-01 10:59:53 +0200 | [diff] [blame] | 600 | check-qtest-y += $(check-qtest-generic-y) |
| 601 | else |
| 602 | QTEST_TARGETS = |
Stefan Hajnoczi | 5c4e24c | 2014-03-28 10:55:54 +0100 | [diff] [blame] | 603 | endif |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 604 | |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 605 | qtest-obj-y = tests/libqtest.o $(test-util-obj-y) |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 606 | $(check-qtest-y): $(qtest-obj-y) |
| 607 | |
Marc-André Lureau | 62c39b3 | 2015-10-02 14:58:18 +0200 | [diff] [blame] | 608 | tests/test-qga: tests/test-qga.o $(qtest-obj-y) |
| 609 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 610 | .PHONY: check-help |
| 611 | check-help: |
| 612 | @echo "Regression testing targets:" |
| 613 | @echo |
| 614 | @echo " make check Run all tests" |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 615 | @echo " make check-qtest-TARGET Run qtest tests for given target" |
| 616 | @echo " make check-qtest Run qtest tests" |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 617 | @echo " make check-unit Run qobject tests" |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 618 | @echo " make check-qapi-schema Run QAPI schema tests" |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 619 | @echo " make check-block Run block tests" |
| 620 | @echo " make check-report.html Generates an HTML test report" |
Wenchao Xia | 2cdfb12 | 2013-09-26 08:42:56 +0800 | [diff] [blame] | 621 | @echo " make check-clean Clean the tests" |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 622 | @echo |
| 623 | @echo "Please note that HTML reports do not regenerate if the unit tests" |
| 624 | @echo "has not changed." |
| 625 | @echo |
| 626 | @echo "The variable SPEED can be set to control the gtester speed setting." |
| 627 | @echo "Default options are -k and (for make V=1) --verbose; they can be" |
| 628 | @echo "changed with variable GTESTER_OPTIONS." |
Paolo Bonzini | 2d7799f | 2012-02-09 11:21:03 +0100 | [diff] [blame] | 629 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 630 | SPEED = quick |
| 631 | GTESTER_OPTIONS = -k $(if $(V),--verbose,-q) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 632 | GCOV_OPTIONS = -n $(if $(V),-f,) |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 633 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 634 | # gtester tests, possibly with verbose output |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 635 | |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 636 | .PHONY: $(patsubst %, check-qtest-%, $(QTEST_TARGETS)) |
| 637 | $(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-qtest-%: $(check-qtest-y) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 638 | $(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,) |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 639 | $(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \ |
John Snow | 122fdf2 | 2015-04-28 15:27:51 -0400 | [diff] [blame] | 640 | QTEST_QEMU_IMG=qemu-img$(EXESUF) \ |
Stefan Hajnoczi | 0412960 | 2013-05-27 15:28:51 +0200 | [diff] [blame] | 641 | MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \ |
Markus Armbruster | e253c28 | 2015-10-01 10:59:53 +0200 | [diff] [blame] | 642 | gtester $(GTESTER_OPTIONS) -m=$(SPEED) $(check-qtest-$*-y) $(check-qtest-generic-y),"GTESTER $@") |
Markus Armbruster | 2d1abb8 | 2015-10-01 10:59:56 +0200 | [diff] [blame] | 643 | $(if $(CONFIG_GCOV),@for f in $(gcov-files-$*-y) $(gcov-files-generic-y); do \ |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 644 | echo Gcov report for $$f:;\ |
| 645 | $(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \ |
| 646 | done,) |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 647 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 648 | .PHONY: $(patsubst %, check-%, $(check-unit-y)) |
| 649 | $(patsubst %, check-%, $(check-unit-y)): check-%: % |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 650 | $(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,) |
Stefan Hajnoczi | 0412960 | 2013-05-27 15:28:51 +0200 | [diff] [blame] | 651 | $(call quiet-command, \ |
| 652 | MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \ |
| 653 | gtester $(GTESTER_OPTIONS) -m=$(SPEED) $*,"GTESTER $*") |
Markus Armbruster | 2d1abb8 | 2015-10-01 10:59:56 +0200 | [diff] [blame] | 654 | $(if $(CONFIG_GCOV),@for f in $(gcov-files-$(subst tests/,,$*)-y) $(gcov-files-generic-y); do \ |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 655 | echo Gcov report for $$f:;\ |
| 656 | $(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \ |
| 657 | done,) |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 658 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 659 | # gtester tests with XML output |
| 660 | |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 661 | $(patsubst %, check-report-qtest-%.xml, $(QTEST_TARGETS)): check-report-qtest-%.xml: $(check-qtest-y) |
| 662 | $(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \ |
Stefan Weil | 47c7199 | 2015-07-20 12:21:18 -0400 | [diff] [blame] | 663 | QTEST_QEMU_IMG=qemu-img$(EXESUF) \ |
Andreas Färber | b5e62af | 2015-11-21 02:20:06 +0100 | [diff] [blame] | 664 | gtester -q $(GTESTER_OPTIONS) -o $@ -m=$(SPEED) $(check-qtest-$*-y) $(check-qtest-generic-y),"GTESTER $@") |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 665 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 666 | check-report-unit.xml: $(check-unit-y) |
| 667 | $(call quiet-command,gtester -q $(GTESTER_OPTIONS) -o $@ -m=$(SPEED) $^, "GTESTER $@") |
| 668 | |
| 669 | # Reports and overall runs |
| 670 | |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 671 | check-report.xml: $(patsubst %,check-report-qtest-%.xml, $(QTEST_TARGETS)) check-report-unit.xml |
Stefan Weil | f6288b9 | 2015-07-18 16:54:32 +0200 | [diff] [blame] | 672 | $(call quiet-command,$(SRC_PATH)/scripts/gtester-cat $^ > $@, " GEN $@") |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 673 | |
| 674 | check-report.html: check-report.xml |
Stefan Weil | f6288b9 | 2015-07-18 16:54:32 +0200 | [diff] [blame] | 675 | $(call quiet-command,gtester-report $< > $@, " GEN $@") |
Kevin Wolf | 8959449 | 2012-03-08 12:29:00 +0100 | [diff] [blame] | 676 | |
Kevin Wolf | b8c6f29 | 2012-03-09 13:37:40 +0100 | [diff] [blame] | 677 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 678 | # Other tests |
Kevin Wolf | b8c6f29 | 2012-03-09 13:37:40 +0100 | [diff] [blame] | 679 | |
Wenchao Xia | 22ee5a5 | 2013-09-26 08:42:55 +0800 | [diff] [blame] | 680 | QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF) |
| 681 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 682 | .PHONY: check-tests/qemu-iotests-quick.sh |
Wenchao Xia | 22ee5a5 | 2013-09-26 08:42:55 +0800 | [diff] [blame] | 683 | check-tests/qemu-iotests-quick.sh: tests/qemu-iotests-quick.sh qemu-img$(EXESUF) qemu-io$(EXESUF) $(QEMU_IOTESTS_HELPERS-y) |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 684 | $< |
Kevin Wolf | b8c6f29 | 2012-03-09 13:37:40 +0100 | [diff] [blame] | 685 | |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 686 | .PHONY: check-tests/test-qapi.py |
| 687 | check-tests/test-qapi.py: tests/test-qapi.py |
| 688 | |
| 689 | .PHONY: $(patsubst %, check-%, $(check-qapi-schema-y)) |
| 690 | $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 691 | $(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts \ |
| 692 | $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py \ |
Lluís Vilanova | 33aaad5 | 2014-05-02 15:52:35 +0200 | [diff] [blame] | 693 | $^ >$*.test.out 2>$*.test.err; \ |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 694 | echo $$? >$*.test.exit, \ |
| 695 | " TEST $*.out") |
Markus Armbruster | d8039e5 | 2013-09-24 09:43:39 +0200 | [diff] [blame] | 696 | @diff -q $(SRC_PATH)/$*.out $*.test.out |
Lluís Vilanova | 33aaad5 | 2014-05-02 15:52:35 +0200 | [diff] [blame] | 697 | @# Sanitize error messages (make them independent of build directory) |
| 698 | @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff -q $(SRC_PATH)/$*.err - |
Markus Armbruster | d8039e5 | 2013-09-24 09:43:39 +0200 | [diff] [blame] | 699 | @diff -q $(SRC_PATH)/$*.exit $*.test.exit |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 700 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 701 | # Consolidated targets |
| 702 | |
Wenchao Xia | 2cdfb12 | 2013-09-26 08:42:56 +0800 | [diff] [blame] | 703 | .PHONY: check-qapi-schema check-qtest check-unit check check-clean |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 704 | check-qapi-schema: $(patsubst %,check-%, $(check-qapi-schema-y)) |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 705 | check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS)) |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 706 | check-unit: $(patsubst %,check-%, $(check-unit-y)) |
| 707 | check-block: $(patsubst %,check-%, $(check-block-y)) |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 708 | check: check-qapi-schema check-unit check-qtest |
Wenchao Xia | 2cdfb12 | 2013-09-26 08:42:56 +0800 | [diff] [blame] | 709 | check-clean: |
| 710 | $(MAKE) -C tests/tcg clean |
Andreas Färber | f85e345 | 2014-04-07 18:33:22 +0200 | [diff] [blame] | 711 | rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y) |
Andreas Färber | b5e62af | 2015-11-21 02:20:06 +0100 | [diff] [blame] | 712 | rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), $(check-qtest-$(target)-y)) $(check-qtest-generic-y)) |
Wenchao Xia | 2cdfb12 | 2013-09-26 08:42:56 +0800 | [diff] [blame] | 713 | |
| 714 | clean: check-clean |
Eduardo Habkost | 14117c7 | 2012-07-18 14:22:27 -0300 | [diff] [blame] | 715 | |
Wenchao Xia | 22ee5a5 | 2013-09-26 08:42:55 +0800 | [diff] [blame] | 716 | # Build the help program automatically |
| 717 | |
| 718 | all: $(QEMU_IOTESTS_HELPERS-y) |
| 719 | |
Eduardo Habkost | 14117c7 | 2012-07-18 14:22:27 -0300 | [diff] [blame] | 720 | -include $(wildcard tests/*.d) |
Anthony Liguori | db2b550 | 2013-06-26 15:52:14 +0200 | [diff] [blame] | 721 | -include $(wildcard tests/libqos/*.d) |