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 |
Markus Armbruster | 4429532 | 2016-10-25 11:09:25 +0200 | [diff] [blame] | 11 | check-unit-y += tests/test-char$(EXESUF) |
Marc-André Lureau | 178fe0a | 2016-12-10 00:29:03 +0300 | [diff] [blame] | 12 | gcov-files-check-qdict-y = chardev/char.c |
Marc-André Lureau | 01b2ffc | 2017-06-07 20:35:58 +0400 | [diff] [blame] | 13 | check-unit-y += tests/check-qnum$(EXESUF) |
| 14 | gcov-files-check-qnum-y = qobject/qnum.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 |
Eric Blake | 7d7a337 | 2016-04-28 15:45:21 -0600 | [diff] [blame] | 19 | check-unit-y += tests/check-qnull$(EXESUF) |
| 20 | gcov-files-check-qnull-y = qobject/qnull.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 21 | check-unit-y += tests/check-qjson$(EXESUF) |
Paolo Bonzini | 5f7a74a | 2013-01-15 09:49:35 +0100 | [diff] [blame] | 22 | gcov-files-check-qjson-y = qobject/qjson.c |
Daniel P. Berrange | b3db211 | 2016-09-30 15:45:27 +0100 | [diff] [blame] | 23 | check-unit-y += tests/test-qobject-output-visitor$(EXESUF) |
| 24 | gcov-files-test-qobject-output-visitor-y = qapi/qobject-output-visitor.c |
Eric Blake | a15fcc3 | 2016-06-09 10:48:44 -0600 | [diff] [blame] | 25 | check-unit-y += tests/test-clone-visitor$(EXESUF) |
| 26 | gcov-files-test-clone-visitor-y = qapi/qapi-clone-visitor.c |
Daniel P. Berrange | b3db211 | 2016-09-30 15:45:27 +0100 | [diff] [blame] | 27 | check-unit-y += tests/test-qobject-input-visitor$(EXESUF) |
| 28 | gcov-files-test-qobject-input-visitor-y = qapi/qobject-input-visitor.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 29 | check-unit-y += tests/test-qmp-commands$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 30 | gcov-files-test-qmp-commands-y = qapi/qmp-dispatch.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 31 | check-unit-y += tests/test-string-input-visitor$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 32 | gcov-files-test-string-input-visitor-y = qapi/string-input-visitor.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 33 | check-unit-y += tests/test-string-output-visitor$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 34 | gcov-files-test-string-output-visitor-y = qapi/string-output-visitor.c |
Wenchao Xia | f6dadb0 | 2014-06-18 08:43:29 +0200 | [diff] [blame] | 35 | check-unit-y += tests/test-qmp-event$(EXESUF) |
| 36 | gcov-files-test-qmp-event-y += qapi/qmp-event.c |
Laszlo Ersek | 3953e3a | 2013-08-20 00:35:40 +0200 | [diff] [blame] | 37 | check-unit-y += tests/test-opts-visitor$(EXESUF) |
| 38 | gcov-files-test-opts-visitor-y = qapi/opts-visitor.c |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 39 | check-unit-y += tests/test-coroutine$(EXESUF) |
Peter Maydell | 7c2acc7 | 2013-04-08 12:11:27 +0100 | [diff] [blame] | 40 | gcov-files-test-coroutine-y = coroutine-$(CONFIG_COROUTINE_BACKEND).c |
Michael Roth | 2d49610 | 2012-02-21 21:05:07 -0600 | [diff] [blame] | 41 | check-unit-y += tests/test-visitor-serialization$(EXESUF) |
Michael Tokarev | 2278a69 | 2012-06-07 20:08:19 +0400 | [diff] [blame] | 42 | check-unit-y += tests/test-iov$(EXESUF) |
Paolo Bonzini | 5f7a74a | 2013-01-15 09:49:35 +0100 | [diff] [blame] | 43 | gcov-files-test-iov-y = util/iov.c |
Paolo Bonzini | b2ea25d | 2012-11-23 16:13:23 +0100 | [diff] [blame] | 44 | check-unit-y += tests/test-aio$(EXESUF) |
Paolo Bonzini | c2b38b2 | 2017-02-13 14:52:18 +0100 | [diff] [blame] | 45 | gcov-files-test-aio-y = util/async.c util/qemu-timer.o |
| 46 | gcov-files-test-aio-$(CONFIG_WIN32) += util/aio-win32.c |
| 47 | gcov-files-test-aio-$(CONFIG_POSIX) += util/aio-posix.c |
Paolo Bonzini | 0c330a7 | 2017-02-13 14:52:19 +0100 | [diff] [blame] | 48 | check-unit-y += tests/test-aio-multithread$(EXESUF) |
| 49 | gcov-files-test-aio-multithread-y = $(gcov-files-test-aio-y) |
| 50 | gcov-files-test-aio-multithread-y += util/qemu-coroutine.c tests/iothread.c |
Benoît Canet | f17cfe8 | 2013-09-02 14:14:38 +0200 | [diff] [blame] | 51 | check-unit-y += tests/test-throttle$(EXESUF) |
Paolo Bonzini | 74c856e | 2012-11-23 16:13:24 +0100 | [diff] [blame] | 52 | check-unit-y += tests/test-thread-pool$(EXESUF) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 53 | gcov-files-test-thread-pool-y = thread-pool.c |
Paolo Bonzini | e7c033c | 2013-01-21 17:09:40 +0100 | [diff] [blame] | 54 | gcov-files-test-hbitmap-y = util/hbitmap.c |
| 55 | check-unit-y += tests/test-hbitmap$(EXESUF) |
Stefan Hajnoczi | 6c6f312 | 2015-11-05 18:13:20 -0500 | [diff] [blame] | 56 | gcov-files-test-hbitmap-y = blockjob.c |
Alberto Garcia | 9ef8112 | 2016-07-29 17:31:41 +0300 | [diff] [blame] | 57 | check-unit-y += tests/test-blockjob$(EXESUF) |
Stefan Hajnoczi | 6c6f312 | 2015-11-05 18:13:20 -0500 | [diff] [blame] | 58 | check-unit-y += tests/test-blockjob-txn$(EXESUF) |
Eduardo Habkost | 247c9de | 2013-01-23 15:58:27 -0200 | [diff] [blame] | 59 | check-unit-y += tests/test-x86-cpuid$(EXESUF) |
| 60 | # all code tested by test-x86-cpuid is inside topology.h |
| 61 | gcov-files-test-x86-cpuid-y = |
Dr. David Alan Gilbert | 60fe637 | 2014-12-12 11:13:38 +0000 | [diff] [blame] | 62 | ifeq ($(CONFIG_SOFTMMU),y) |
Orit Wasserman | 21e3cd2 | 2013-01-31 09:12:16 +0200 | [diff] [blame] | 63 | check-unit-y += tests/test-xbzrle$(EXESUF) |
Dr. David Alan Gilbert | 60fe637 | 2014-12-12 11:13:38 +0000 | [diff] [blame] | 64 | gcov-files-test-xbzrle-y = migration/xbzrle.c |
| 65 | check-unit-$(CONFIG_POSIX) += tests/test-vmstate$(EXESUF) |
| 66 | endif |
Eduardo Habkost | e3f9fe2 | 2013-02-04 16:27:45 -0200 | [diff] [blame] | 67 | check-unit-y += tests/test-cutils$(EXESUF) |
| 68 | gcov-files-test-cutils-y += util/cutils.c |
Jose Ricardo Ziviani | f539fbe | 2017-01-10 00:10:09 -0200 | [diff] [blame] | 69 | check-unit-y += tests/test-shift128$(EXESUF) |
| 70 | gcov-files-test-shift128-y = util/host-utils.c |
Richard Henderson | f4c0f98 | 2013-02-16 12:47:01 -0800 | [diff] [blame] | 71 | check-unit-y += tests/test-mul64$(EXESUF) |
| 72 | gcov-files-test-mul64-y = util/host-utils.c |
Paolo Bonzini | 6046c62 | 2013-06-20 16:19:32 +0200 | [diff] [blame] | 73 | check-unit-y += tests/test-int128$(EXESUF) |
| 74 | # all code tested by test-int128 is inside int128.h |
| 75 | gcov-files-test-int128-y = |
Paolo Bonzini | 8fda74a | 2013-06-21 09:09:34 +0200 | [diff] [blame] | 76 | check-unit-y += tests/rcutorture$(EXESUF) |
| 77 | gcov-files-rcutorture-y = util/rcu.c |
Mike Day | 341774f | 2013-08-27 11:38:45 -0400 | [diff] [blame] | 78 | check-unit-y += tests/test-rcu-list$(EXESUF) |
| 79 | gcov-files-test-rcu-list-y = util/rcu.c |
Emilio G. Cota | ff9249b | 2016-06-08 14:55:27 -0400 | [diff] [blame] | 80 | check-unit-y += tests/test-qdist$(EXESUF) |
| 81 | gcov-files-test-qdist-y = util/qdist.c |
Emilio G. Cota | 1a95404 | 2016-06-08 14:55:29 -0400 | [diff] [blame] | 82 | check-unit-y += tests/test-qht$(EXESUF) |
| 83 | gcov-files-test-qht-y = util/qht.c |
Emilio G. Cota | 896a9ee | 2016-06-08 14:55:31 -0400 | [diff] [blame] | 84 | check-unit-y += tests/test-qht-par$(EXESUF) |
| 85 | gcov-files-test-qht-par-y = util/qht.c |
Peter Maydell | 3464700 | 2013-06-28 12:40:32 +0100 | [diff] [blame] | 86 | check-unit-y += tests/test-bitops$(EXESUF) |
Alex Bennée | c3f8962 | 2016-12-09 14:36:00 +0000 | [diff] [blame] | 87 | check-unit-y += tests/test-bitcnt$(EXESUF) |
Michael S. Tsirkin | 9d41401 | 2014-09-18 20:46:45 +0300 | [diff] [blame] | 88 | 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] | 89 | check-unit-y += tests/check-qom-interface$(EXESUF) |
| 90 | gcov-files-check-qom-interface-y = qom/object.c |
Daniel P. Berrange | a31bdae | 2015-05-13 17:14:06 +0100 | [diff] [blame] | 91 | check-unit-y += tests/check-qom-proplist$(EXESUF) |
| 92 | gcov-files-check-qom-proplist-y = qom/object.c |
Leandro Dorileo | 4ba6fab | 2014-05-19 18:53:55 -0300 | [diff] [blame] | 93 | check-unit-y += tests/test-qemu-opts$(EXESUF) |
Markus Armbruster | 112c944 | 2017-02-28 22:26:48 +0100 | [diff] [blame] | 94 | gcov-files-test-qemu-opts-y = util/qemu-option.c |
Markus Armbruster | d454dbe | 2017-02-28 22:26:49 +0100 | [diff] [blame] | 95 | check-unit-y += tests/test-keyval$(EXESUF) |
| 96 | gcov-files-test-keyval-y = util/keyval.c |
Francesco Romani | e246211 | 2015-01-12 14:11:13 +0100 | [diff] [blame] | 97 | check-unit-y += tests/test-write-threshold$(EXESUF) |
| 98 | gcov-files-test-write-threshold-y = block/write-threshold.c |
Daniel P. Berrange | 0c16c05 | 2016-03-11 18:09:22 +0000 | [diff] [blame] | 99 | check-unit-y += tests/test-crypto-hash$(EXESUF) |
Longpeng(Mike) | 4fd460b | 2016-12-13 18:43:00 +0800 | [diff] [blame] | 100 | check-unit-y += tests/test-crypto-hmac$(EXESUF) |
Daniel P. Berrange | ca38a4c | 2015-07-01 18:10:32 +0100 | [diff] [blame] | 101 | check-unit-y += tests/test-crypto-cipher$(EXESUF) |
Daniel P. Berrange | ac1d887 | 2015-10-14 09:58:38 +0100 | [diff] [blame] | 102 | check-unit-y += tests/test-crypto-secret$(EXESUF) |
Daniel P. Berrange | 9a2fd43 | 2015-04-13 14:01:39 +0100 | [diff] [blame] | 103 | check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlscredsx509$(EXESUF) |
Daniel P. Berrange | d321e1e | 2015-03-02 17:23:31 +0000 | [diff] [blame] | 104 | check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlssession$(EXESUF) |
Yang Hongyang | fb91f30 | 2016-04-19 15:39:13 +0800 | [diff] [blame] | 105 | ifneq (,$(findstring qemu-ga,$(TOOLS))) |
| 106 | check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) |
| 107 | endif |
Alberto Garcia | bd797fc | 2015-10-28 17:33:01 +0200 | [diff] [blame] | 108 | check-unit-y += tests/test-timed-average$(EXESUF) |
Daniel P. Berrange | b02db2d | 2015-03-18 17:25:45 +0000 | [diff] [blame] | 109 | check-unit-y += tests/test-io-task$(EXESUF) |
Daniel P. Berrange | 559607e | 2015-02-27 16:19:33 +0000 | [diff] [blame] | 110 | check-unit-y += tests/test-io-channel-socket$(EXESUF) |
Daniel P. Berrange | d6e4886 | 2015-02-27 18:25:25 +0000 | [diff] [blame] | 111 | check-unit-y += tests/test-io-channel-file$(EXESUF) |
Daniel P. Berrange | ed8ee42 | 2015-03-02 18:13:13 +0000 | [diff] [blame] | 112 | check-unit-$(CONFIG_GNUTLS) += tests/test-io-channel-tls$(EXESUF) |
Daniel P. Berrange | 195e14d | 2015-08-27 16:25:30 +0100 | [diff] [blame] | 113 | check-unit-y += tests/test-io-channel-command$(EXESUF) |
Daniel P. Berrange | d98e4eb | 2015-09-15 17:27:33 +0100 | [diff] [blame] | 114 | check-unit-y += tests/test-io-channel-buffer$(EXESUF) |
Daniel P. Berrange | 89bc0b6 | 2015-11-23 15:24:50 +0000 | [diff] [blame] | 115 | check-unit-y += tests/test-base64$(EXESUF) |
Daniel P. Berrange | c44e92a | 2016-04-04 15:08:45 +0100 | [diff] [blame] | 116 | 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] | 117 | check-unit-y += tests/test-crypto-ivgen$(EXESUF) |
Daniel P. Berrange | 5a95e0f | 2015-10-23 16:14:25 +0100 | [diff] [blame] | 118 | check-unit-y += tests/test-crypto-afsplit$(EXESUF) |
Daniel P. Berrange | 84f7f18 | 2016-02-11 14:00:17 +0000 | [diff] [blame] | 119 | check-unit-y += tests/test-crypto-xts$(EXESUF) |
Daniel P. Berrange | 7d96901 | 2015-10-24 11:44:13 +0100 | [diff] [blame] | 120 | check-unit-y += tests/test-crypto-block$(EXESUF) |
Alex Bennée | 3514552 | 2016-03-15 14:30:20 +0000 | [diff] [blame] | 121 | check-unit-y += tests/test-logging$(EXESUF) |
Markus Armbruster | 112c944 | 2017-02-28 22:26:48 +0100 | [diff] [blame] | 122 | gcov-files-test-logging-y = util/log.c |
Changlong Xie | b311046 | 2016-07-27 15:01:51 +0800 | [diff] [blame] | 123 | check-unit-$(CONFIG_REPLICATION) += tests/test-replication$(EXESUF) |
Richard Henderson | efad668 | 2016-08-29 11:46:16 -0700 | [diff] [blame] | 124 | check-unit-y += tests/test-bufferiszero$(EXESUF) |
| 125 | gcov-files-check-bufferiszero-y = util/bufferiszero.c |
Fam Zheng | c739cdd | 2016-09-21 12:27:24 +0800 | [diff] [blame] | 126 | check-unit-y += tests/test-uuid$(EXESUF) |
Paolo Bonzini | 24b9462 | 2016-10-17 19:22:17 +0100 | [diff] [blame] | 127 | check-unit-y += tests/ptimer-test$(EXESUF) |
| 128 | gcov-files-ptimer-test-y = hw/core/ptimer.c |
Markus Armbruster | 6c873d1 | 2017-02-28 22:27:03 +0100 | [diff] [blame] | 129 | check-unit-y += tests/test-qapi-util$(EXESUF) |
| 130 | gcov-files-test-qapi-util-y = qapi/qapi-util.c |
Anthony Liguori | ad65aa8 | 2012-01-10 13:10:51 -0600 | [diff] [blame] | 131 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 132 | check-block-$(CONFIG_POSIX) += tests/qemu-iotests-quick.sh |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 133 | |
Anthony Liguori | d1aaf54 | 2012-03-28 15:42:07 +0200 | [diff] [blame] | 134 | # All QTests for now are POSIX-only, but the dependencies are |
| 135 | # really in libqtest, not in the testcases themselves. |
Andreas Färber | a21baf7 | 2013-11-07 18:25:10 +0100 | [diff] [blame] | 136 | |
Markus Armbruster | f66e7ac | 2017-03-03 13:32:23 +0100 | [diff] [blame] | 137 | check-qtest-generic-y = tests/qmp-test$(EXESUF) |
| 138 | gcov-files-generic-y = monitor.c qapi/qmp-dispatch.c |
| 139 | check-qtest-generic-y += tests/device-introspect-test$(EXESUF) |
Markus Armbruster | 2d1abb8 | 2015-10-01 10:59:56 +0200 | [diff] [blame] | 140 | gcov-files-generic-y = qdev-monitor.c qmp.c |
Markus Armbruster | e253c28 | 2015-10-01 10:59:53 +0200 | [diff] [blame] | 141 | |
Andreas Färber | 1f9c4cf | 2013-08-02 00:48:40 +0200 | [diff] [blame] | 142 | gcov-files-ipack-y += hw/ipack/ipack.c |
Andreas Färber | 3714682 | 2014-02-09 12:24:15 +0100 | [diff] [blame] | 143 | check-qtest-ipack-y += tests/ipoctal232-test$(EXESUF) |
| 144 | gcov-files-ipack-y += hw/char/ipoctal232.c |
| 145 | |
Andreas Färber | 6e8114a | 2014-02-21 17:49:12 +0100 | [diff] [blame] | 146 | check-qtest-virtioserial-y += tests/virtio-console-test$(EXESUF) |
| 147 | gcov-files-virtioserial-y += hw/char/virtio-console.c |
| 148 | |
Andreas Färber | b815ec5 | 2014-02-09 04:13:37 +0100 | [diff] [blame] | 149 | gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio.c |
| 150 | check-qtest-virtio-y += tests/virtio-net-test$(EXESUF) |
| 151 | gcov-files-virtio-y += i386-softmmu/hw/net/virtio-net.c |
Andreas Färber | 02063aa | 2014-02-09 04:39:47 +0100 | [diff] [blame] | 152 | check-qtest-virtio-y += tests/virtio-balloon-test$(EXESUF) |
| 153 | gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio-balloon.c |
Andreas Färber | c7a59be | 2014-02-09 04:32:55 +0100 | [diff] [blame] | 154 | check-qtest-virtio-y += tests/virtio-blk-test$(EXESUF) |
| 155 | gcov-files-virtio-y += i386-softmmu/hw/block/virtio-blk.c |
Andreas Färber | b6f46f0 | 2014-02-09 04:43:10 +0100 | [diff] [blame] | 156 | check-qtest-virtio-y += tests/virtio-rng-test$(EXESUF) |
| 157 | gcov-files-virtio-y += hw/virtio/virtio-rng.c |
Andreas Färber | 26c9a01 | 2014-02-21 16:42:15 +0100 | [diff] [blame] | 158 | check-qtest-virtio-y += tests/virtio-scsi-test$(EXESUF) |
| 159 | gcov-files-virtio-y += i386-softmmu/hw/scsi/virtio-scsi.c |
Andreas Färber | 2d888c0 | 2014-02-21 17:15:21 +0100 | [diff] [blame] | 160 | ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy) |
| 161 | check-qtest-virtio-y += tests/virtio-9p-test$(EXESUF) |
| 162 | gcov-files-virtio-y += hw/9pfs/virtio-9p.c |
| 163 | gcov-files-virtio-y += i386-softmmu/hw/9pfs/virtio-9p-device.c |
| 164 | endif |
Andreas Färber | aa97405 | 2014-02-21 17:36:57 +0100 | [diff] [blame] | 165 | check-qtest-virtio-y += tests/virtio-serial-test$(EXESUF) |
| 166 | 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] | 167 | check-qtest-virtio-y += $(check-qtest-virtioserial-y) |
| 168 | gcov-files-virtio-y += $(gcov-files-virtioserial-y) |
Andreas Färber | b815ec5 | 2014-02-09 04:13:37 +0100 | [diff] [blame] | 169 | |
Andreas Färber | a21baf7 | 2013-11-07 18:25:10 +0100 | [diff] [blame] | 170 | check-qtest-pci-y += tests/e1000-test$(EXESUF) |
| 171 | gcov-files-pci-y += hw/net/e1000.c |
Dmitry Fleytman | 7c375e2 | 2016-06-01 11:23:46 +0300 | [diff] [blame] | 172 | check-qtest-pci-y += tests/e1000e-test$(EXESUF) |
| 173 | gcov-files-pci-y += hw/net/e1000e.c hw/net/e1000e_core.c |
Andreas Färber | 74769fe | 2013-11-07 18:43:09 +0100 | [diff] [blame] | 174 | check-qtest-pci-y += tests/rtl8139-test$(EXESUF) |
| 175 | gcov-files-pci-y += hw/net/rtl8139.c |
Andreas Färber | 85f68d5 | 2013-11-07 18:53:28 +0100 | [diff] [blame] | 176 | check-qtest-pci-y += tests/pcnet-test$(EXESUF) |
| 177 | gcov-files-pci-y += hw/net/pcnet.c |
| 178 | gcov-files-pci-y += hw/net/pcnet-pci.c |
Andreas Färber | 92838a1 | 2013-11-07 19:18:46 +0100 | [diff] [blame] | 179 | check-qtest-pci-y += tests/eepro100-test$(EXESUF) |
| 180 | gcov-files-pci-y += hw/net/eepro100.c |
Andreas Färber | 5297ea6 | 2014-02-09 04:01:37 +0100 | [diff] [blame] | 181 | check-qtest-pci-y += tests/ne2000-test$(EXESUF) |
| 182 | gcov-files-pci-y += hw/net/ne2000.c |
Andreas Färber | fc96779 | 2014-02-21 22:19:43 +0100 | [diff] [blame] | 183 | check-qtest-pci-y += tests/nvme-test$(EXESUF) |
| 184 | gcov-files-pci-y += hw/block/nvme.c |
Andreas Färber | d7b50c0 | 2014-03-30 19:00:05 +0200 | [diff] [blame] | 185 | check-qtest-pci-y += tests/ac97-test$(EXESUF) |
| 186 | gcov-files-pci-y += hw/audio/ac97.c |
Andreas Färber | 8fa74c9 | 2014-03-30 19:05:20 +0200 | [diff] [blame] | 187 | check-qtest-pci-y += tests/es1370-test$(EXESUF) |
| 188 | gcov-files-pci-y += hw/audio/es1370.c |
Andreas Färber | b815ec5 | 2014-02-09 04:13:37 +0100 | [diff] [blame] | 189 | check-qtest-pci-y += $(check-qtest-virtio-y) |
| 190 | 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] | 191 | check-qtest-pci-y += tests/tpci200-test$(EXESUF) |
Andreas Färber | 83bb0b2 | 2014-02-21 16:29:17 +0100 | [diff] [blame] | 192 | gcov-files-pci-y += hw/ipack/tpci200.c |
Andreas Färber | 3714682 | 2014-02-09 12:24:15 +0100 | [diff] [blame] | 193 | check-qtest-pci-y += $(check-qtest-ipack-y) |
Andreas Färber | 83bb0b2 | 2014-02-21 16:29:17 +0100 | [diff] [blame] | 194 | gcov-files-pci-y += $(gcov-files-ipack-y) |
Gerd Hoffmann | 0850fd5 | 2014-04-28 11:01:13 +0200 | [diff] [blame] | 195 | check-qtest-pci-y += tests/display-vga-test$(EXESUF) |
| 196 | gcov-files-pci-y += hw/display/vga.c |
| 197 | gcov-files-pci-y += hw/display/cirrus_vga.c |
| 198 | gcov-files-pci-y += hw/display/vga-pci.c |
Gerd Hoffmann | 501eea4 | 2014-04-28 11:10:12 +0200 | [diff] [blame] | 199 | gcov-files-pci-y += hw/display/virtio-gpu.c |
| 200 | gcov-files-pci-y += hw/display/virtio-gpu-pci.c |
| 201 | gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c |
Andreas Färber | fbaf445 | 2014-03-30 19:22:48 +0200 | [diff] [blame] | 202 | check-qtest-pci-y += tests/intel-hda-test$(EXESUF) |
| 203 | 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] | 204 | check-qtest-pci-$(CONFIG_EVENTFD) += tests/ivshmem-test$(EXESUF) |
Andreas Färber | bbfc2ef | 2015-10-11 00:18:32 +0200 | [diff] [blame] | 205 | gcov-files-pci-y += hw/misc/ivshmem.c |
Paolo Bonzini | 660174f | 2017-06-01 16:45:16 +0200 | [diff] [blame] | 206 | check-qtest-pci-y += tests/megasas-test$(EXESUF) |
| 207 | gcov-files-pci-y += hw/scsi/megasas.c |
Andreas Färber | a21baf7 | 2013-11-07 18:25:10 +0100 | [diff] [blame] | 208 | |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 209 | check-qtest-i386-y = tests/endianness-test$(EXESUF) |
| 210 | check-qtest-i386-y += tests/fdc-test$(EXESUF) |
Andreas Färber | 5ec889b | 2014-02-14 15:09:28 +0100 | [diff] [blame] | 211 | gcov-files-i386-y = hw/block/fdc.c |
Kevin Wolf | acbe480 | 2013-05-08 11:18:41 +0200 | [diff] [blame] | 212 | check-qtest-i386-y += tests/ide-test$(EXESUF) |
John Snow | 1cd1031 | 2014-08-21 13:44:32 -0400 | [diff] [blame] | 213 | check-qtest-i386-y += tests/ahci-test$(EXESUF) |
Markus Armbruster | 0e8a8c8 | 2012-07-10 11:12:30 +0200 | [diff] [blame] | 214 | check-qtest-i386-y += tests/hd-geo-test$(EXESUF) |
Andreas Färber | 5ec889b | 2014-02-14 15:09:28 +0100 | [diff] [blame] | 215 | gcov-files-i386-y += hw/block/hd-geometry.c |
Markus Armbruster | edbd790 | 2013-06-26 15:52:13 +0200 | [diff] [blame] | 216 | check-qtest-i386-y += tests/boot-order-test$(EXESUF) |
Gabriel L. Somlo | 501f28c | 2014-05-27 15:03:14 -0400 | [diff] [blame] | 217 | check-qtest-i386-y += tests/bios-tables-test$(EXESUF) |
Thomas Huth | d2ab58f | 2016-09-03 11:57:51 +0200 | [diff] [blame] | 218 | check-qtest-i386-y += tests/boot-serial-test$(EXESUF) |
Victor Kaplansky | 4e08256 | 2016-02-14 18:59:27 +0200 | [diff] [blame] | 219 | check-qtest-i386-y += tests/pxe-test$(EXESUF) |
Stefan Weil | fba0c40 | 2012-05-15 18:19:45 +0200 | [diff] [blame] | 220 | check-qtest-i386-y += tests/rtc-test$(EXESUF) |
Corey Minyard | 24f976d | 2015-12-17 12:50:09 -0600 | [diff] [blame] | 221 | check-qtest-i386-y += tests/ipmi-kcs-test$(EXESUF) |
| 222 | check-qtest-i386-y += tests/ipmi-bt-test$(EXESUF) |
Anthony Liguori | 9bda413 | 2013-04-16 09:45:19 -0500 | [diff] [blame] | 223 | check-qtest-i386-y += tests/i440fx-test$(EXESUF) |
Anthony Liguori | bf2a38d | 2013-04-16 09:45:21 -0500 | [diff] [blame] | 224 | check-qtest-i386-y += tests/fw_cfg-test$(EXESUF) |
Markus Armbruster | e2f3f22 | 2014-10-02 16:51:31 +0200 | [diff] [blame] | 225 | check-qtest-i386-y += tests/drive_del-test$(EXESUF) |
Paolo Bonzini | f52b768 | 2014-07-15 14:57:06 +0200 | [diff] [blame] | 226 | check-qtest-i386-y += tests/wdt_ib700-test$(EXESUF) |
Michael S. Tsirkin | c4fc82b | 2015-07-08 10:06:15 +0300 | [diff] [blame] | 227 | check-qtest-i386-y += tests/tco-test$(EXESUF) |
Paolo Bonzini | f52b768 | 2014-07-15 14:57:06 +0200 | [diff] [blame] | 228 | 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] | 229 | check-qtest-i386-y += $(check-qtest-pci-y) |
| 230 | gcov-files-i386-y += $(gcov-files-pci-y) |
Andreas Färber | 4a053e7 | 2013-11-07 18:37:34 +0100 | [diff] [blame] | 231 | check-qtest-i386-y += tests/vmxnet3-test$(EXESUF) |
| 232 | gcov-files-i386-y += hw/net/vmxnet3.c |
Dmitry Fleytman | 605d52e | 2016-06-01 11:23:39 +0300 | [diff] [blame] | 233 | gcov-files-i386-y += hw/net/net_rx_pkt.c |
| 234 | gcov-files-i386-y += hw/net/net_tx_pkt.c |
Andreas Färber | abc5373 | 2014-02-21 20:38:48 +0100 | [diff] [blame] | 235 | check-qtest-i386-y += tests/pvpanic-test$(EXESUF) |
| 236 | gcov-files-i386-y += i386-softmmu/hw/misc/pvpanic.c |
Andreas Färber | e683eb9 | 2014-02-21 22:43:43 +0100 | [diff] [blame] | 237 | check-qtest-i386-y += tests/i82801b11-test$(EXESUF) |
| 238 | gcov-files-i386-y += hw/pci-bridge/i82801b11.c |
Andreas Färber | efbf5df | 2014-03-30 20:02:00 +0200 | [diff] [blame] | 239 | check-qtest-i386-y += tests/ioh3420-test$(EXESUF) |
| 240 | gcov-files-i386-y += hw/pci-bridge/ioh3420.c |
Gonglei | 28edfce | 2014-06-23 19:53:51 +0800 | [diff] [blame] | 241 | check-qtest-i386-y += tests/usb-hcd-ohci-test$(EXESUF) |
| 242 | gcov-files-i386-y += hw/usb/hcd-ohci.c |
Gonglei | 44ced58 | 2014-06-23 19:53:52 +0800 | [diff] [blame] | 243 | check-qtest-i386-y += tests/usb-hcd-uhci-test$(EXESUF) |
| 244 | gcov-files-i386-y += hw/usb/hcd-uhci.c |
Andreas Färber | cc900d3 | 2014-03-30 20:25:38 +0200 | [diff] [blame] | 245 | check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF) |
| 246 | gcov-files-i386-y += hw/usb/hcd-ehci.c |
Gerd Hoffmann | d81d410 | 2014-05-07 16:39:11 +0200 | [diff] [blame] | 247 | gcov-files-i386-y += hw/usb/dev-hid.c |
| 248 | gcov-files-i386-y += hw/usb/dev-storage.c |
Gonglei | 25e89ec | 2014-06-23 19:53:53 +0800 | [diff] [blame] | 249 | check-qtest-i386-y += tests/usb-hcd-xhci-test$(EXESUF) |
| 250 | gcov-files-i386-y += hw/usb/hcd-xhci.c |
Andreas Färber | 7fe55c3 | 2015-03-13 17:21:11 +0100 | [diff] [blame] | 251 | check-qtest-i386-y += tests/pc-cpu-test$(EXESUF) |
Gerd Hoffmann | 66e2ec2 | 2015-04-14 15:11:36 +0200 | [diff] [blame] | 252 | check-qtest-i386-y += tests/q35-test$(EXESUF) |
Ben Warren | 83f3c70 | 2017-07-01 23:54:03 -0400 | [diff] [blame] | 253 | check-qtest-i386-y += tests/vmgenid-test$(EXESUF) |
Gerd Hoffmann | 66e2ec2 | 2015-04-14 15:11:36 +0200 | [diff] [blame] | 254 | gcov-files-i386-y += hw/pci-host/q35.c |
Marc-André Lureau | 421f444 | 2015-10-26 15:32:00 +0100 | [diff] [blame] | 255 | check-qtest-i386-$(CONFIG_VHOST_NET_TEST_i386) += tests/vhost-user-test$(EXESUF) |
| 256 | ifeq ($(CONFIG_VHOST_NET_TEST_i386),) |
| 257 | 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] | 258 | endif |
Yang Hongyang | 89b1273 | 2015-10-07 11:52:22 +0800 | [diff] [blame] | 259 | check-qtest-i386-y += tests/test-netfilter$(EXESUF) |
Zhang Chen | 06809ec | 2016-03-15 15:41:34 +0800 | [diff] [blame] | 260 | check-qtest-i386-y += tests/test-filter-mirror$(EXESUF) |
Zhang Chen | 9fd3c5d | 2016-03-17 16:16:27 +0800 | [diff] [blame] | 261 | check-qtest-i386-y += tests/test-filter-redirector$(EXESUF) |
Dr. David Alan Gilbert | ea0c6d6 | 2016-06-13 12:16:43 +0100 | [diff] [blame] | 262 | check-qtest-i386-y += tests/postcopy-test$(EXESUF) |
Eduardo Habkost | 6efef58 | 2016-09-20 17:11:39 -0300 | [diff] [blame] | 263 | check-qtest-i386-y += tests/test-x86-cpuid-compat$(EXESUF) |
Igor Mammedov | 63baf8b | 2017-05-03 14:56:55 +0200 | [diff] [blame] | 264 | check-qtest-i386-y += tests/numa-test$(EXESUF) |
Marc-André Lureau | 0ee2e9d | 2016-06-06 18:45:07 +0200 | [diff] [blame] | 265 | check-qtest-x86_64-y += $(check-qtest-i386-y) |
Andreas Färber | 5ec889b | 2014-02-14 15:09:28 +0100 | [diff] [blame] | 266 | gcov-files-i386-y += i386-softmmu/hw/timer/mc146818rtc.c |
Andreas Färber | c5cd02b | 2013-01-26 12:45:14 +0100 | [diff] [blame] | 267 | gcov-files-x86_64-y = $(subst i386-softmmu/,x86_64-softmmu/,$(gcov-files-i386-y)) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 268 | |
Thomas Huth | d2ab58f | 2016-09-03 11:57:51 +0200 | [diff] [blame] | 269 | check-qtest-alpha-y = tests/boot-serial-test$(EXESUF) |
| 270 | |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 271 | check-qtest-mips-y = tests/endianness-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 272 | |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 273 | check-qtest-mips64-y = tests/endianness-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 274 | |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 275 | check-qtest-mips64el-y = tests/endianness-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 276 | |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 277 | check-qtest-ppc-y = tests/endianness-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 278 | check-qtest-ppc-y += tests/boot-order-test$(EXESUF) |
| 279 | check-qtest-ppc-y += tests/prom-env-test$(EXESUF) |
| 280 | check-qtest-ppc-y += tests/drive_del-test$(EXESUF) |
Thomas Huth | d2ab58f | 2016-09-03 11:57:51 +0200 | [diff] [blame] | 281 | check-qtest-ppc-y += tests/boot-serial-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 282 | |
| 283 | check-qtest-ppc64-y = tests/spapr-phb-test$(EXESUF) |
| 284 | gcov-files-ppc64-y = ppc64-softmmu/hw/ppc/spapr_pci.c |
| 285 | check-qtest-ppc64-y += tests/endianness-test$(EXESUF) |
| 286 | check-qtest-ppc64-y += tests/boot-order-test$(EXESUF) |
| 287 | check-qtest-ppc64-y += tests/prom-env-test$(EXESUF) |
David Gibson | ca8e4bf | 2016-11-15 10:09:46 +1100 | [diff] [blame] | 288 | check-qtest-ppc64-y += tests/pnv-xscom-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 289 | check-qtest-ppc64-y += tests/drive_del-test$(EXESUF) |
| 290 | check-qtest-ppc64-y += tests/postcopy-test$(EXESUF) |
Thomas Huth | d2ab58f | 2016-09-03 11:57:51 +0200 | [diff] [blame] | 291 | check-qtest-ppc64-y += tests/boot-serial-test$(EXESUF) |
Laurent Vivier | eeddd59 | 2016-09-13 14:52:45 +0200 | [diff] [blame] | 292 | check-qtest-ppc64-y += tests/rtas-test$(EXESUF) |
Thomas Huth | 1485ef1 | 2016-09-26 22:17:46 +0200 | [diff] [blame] | 293 | check-qtest-ppc64-y += tests/pxe-test$(EXESUF) |
Laurent Vivier | aa9026f | 2016-09-29 12:32:47 +0200 | [diff] [blame] | 294 | check-qtest-ppc64-y += tests/usb-hcd-ohci-test$(EXESUF) |
| 295 | gcov-files-ppc64-y += hw/usb/hcd-ohci.c |
| 296 | check-qtest-ppc64-y += tests/usb-hcd-uhci-test$(EXESUF) |
| 297 | gcov-files-ppc64-y += hw/usb/hcd-uhci.c |
| 298 | check-qtest-ppc64-y += tests/usb-hcd-xhci-test$(EXESUF) |
| 299 | gcov-files-ppc64-y += hw/usb/hcd-xhci.c |
Laurent Vivier | 30ca440 | 2016-10-17 12:30:24 +0200 | [diff] [blame] | 300 | check-qtest-ppc64-y += $(check-qtest-virtio-y) |
Laurent Vivier | 2f8e490 | 2017-01-05 16:29:44 +0100 | [diff] [blame] | 301 | check-qtest-ppc64-y += tests/test-netfilter$(EXESUF) |
| 302 | check-qtest-ppc64-y += tests/test-filter-mirror$(EXESUF) |
| 303 | check-qtest-ppc64-y += tests/test-filter-redirector$(EXESUF) |
Laurent Vivier | f38a0b2 | 2017-01-05 16:29:45 +0100 | [diff] [blame] | 304 | check-qtest-ppc64-y += tests/display-vga-test$(EXESUF) |
Igor Mammedov | 63baf8b | 2017-05-03 14:56:55 +0200 | [diff] [blame] | 305 | check-qtest-ppc64-y += tests/numa-test$(EXESUF) |
Laurent Vivier | 2bf25e0 | 2017-01-05 16:29:48 +0100 | [diff] [blame] | 306 | check-qtest-ppc64-$(CONFIG_EVENTFD) += tests/ivshmem-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 307 | |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 308 | check-qtest-sh4-y = tests/endianness-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 309 | |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 310 | check-qtest-sh4eb-y = tests/endianness-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 311 | |
| 312 | check-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 Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 316 | check-qtest-sparc64-y = tests/endianness-test$(EXESUF) |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 317 | #check-qtest-sparc64-y += tests/m48t59-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 318 | #gcov-files-sparc64-y += hw/timer/m48t59.c |
Thomas Huth | 6b591ad | 2017-02-10 19:22:57 +0100 | [diff] [blame] | 319 | check-qtest-sparc64-y += tests/prom-env-test$(EXESUF) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 320 | |
Andreas Färber | 6e99890 | 2013-01-16 01:57:57 +0100 | [diff] [blame] | 321 | check-qtest-arm-y = tests/tmp105-test$(EXESUF) |
Thomas Huth | 1f5c1cf | 2016-06-27 15:37:32 +0100 | [diff] [blame] | 322 | check-qtest-arm-y += tests/ds1338-test$(EXESUF) |
Cédric Le Goater | 7a2334f | 2016-10-17 19:22:17 +0100 | [diff] [blame] | 323 | check-qtest-arm-y += tests/m25p80-test$(EXESUF) |
Andreas Färber | 5ec889b | 2014-02-14 15:09:28 +0100 | [diff] [blame] | 324 | gcov-files-arm-y += hw/misc/tmp105.c |
Marc Marí | 0a6ed70 | 2015-02-24 22:21:55 +0100 | [diff] [blame] | 325 | check-qtest-arm-y += tests/virtio-blk-test$(EXESUF) |
| 326 | gcov-files-arm-y += arm-softmmu/hw/block/virtio-blk.c |
Dmitry Osipenko | 882fac3 | 2016-10-24 16:26:54 +0100 | [diff] [blame] | 327 | check-qtest-arm-y += tests/test-arm-mptimer$(EXESUF) |
| 328 | gcov-files-arm-y += hw/timer/arm_mptimer.c |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 329 | |
Igor Mammedov | 63baf8b | 2017-05-03 14:56:55 +0200 | [diff] [blame] | 330 | check-qtest-aarch64-y = tests/numa-test$(EXESUF) |
| 331 | |
Andreas Färber | 7c41f21 | 2013-07-29 05:44:47 +0200 | [diff] [blame] | 332 | check-qtest-microblazeel-y = $(check-qtest-microblaze-y) |
Thomas Huth | 2953154 | 2016-09-03 11:57:50 +0200 | [diff] [blame] | 333 | |
Andreas Färber | 7c41f21 | 2013-07-29 05:44:47 +0200 | [diff] [blame] | 334 | check-qtest-xtensaeb-y = $(check-qtest-xtensa-y) |
Anthony Liguori | d1aaf54 | 2012-03-28 15:42:07 +0200 | [diff] [blame] | 335 | |
Thomas Huth | d2ab58f | 2016-09-03 11:57:51 +0200 | [diff] [blame] | 336 | check-qtest-s390x-y = tests/boot-serial-test$(EXESUF) |
| 337 | |
Markus Armbruster | e253c28 | 2015-10-01 10:59:53 +0200 | [diff] [blame] | 338 | check-qtest-generic-y += tests/qom-test$(EXESUF) |
Thomas Huth | 78f86a2 | 2017-04-25 07:16:47 +0200 | [diff] [blame] | 339 | check-qtest-generic-y += tests/test-hmp$(EXESUF) |
Peter Maydell | 3687d53 | 2014-01-23 16:22:59 +0000 | [diff] [blame] | 340 | |
Eric Blake | 4653430 | 2016-02-17 23:48:17 -0700 | [diff] [blame] | 341 | qapi-schema += alternate-any.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 342 | qapi-schema += alternate-array.json |
| 343 | qapi-schema += alternate-base.json |
| 344 | qapi-schema += alternate-clash.json |
| 345 | qapi-schema += alternate-conflict-dict.json |
Markus Armbruster | c064477 | 2017-05-22 18:42:15 +0200 | [diff] [blame] | 346 | qapi-schema += alternate-conflict-enum-bool.json |
| 347 | qapi-schema += alternate-conflict-enum-int.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 348 | qapi-schema += alternate-conflict-string.json |
Eric Blake | 8d25dd1 | 2015-09-29 16:21:05 -0600 | [diff] [blame] | 349 | qapi-schema += alternate-empty.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 350 | qapi-schema += alternate-nested.json |
| 351 | qapi-schema += alternate-unknown.json |
| 352 | qapi-schema += args-alternate.json |
| 353 | qapi-schema += args-any.json |
| 354 | qapi-schema += args-array-empty.json |
| 355 | qapi-schema += args-array-unknown.json |
Eric Blake | c818408 | 2016-07-13 21:50:20 -0600 | [diff] [blame] | 356 | qapi-schema += args-bad-boxed.json |
| 357 | qapi-schema += args-boxed-anon.json |
| 358 | qapi-schema += args-boxed-empty.json |
| 359 | qapi-schema += args-boxed-string.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 360 | qapi-schema += args-int.json |
| 361 | qapi-schema += args-invalid.json |
| 362 | qapi-schema += args-member-array-bad.json |
Eric Blake | 893e1f2 | 2015-12-01 22:20:57 -0700 | [diff] [blame] | 363 | qapi-schema += args-member-case.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 364 | qapi-schema += args-member-unknown.json |
Eric Blake | d220fbc | 2015-09-29 16:21:03 -0600 | [diff] [blame] | 365 | qapi-schema += args-name-clash.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 366 | qapi-schema += args-union.json |
| 367 | qapi-schema += args-unknown.json |
| 368 | qapi-schema += bad-base.json |
| 369 | qapi-schema += bad-data.json |
| 370 | qapi-schema += bad-ident.json |
| 371 | qapi-schema += bad-type-bool.json |
| 372 | qapi-schema += bad-type-dict.json |
| 373 | qapi-schema += bad-type-int.json |
Eric Blake | bac5429 | 2015-12-01 22:20:59 -0700 | [diff] [blame] | 374 | qapi-schema += base-cycle-direct.json |
| 375 | qapi-schema += base-cycle-indirect.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 376 | qapi-schema += command-int.json |
| 377 | qapi-schema += comments.json |
Markus Armbruster | f641d06 | 2017-03-15 13:57:25 +0100 | [diff] [blame] | 378 | qapi-schema += doc-bad-alternate-member.json |
Markus Armbruster | bdc001c | 2017-03-15 13:57:24 +0100 | [diff] [blame] | 379 | qapi-schema += doc-bad-command-arg.json |
Marc-André Lureau | 3313b61 | 2017-01-13 15:41:29 +0100 | [diff] [blame] | 380 | qapi-schema += doc-bad-symbol.json |
Markus Armbruster | f641d06 | 2017-03-15 13:57:25 +0100 | [diff] [blame] | 381 | qapi-schema += doc-bad-union-member.json |
Markus Armbruster | 2028be8 | 2017-03-15 13:57:19 +0100 | [diff] [blame] | 382 | qapi-schema += doc-before-include.json |
| 383 | qapi-schema += doc-before-pragma.json |
Marc-André Lureau | 3313b61 | 2017-01-13 15:41:29 +0100 | [diff] [blame] | 384 | qapi-schema += doc-duplicated-arg.json |
| 385 | qapi-schema += doc-duplicated-return.json |
| 386 | qapi-schema += doc-duplicated-since.json |
| 387 | qapi-schema += doc-empty-arg.json |
| 388 | qapi-schema += doc-empty-section.json |
| 389 | qapi-schema += doc-empty-symbol.json |
Markus Armbruster | 80d1f2e | 2017-03-20 14:11:54 +0100 | [diff] [blame] | 390 | qapi-schema += doc-good.json |
Marc-André Lureau | 3313b61 | 2017-01-13 15:41:29 +0100 | [diff] [blame] | 391 | qapi-schema += doc-interleaved-section.json |
| 392 | qapi-schema += doc-invalid-end.json |
| 393 | qapi-schema += doc-invalid-end2.json |
| 394 | qapi-schema += doc-invalid-return.json |
| 395 | qapi-schema += doc-invalid-section.json |
| 396 | qapi-schema += doc-invalid-start.json |
Markus Armbruster | bc52d03 | 2017-03-15 13:56:51 +0100 | [diff] [blame] | 397 | qapi-schema += doc-missing.json |
Marc-André Lureau | 3313b61 | 2017-01-13 15:41:29 +0100 | [diff] [blame] | 398 | qapi-schema += doc-missing-colon.json |
| 399 | qapi-schema += doc-missing-expr.json |
| 400 | qapi-schema += doc-missing-space.json |
Markus Armbruster | 2028be8 | 2017-03-15 13:57:19 +0100 | [diff] [blame] | 401 | qapi-schema += doc-no-symbol.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 402 | qapi-schema += double-data.json |
| 403 | qapi-schema += double-type.json |
| 404 | qapi-schema += duplicate-key.json |
| 405 | qapi-schema += empty.json |
| 406 | qapi-schema += enum-bad-name.json |
| 407 | qapi-schema += enum-bad-prefix.json |
| 408 | qapi-schema += enum-clash-member.json |
| 409 | qapi-schema += enum-dict-member.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 410 | qapi-schema += enum-int-member.json |
Eric Blake | 893e1f2 | 2015-12-01 22:20:57 -0700 | [diff] [blame] | 411 | qapi-schema += enum-member-case.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 412 | qapi-schema += enum-missing-data.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 413 | qapi-schema += enum-wrong-data.json |
| 414 | qapi-schema += escape-outside-string.json |
| 415 | qapi-schema += escape-too-big.json |
| 416 | qapi-schema += escape-too-short.json |
Eric Blake | c818408 | 2016-07-13 21:50:20 -0600 | [diff] [blame] | 417 | qapi-schema += event-boxed-empty.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 418 | qapi-schema += event-case.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 419 | qapi-schema += event-nest-struct.json |
| 420 | qapi-schema += flat-union-array-branch.json |
| 421 | qapi-schema += flat-union-bad-base.json |
| 422 | qapi-schema += flat-union-bad-discriminator.json |
| 423 | qapi-schema += flat-union-base-any.json |
| 424 | qapi-schema += flat-union-base-union.json |
Eric Blake | d220fbc | 2015-09-29 16:21:03 -0600 | [diff] [blame] | 425 | qapi-schema += flat-union-clash-member.json |
Eric Blake | 8d25dd1 | 2015-09-29 16:21:05 -0600 | [diff] [blame] | 426 | qapi-schema += flat-union-empty.json |
Eric Blake | d0b1823 | 2016-07-13 21:50:13 -0600 | [diff] [blame] | 427 | qapi-schema += flat-union-incomplete-branch.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 428 | qapi-schema += flat-union-inline.json |
| 429 | qapi-schema += flat-union-int-branch.json |
| 430 | qapi-schema += flat-union-invalid-branch-key.json |
| 431 | qapi-schema += flat-union-invalid-discriminator.json |
| 432 | qapi-schema += flat-union-no-base.json |
| 433 | qapi-schema += flat-union-optional-discriminator.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 434 | qapi-schema += flat-union-string-discriminator.json |
| 435 | qapi-schema += funny-char.json |
| 436 | qapi-schema += ident-with-escape.json |
| 437 | qapi-schema += include-before-err.json |
| 438 | qapi-schema += include-cycle.json |
Markus Armbruster | bc52d03 | 2017-03-15 13:56:51 +0100 | [diff] [blame] | 439 | qapi-schema += include-extra-junk.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 440 | qapi-schema += include-format-err.json |
| 441 | qapi-schema += include-nested-err.json |
| 442 | qapi-schema += include-no-file.json |
| 443 | qapi-schema += include-non-file.json |
| 444 | qapi-schema += include-relpath.json |
| 445 | qapi-schema += include-repetition.json |
| 446 | qapi-schema += include-self-cycle.json |
| 447 | qapi-schema += include-simple.json |
| 448 | qapi-schema += indented-expr.json |
| 449 | qapi-schema += leading-comma-list.json |
| 450 | qapi-schema += leading-comma-object.json |
| 451 | qapi-schema += missing-colon.json |
| 452 | qapi-schema += missing-comma-list.json |
| 453 | qapi-schema += missing-comma-object.json |
| 454 | qapi-schema += missing-type.json |
| 455 | qapi-schema += nested-struct-data.json |
| 456 | qapi-schema += non-objects.json |
Markus Armbruster | bc52d03 | 2017-03-15 13:56:51 +0100 | [diff] [blame] | 457 | qapi-schema += pragma-doc-required-crap.json |
| 458 | qapi-schema += pragma-extra-junk.json |
Markus Armbruster | 2cfbae3 | 2017-03-15 13:56:55 +0100 | [diff] [blame] | 459 | qapi-schema += pragma-name-case-whitelist-crap.json |
Markus Armbruster | bc52d03 | 2017-03-15 13:56:51 +0100 | [diff] [blame] | 460 | qapi-schema += pragma-non-dict.json |
Markus Armbruster | 1554a8f | 2017-03-15 13:56:54 +0100 | [diff] [blame] | 461 | qapi-schema += pragma-returns-whitelist-crap.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 462 | qapi-schema += qapi-schema-test.json |
| 463 | qapi-schema += quoted-structural-chars.json |
| 464 | qapi-schema += redefined-builtin.json |
| 465 | qapi-schema += redefined-command.json |
| 466 | qapi-schema += redefined-event.json |
| 467 | qapi-schema += redefined-type.json |
Eric Blake | 1976708 | 2015-10-26 16:34:40 -0600 | [diff] [blame] | 468 | qapi-schema += reserved-command-q.json |
Eric Blake | 59a92fe | 2015-11-18 01:52:56 -0700 | [diff] [blame] | 469 | qapi-schema += reserved-enum-q.json |
Eric Blake | 1976708 | 2015-10-26 16:34:40 -0600 | [diff] [blame] | 470 | qapi-schema += reserved-member-has.json |
| 471 | qapi-schema += reserved-member-q.json |
Eric Blake | 5e59baf | 2015-10-26 16:35:02 -0600 | [diff] [blame] | 472 | qapi-schema += reserved-member-u.json |
Eric Blake | 59a92fe | 2015-11-18 01:52:56 -0700 | [diff] [blame] | 473 | qapi-schema += reserved-member-underscore.json |
Eric Blake | 1976708 | 2015-10-26 16:34:40 -0600 | [diff] [blame] | 474 | qapi-schema += reserved-type-kind.json |
| 475 | qapi-schema += reserved-type-list.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 476 | qapi-schema += returns-alternate.json |
| 477 | qapi-schema += returns-array-bad.json |
| 478 | qapi-schema += returns-dict.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 479 | qapi-schema += returns-unknown.json |
| 480 | qapi-schema += returns-whitelist.json |
| 481 | qapi-schema += struct-base-clash-deep.json |
| 482 | qapi-schema += struct-base-clash.json |
| 483 | qapi-schema += struct-data-invalid.json |
| 484 | qapi-schema += struct-member-invalid.json |
| 485 | qapi-schema += trailing-comma-list.json |
| 486 | qapi-schema += trailing-comma-object.json |
| 487 | qapi-schema += type-bypass-bad-gen.json |
| 488 | qapi-schema += unclosed-list.json |
| 489 | qapi-schema += unclosed-object.json |
| 490 | qapi-schema += unclosed-string.json |
| 491 | qapi-schema += unicode-str.json |
Markus Armbruster | 707fb2d | 2017-03-15 13:56:57 +0100 | [diff] [blame] | 492 | qapi-schema += union-base-empty.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 493 | qapi-schema += union-base-no-discriminator.json |
Eric Blake | 893e1f2 | 2015-12-01 22:20:57 -0700 | [diff] [blame] | 494 | qapi-schema += union-branch-case.json |
Eric Blake | d220fbc | 2015-09-29 16:21:03 -0600 | [diff] [blame] | 495 | qapi-schema += union-clash-branches.json |
Eric Blake | 8d25dd1 | 2015-09-29 16:21:05 -0600 | [diff] [blame] | 496 | qapi-schema += union-empty.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 497 | qapi-schema += union-invalid-base.json |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 498 | qapi-schema += union-optional-branch.json |
| 499 | qapi-schema += union-unknown.json |
| 500 | qapi-schema += unknown-escape.json |
| 501 | qapi-schema += unknown-expr-key.json |
Marc-André Lureau | 3313b61 | 2017-01-13 15:41:29 +0100 | [diff] [blame] | 502 | |
| 503 | |
Eric Blake | 1ffe818 | 2015-09-29 16:20:59 -0600 | [diff] [blame] | 504 | check-qapi-schema-y := $(addprefix tests/qapi-schema/, $(qapi-schema)) |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 505 | |
Daniel P. Berrange | 4f04f13 | 2017-02-28 12:29:00 +0000 | [diff] [blame] | 506 | GENERATED_FILES += tests/test-qapi-types.h tests/test-qapi-visit.h \ |
Markus Armbruster | 39a1815 | 2015-09-16 13:06:28 +0200 | [diff] [blame] | 507 | tests/test-qmp-commands.h tests/test-qapi-event.h \ |
| 508 | tests/test-qmp-introspect.h |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 509 | |
Marc-André Lureau | 01b2ffc | 2017-06-07 20:35:58 +0400 | [diff] [blame] | 510 | test-obj-y = tests/check-qnum.o tests/check-qstring.o tests/check-qdict.o \ |
| 511 | tests/check-qlist.o tests/check-qnull.o \ |
Eric Blake | 7d7a337 | 2016-04-28 15:45:21 -0600 | [diff] [blame] | 512 | tests/check-qjson.o \ |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 513 | tests/test-coroutine.o tests/test-string-output-visitor.o \ |
Daniel P. Berrange | b3db211 | 2016-09-30 15:45:27 +0100 | [diff] [blame] | 514 | tests/test-string-input-visitor.o tests/test-qobject-output-visitor.o \ |
Eric Blake | a15fcc3 | 2016-06-09 10:48:44 -0600 | [diff] [blame] | 515 | tests/test-clone-visitor.o \ |
Markus Armbruster | 77c47de | 2017-03-03 13:32:40 +0100 | [diff] [blame] | 516 | tests/test-qobject-input-visitor.o \ |
Eduardo Habkost | 247c9de | 2013-01-23 15:58:27 -0200 | [diff] [blame] | 517 | tests/test-qmp-commands.o tests/test-visitor-serialization.o \ |
Laszlo Ersek | 3953e3a | 2013-08-20 00:35:40 +0200 | [diff] [blame] | 518 | 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] | 519 | tests/test-opts-visitor.o tests/test-qmp-event.o \ |
Emilio G. Cota | ff9249b | 2016-06-08 14:55:27 -0400 | [diff] [blame] | 520 | tests/rcutorture.o tests/test-rcu-list.o \ |
Jose Ricardo Ziviani | f539fbe | 2017-01-10 00:10:09 -0200 | [diff] [blame] | 521 | tests/test-qdist.o tests/test-shift128.o \ |
Emilio G. Cota | 070e3ed | 2016-06-27 15:02:05 -0400 | [diff] [blame] | 522 | tests/test-qht.o tests/qht-bench.o tests/test-qht-par.o \ |
| 523 | tests/atomic_add-bench.o |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 524 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 525 | $(test-obj-y): QEMU_INCLUDES += -Itests |
Anthony Liguori | c4efe1c | 2013-04-16 09:45:16 -0500 | [diff] [blame] | 526 | QEMU_CFLAGS += -I$(SRC_PATH)/tests |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 527 | |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 528 | |
| 529 | # Deps that are common to various different sets of tests below |
Xu, Anthony | 3d1bacc | 2017-04-04 21:39:39 +0000 | [diff] [blame] | 530 | test-util-obj-y = libqemuutil.a libqemustub.a |
Daniel P. Berrange | 0c7012e | 2015-09-02 11:18:16 +0100 | [diff] [blame] | 531 | test-qom-obj-y = $(qom-obj-y) $(test-util-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 532 | 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] | 533 | tests/test-qapi-event.o tests/test-qmp-introspect.o \ |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 534 | $(test-qom-obj-y) |
Daniel P. Berrange | a090187 | 2015-03-13 17:39:26 +0000 | [diff] [blame] | 535 | test-crypto-obj-y = $(crypto-obj-y) $(test-qom-obj-y) |
Daniel P. Berrange | b02db2d | 2015-03-18 17:25:45 +0000 | [diff] [blame] | 536 | test-io-obj-y = $(io-obj-y) $(test-crypto-obj-y) |
Paolo Bonzini | 0c330a7 | 2017-02-13 14:52:19 +0100 | [diff] [blame] | 537 | test-block-obj-y = $(block-obj-y) $(test-io-obj-y) tests/iothread.o |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 538 | |
Marc-André Lureau | 01b2ffc | 2017-06-07 20:35:58 +0400 | [diff] [blame] | 539 | tests/check-qnum$(EXESUF): tests/check-qnum.o $(test-util-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 540 | tests/check-qstring$(EXESUF): tests/check-qstring.o $(test-util-obj-y) |
| 541 | tests/check-qdict$(EXESUF): tests/check-qdict.o $(test-util-obj-y) |
| 542 | tests/check-qlist$(EXESUF): tests/check-qlist.o $(test-util-obj-y) |
Eric Blake | 7d7a337 | 2016-04-28 15:45:21 -0600 | [diff] [blame] | 543 | tests/check-qnull$(EXESUF): tests/check-qnull.o $(test-util-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 544 | tests/check-qjson$(EXESUF): tests/check-qjson.o $(test-util-obj-y) |
| 545 | tests/check-qom-interface$(EXESUF): tests/check-qom-interface.o $(test-qom-obj-y) |
| 546 | tests/check-qom-proplist$(EXESUF): tests/check-qom-proplist.o $(test-qom-obj-y) |
Marc-André Lureau | ea3af47 | 2016-10-22 12:53:00 +0300 | [diff] [blame] | 547 | |
Paolo Bonzini | c2b38b2 | 2017-02-13 14:52:18 +0100 | [diff] [blame] | 548 | tests/test-char$(EXESUF): tests/test-char.o $(test-util-obj-y) $(qtest-obj-y) $(test-io-obj-y) $(chardev-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 549 | tests/test-coroutine$(EXESUF): tests/test-coroutine.o $(test-block-obj-y) |
| 550 | tests/test-aio$(EXESUF): tests/test-aio.o $(test-block-obj-y) |
Paolo Bonzini | 0c330a7 | 2017-02-13 14:52:19 +0100 | [diff] [blame] | 551 | tests/test-aio-multithread$(EXESUF): tests/test-aio-multithread.o $(test-block-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 552 | tests/test-throttle$(EXESUF): tests/test-throttle.o $(test-block-obj-y) |
Alberto Garcia | 9ef8112 | 2016-07-29 17:31:41 +0300 | [diff] [blame] | 553 | tests/test-blockjob$(EXESUF): tests/test-blockjob.o $(test-block-obj-y) $(test-util-obj-y) |
Stefan Hajnoczi | 6c6f312 | 2015-11-05 18:13:20 -0500 | [diff] [blame] | 554 | 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] | 555 | tests/test-thread-pool$(EXESUF): tests/test-thread-pool.o $(test-block-obj-y) |
| 556 | tests/test-iov$(EXESUF): tests/test-iov.o $(test-util-obj-y) |
Vladimir Sementsov-Ogievskiy | a3b5253 | 2017-06-28 15:05:25 +0300 | [diff] [blame] | 557 | tests/test-hbitmap$(EXESUF): tests/test-hbitmap.o $(test-util-obj-y) $(test-crypto-obj-y) |
Eduardo Habkost | 247c9de | 2013-01-23 15:58:27 -0200 | [diff] [blame] | 558 | tests/test-x86-cpuid$(EXESUF): tests/test-x86-cpuid.o |
Juan Quintela | aa3544c | 2017-04-20 12:37:23 +0200 | [diff] [blame] | 559 | tests/test-xbzrle$(EXESUF): tests/test-xbzrle.o migration/xbzrle.o migration/page_cache.o $(test-util-obj-y) |
Eduardo Habkost | e3f9fe2 | 2013-02-04 16:27:45 -0200 | [diff] [blame] | 560 | tests/test-cutils$(EXESUF): tests/test-cutils.o util/cutils.o |
Paolo Bonzini | 6046c62 | 2013-06-20 16:19:32 +0200 | [diff] [blame] | 561 | tests/test-int128$(EXESUF): tests/test-int128.o |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 562 | tests/rcutorture$(EXESUF): tests/rcutorture.o $(test-util-obj-y) |
| 563 | tests/test-rcu-list$(EXESUF): tests/test-rcu-list.o $(test-util-obj-y) |
Emilio G. Cota | ff9249b | 2016-06-08 14:55:27 -0400 | [diff] [blame] | 564 | tests/test-qdist$(EXESUF): tests/test-qdist.o $(test-util-obj-y) |
Emilio G. Cota | 1a95404 | 2016-06-08 14:55:29 -0400 | [diff] [blame] | 565 | tests/test-qht$(EXESUF): tests/test-qht.o $(test-util-obj-y) |
Emilio G. Cota | 896a9ee | 2016-06-08 14:55:31 -0400 | [diff] [blame] | 566 | tests/test-qht-par$(EXESUF): tests/test-qht-par.o tests/qht-bench$(EXESUF) $(test-util-obj-y) |
Emilio G. Cota | 515864a | 2016-06-08 14:55:30 -0400 | [diff] [blame] | 567 | tests/qht-bench$(EXESUF): tests/qht-bench.o $(test-util-obj-y) |
Richard Henderson | efad668 | 2016-08-29 11:46:16 -0700 | [diff] [blame] | 568 | tests/test-bufferiszero$(EXESUF): tests/test-bufferiszero.o $(test-util-obj-y) |
Emilio G. Cota | 070e3ed | 2016-06-27 15:02:05 -0400 | [diff] [blame] | 569 | tests/atomic_add-bench$(EXESUF): tests/atomic_add-bench.o $(test-util-obj-y) |
Paolo Bonzini | 8fda74a | 2013-06-21 09:09:34 +0200 | [diff] [blame] | 570 | |
Eduardo Habkost | 747b0cb | 2013-07-10 17:08:40 -0300 | [diff] [blame] | 571 | tests/test-qdev-global-props$(EXESUF): tests/test-qdev-global-props.o \ |
Igor Mammedov | 5e95494 | 2014-02-05 16:36:52 +0100 | [diff] [blame] | 572 | hw/core/qdev.o hw/core/qdev-properties.o hw/core/hotplug.o\ |
Andreas Färber | a62c891 | 2015-07-13 19:35:41 +0200 | [diff] [blame] | 573 | hw/core/bus.o \ |
Eduardo Habkost | 747b0cb | 2013-07-10 17:08:40 -0300 | [diff] [blame] | 574 | hw/core/irq.o \ |
Paolo Bonzini | 6b1566c | 2014-03-17 13:40:23 +1100 | [diff] [blame] | 575 | hw/core/fw-path-provider.o \ |
Paolo Bonzini | 2f7b92a | 2016-10-24 11:19:49 +0200 | [diff] [blame] | 576 | hw/core/reset.o \ |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 577 | $(test-qapi-obj-y) |
Eduardo Habkost | 2668b4b | 2013-11-28 12:01:18 -0200 | [diff] [blame] | 578 | tests/test-vmstate$(EXESUF): tests/test-vmstate.o \ |
Juan Quintela | 576d1ab | 2017-04-20 13:41:20 +0200 | [diff] [blame] | 579 | migration/vmstate.o migration/vmstate-types.o migration/qemu-file.o \ |
Daniel P. Berrange | 8925839 | 2016-04-27 11:05:08 +0100 | [diff] [blame] | 580 | migration/qemu-file-channel.o migration/qjson.o \ |
| 581 | $(test-io-obj-y) |
Paolo Bonzini | c2b38b2 | 2017-02-13 14:52:18 +0100 | [diff] [blame] | 582 | tests/test-timed-average$(EXESUF): tests/test-timed-average.o $(test-util-obj-y) |
Daniel P. Berrange | 89bc0b6 | 2015-11-23 15:24:50 +0000 | [diff] [blame] | 583 | tests/test-base64$(EXESUF): tests/test-base64.o \ |
| 584 | libqemuutil.a libqemustub.a |
Paolo Bonzini | 24b9462 | 2016-10-17 19:22:17 +0100 | [diff] [blame] | 585 | tests/ptimer-test$(EXESUF): tests/ptimer-test.o tests/ptimer-test-stubs.o hw/core/ptimer.o libqemustub.a |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 586 | |
Alex Bennée | 3514552 | 2016-03-15 14:30:20 +0000 | [diff] [blame] | 587 | tests/test-logging$(EXESUF): tests/test-logging.o $(test-util-obj-y) |
| 588 | |
Changlong Xie | b311046 | 2016-07-27 15:01:51 +0800 | [diff] [blame] | 589 | tests/test-replication$(EXESUF): tests/test-replication.o $(test-util-obj-y) \ |
| 590 | $(test-block-obj-y) |
| 591 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 592 | tests/test-qapi-types.c tests/test-qapi-types.h :\ |
Markus Armbruster | df3e21a | 2015-04-02 13:38:48 +0200 | [diff] [blame] | 593 | $(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] | 594 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py \ |
Markus Armbruster | 16d80f6 | 2015-04-02 13:32:16 +0200 | [diff] [blame] | 595 | $(gen-out-type) -o tests -p "test-" $<, \ |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 596 | "GEN","$@") |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 597 | tests/test-qapi-visit.c tests/test-qapi-visit.h :\ |
Markus Armbruster | df3e21a | 2015-04-02 13:38:48 +0200 | [diff] [blame] | 598 | $(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] | 599 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py \ |
Markus Armbruster | 16d80f6 | 2015-04-02 13:32:16 +0200 | [diff] [blame] | 600 | $(gen-out-type) -o tests -p "test-" $<, \ |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 601 | "GEN","$@") |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 602 | tests/test-qmp-commands.h tests/test-qmp-marshal.c :\ |
Markus Armbruster | df3e21a | 2015-04-02 13:38:48 +0200 | [diff] [blame] | 603 | $(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] | 604 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py \ |
Markus Armbruster | 16d80f6 | 2015-04-02 13:32:16 +0200 | [diff] [blame] | 605 | $(gen-out-type) -o tests -p "test-" $<, \ |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 606 | "GEN","$@") |
Wenchao Xia | f6dadb0 | 2014-06-18 08:43:29 +0200 | [diff] [blame] | 607 | tests/test-qapi-event.c tests/test-qapi-event.h :\ |
Markus Armbruster | df3e21a | 2015-04-02 13:38:48 +0200 | [diff] [blame] | 608 | $(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] | 609 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-event.py \ |
Markus Armbruster | 16d80f6 | 2015-04-02 13:32:16 +0200 | [diff] [blame] | 610 | $(gen-out-type) -o tests -p "test-" $<, \ |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 611 | "GEN","$@") |
Markus Armbruster | 39a1815 | 2015-09-16 13:06:28 +0200 | [diff] [blame] | 612 | tests/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 Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 616 | "GEN","$@") |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 617 | |
Markus Armbruster | 80d1f2e | 2017-03-20 14:11:54 +0100 | [diff] [blame] | 618 | tests/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. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 621 | tests/test-string-output-visitor$(EXESUF): tests/test-string-output-visitor.o $(test-qapi-obj-y) |
| 622 | tests/test-string-input-visitor$(EXESUF): tests/test-string-input-visitor.o $(test-qapi-obj-y) |
| 623 | tests/test-qmp-event$(EXESUF): tests/test-qmp-event.o $(test-qapi-obj-y) |
Daniel P. Berrange | b3db211 | 2016-09-30 15:45:27 +0100 | [diff] [blame] | 624 | tests/test-qobject-output-visitor$(EXESUF): tests/test-qobject-output-visitor.o $(test-qapi-obj-y) |
Eric Blake | a15fcc3 | 2016-06-09 10:48:44 -0600 | [diff] [blame] | 625 | tests/test-clone-visitor$(EXESUF): tests/test-clone-visitor.o $(test-qapi-obj-y) |
Daniel P. Berrange | b3db211 | 2016-09-30 15:45:27 +0100 | [diff] [blame] | 626 | tests/test-qobject-input-visitor$(EXESUF): tests/test-qobject-input-visitor.o $(test-qapi-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 627 | tests/test-qmp-commands$(EXESUF): tests/test-qmp-commands.o tests/test-qmp-marshal.o $(test-qapi-obj-y) |
| 628 | tests/test-visitor-serialization$(EXESUF): tests/test-visitor-serialization.o $(test-qapi-obj-y) |
| 629 | 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] | 630 | |
Jose Ricardo Ziviani | f539fbe | 2017-01-10 00:10:09 -0200 | [diff] [blame] | 631 | tests/test-shift128$(EXESUF): tests/test-shift128.o $(test-util-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 632 | tests/test-mul64$(EXESUF): tests/test-mul64.o $(test-util-obj-y) |
| 633 | tests/test-bitops$(EXESUF): tests/test-bitops.o $(test-util-obj-y) |
Alex Bennée | c3f8962 | 2016-12-09 14:36:00 +0000 | [diff] [blame] | 634 | tests/test-bitcnt$(EXESUF): tests/test-bitcnt.o $(test-util-obj-y) |
Daniel P. Berrange | fb37726 | 2015-09-02 10:57:27 +0100 | [diff] [blame] | 635 | tests/test-crypto-hash$(EXESUF): tests/test-crypto-hash.o $(test-crypto-obj-y) |
Longpeng(Mike) | 4fd460b | 2016-12-13 18:43:00 +0800 | [diff] [blame] | 636 | tests/test-crypto-hmac$(EXESUF): tests/test-crypto-hmac.o $(test-crypto-obj-y) |
Daniel P. Berrange | fb37726 | 2015-09-02 10:57:27 +0100 | [diff] [blame] | 637 | 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] | 638 | 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] | 639 | 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] | 640 | |
| 641 | tests/crypto-tls-x509-helpers.o-cflags := $(TASN1_CFLAGS) |
| 642 | tests/crypto-tls-x509-helpers.o-libs := $(TASN1_LIBS) |
| 643 | tests/pkix_asn1_tab.o-cflags := $(TASN1_CFLAGS) |
| 644 | |
| 645 | tests/test-crypto-tlscredsx509.o-cflags := $(TASN1_CFLAGS) |
Daniel P. Berrange | 9a2fd43 | 2015-04-13 14:01:39 +0100 | [diff] [blame] | 646 | tests/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. Berrange | 9024603 | 2015-09-21 17:25:34 +0100 | [diff] [blame] | 648 | |
| 649 | tests/test-crypto-tlssession.o-cflags := $(TASN1_CFLAGS) |
Daniel P. Berrange | d321e1e | 2015-03-02 17:23:31 +0000 | [diff] [blame] | 650 | tests/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. Berrange | b02db2d | 2015-03-18 17:25:45 +0000 | [diff] [blame] | 652 | 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] | 653 | tests/test-io-channel-socket$(EXESUF): tests/test-io-channel-socket.o \ |
| 654 | tests/io-channel-helpers.o $(test-io-obj-y) |
Daniel P. Berrange | d6e4886 | 2015-02-27 18:25:25 +0000 | [diff] [blame] | 655 | tests/test-io-channel-file$(EXESUF): tests/test-io-channel-file.o \ |
| 656 | tests/io-channel-helpers.o $(test-io-obj-y) |
Daniel P. Berrange | ed8ee42 | 2015-03-02 18:13:13 +0000 | [diff] [blame] | 657 | tests/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. Berrange | 195e14d | 2015-08-27 16:25:30 +0100 | [diff] [blame] | 660 | tests/test-io-channel-command$(EXESUF): tests/test-io-channel-command.o \ |
| 661 | tests/io-channel-helpers.o $(test-io-obj-y) |
Daniel P. Berrange | d98e4eb | 2015-09-15 17:27:33 +0100 | [diff] [blame] | 662 | tests/test-io-channel-buffer$(EXESUF): tests/test-io-channel-buffer.o \ |
| 663 | tests/io-channel-helpers.o $(test-io-obj-y) |
Daniel P. Berrange | 37788f2 | 2015-10-14 13:14:04 +0100 | [diff] [blame] | 664 | 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] | 665 | 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] | 666 | 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] | 667 | 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] | 668 | |
Marc Marí | 292be09 | 2014-10-23 10:12:42 +0200 | [diff] [blame] | 669 | 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] | 670 | libqos-obj-y += tests/libqos/i2c.o tests/libqos/libqos.o |
Laurent Vivier | 8d6ef7c | 2016-09-13 14:52:44 +0200 | [diff] [blame] | 671 | libqos-spapr-obj-y = $(libqos-obj-y) tests/libqos/malloc-spapr.o |
| 672 | libqos-spapr-obj-y += tests/libqos/libqos-spapr.o |
Laurent Vivier | eeddd59 | 2016-09-13 14:52:45 +0200 | [diff] [blame] | 673 | libqos-spapr-obj-y += tests/libqos/rtas.o |
Laurent Vivier | cf716b3 | 2016-09-29 12:32:44 +0200 | [diff] [blame] | 674 | libqos-spapr-obj-y += tests/libqos/pci-spapr.o |
Markus Armbruster | 26491a3 | 2013-06-26 15:52:22 +0200 | [diff] [blame] | 675 | libqos-pc-obj-y = $(libqos-obj-y) tests/libqos/pci-pc.o |
John Snow | 90e5add | 2015-01-19 15:15:55 -0500 | [diff] [blame] | 676 | 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] | 677 | libqos-pc-obj-y += tests/libqos/ahci.o |
Andreas Färber | cc9936a | 2013-05-02 15:56:26 +0200 | [diff] [blame] | 678 | 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] | 679 | libqos-imx-obj-y = $(libqos-obj-y) tests/libqos/i2c-imx.o |
Laurent Vivier | aa9026f | 2016-09-29 12:32:47 +0200 | [diff] [blame] | 680 | libqos-usb-obj-y = $(libqos-spapr-obj-y) $(libqos-pc-obj-y) tests/libqos/usb.o |
Laurent Vivier | 30ca440 | 2016-10-17 12:30:24 +0200 | [diff] [blame] | 681 | libqos-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 Liguori | c4efe1c | 2013-04-16 09:45:16 -0500 | [diff] [blame] | 682 | |
Markus Armbruster | f66e7ac | 2017-03-03 13:32:23 +0100 | [diff] [blame] | 683 | tests/qmp-test$(EXESUF): tests/qmp-test.o |
Markus Armbruster | 2d1abb8 | 2015-10-01 10:59:56 +0200 | [diff] [blame] | 684 | tests/device-introspect-test$(EXESUF): tests/device-introspect-test.o |
Paolo Bonzini | ff667e2 | 2012-12-21 09:45:20 +0100 | [diff] [blame] | 685 | tests/rtc-test$(EXESUF): tests/rtc-test.o |
| 686 | tests/m48t59-test$(EXESUF): tests/m48t59-test.o |
Paolo Bonzini | 8fefa31 | 2013-07-22 15:54:34 +0200 | [diff] [blame] | 687 | tests/endianness-test$(EXESUF): tests/endianness-test.o |
Alexey Kardashevskiy | 04e9a20 | 2014-02-10 14:52:56 +1100 | [diff] [blame] | 688 | tests/spapr-phb-test$(EXESUF): tests/spapr-phb-test.o $(libqos-obj-y) |
Thomas Huth | fcbf4a3 | 2016-06-14 15:57:56 +0200 | [diff] [blame] | 689 | tests/prom-env-test$(EXESUF): tests/prom-env-test.o $(libqos-obj-y) |
Laurent Vivier | eeddd59 | 2016-09-13 14:52:45 +0200 | [diff] [blame] | 690 | tests/rtas-test$(EXESUF): tests/rtas-test.o $(libqos-spapr-obj-y) |
Paolo Bonzini | ff667e2 | 2012-12-21 09:45:20 +0100 | [diff] [blame] | 691 | tests/fdc-test$(EXESUF): tests/fdc-test.o |
Kevin Wolf | acbe480 | 2013-05-08 11:18:41 +0200 | [diff] [blame] | 692 | tests/ide-test$(EXESUF): tests/ide-test.o $(libqos-pc-obj-y) |
John Snow | 90e5add | 2015-01-19 15:15:55 -0500 | [diff] [blame] | 693 | tests/ahci-test$(EXESUF): tests/ahci-test.o $(libqos-pc-obj-y) |
Corey Minyard | 24f976d | 2015-12-17 12:50:09 -0600 | [diff] [blame] | 694 | tests/ipmi-kcs-test$(EXESUF): tests/ipmi-kcs-test.o |
| 695 | tests/ipmi-bt-test$(EXESUF): tests/ipmi-bt-test.o |
Paolo Bonzini | ff667e2 | 2012-12-21 09:45:20 +0100 | [diff] [blame] | 696 | tests/hd-geo-test$(EXESUF): tests/hd-geo-test.o |
Andreas Färber | 530a7e4 | 2013-06-26 15:52:16 +0200 | [diff] [blame] | 697 | tests/boot-order-test$(EXESUF): tests/boot-order-test.o $(libqos-obj-y) |
Thomas Huth | d2ab58f | 2016-09-03 11:57:51 +0200 | [diff] [blame] | 698 | tests/boot-serial-test$(EXESUF): tests/boot-serial-test.o $(libqos-obj-y) |
Victor Kaplansky | 4e08256 | 2016-02-14 18:59:27 +0200 | [diff] [blame] | 699 | tests/bios-tables-test$(EXESUF): tests/bios-tables-test.o \ |
Ben Warren | 3248f1b | 2017-02-16 15:15:38 -0800 | [diff] [blame] | 700 | tests/boot-sector.o tests/acpi-utils.o $(libqos-obj-y) |
Victor Kaplansky | 4e08256 | 2016-02-14 18:59:27 +0200 | [diff] [blame] | 701 | 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] | 702 | 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] | 703 | tests/ds1338-test$(EXESUF): tests/ds1338-test.o $(libqos-imx-obj-y) |
Cédric Le Goater | 7a2334f | 2016-10-17 19:22:17 +0100 | [diff] [blame] | 704 | tests/m25p80-test$(EXESUF): tests/m25p80-test.o |
Anthony Liguori | 9bda413 | 2013-04-16 09:45:19 -0500 | [diff] [blame] | 705 | tests/i440fx-test$(EXESUF): tests/i440fx-test.o $(libqos-pc-obj-y) |
Gerd Hoffmann | 66e2ec2 | 2015-04-14 15:11:36 +0200 | [diff] [blame] | 706 | tests/q35-test$(EXESUF): tests/q35-test.o $(libqos-pc-obj-y) |
Anthony Liguori | bf2a38d | 2013-04-16 09:45:21 -0500 | [diff] [blame] | 707 | 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] | 708 | tests/e1000-test$(EXESUF): tests/e1000-test.o |
Dmitry Fleytman | 7c375e2 | 2016-06-01 11:23:46 +0300 | [diff] [blame] | 709 | tests/e1000e-test$(EXESUF): tests/e1000e-test.o $(libqos-pc-obj-y) |
Frediano Ziglio | 069bb58 | 2015-01-08 18:38:23 +0000 | [diff] [blame] | 710 | 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] | 711 | tests/pcnet-test$(EXESUF): tests/pcnet-test.o |
David Gibson | ca8e4bf | 2016-11-15 10:09:46 +1100 | [diff] [blame] | 712 | tests/pnv-xscom-test$(EXESUF): tests/pnv-xscom-test.o |
Andreas Färber | 92838a1 | 2013-11-07 19:18:46 +0100 | [diff] [blame] | 713 | tests/eepro100-test$(EXESUF): tests/eepro100-test.o |
Andreas Färber | 4a053e7 | 2013-11-07 18:37:34 +0100 | [diff] [blame] | 714 | tests/vmxnet3-test$(EXESUF): tests/vmxnet3-test.o |
Andreas Färber | 5297ea6 | 2014-02-09 04:01:37 +0100 | [diff] [blame] | 715 | tests/ne2000-test$(EXESUF): tests/ne2000-test.o |
Paolo Bonzini | f52b768 | 2014-07-15 14:57:06 +0200 | [diff] [blame] | 716 | tests/wdt_ib700-test$(EXESUF): tests/wdt_ib700-test.o |
Paulo Alcantara | 45dcdb9 | 2015-06-28 14:58:57 -0300 | [diff] [blame] | 717 | 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] | 718 | tests/virtio-balloon-test$(EXESUF): tests/virtio-balloon-test.o |
Marc Marí | 311e666 | 2014-09-01 12:07:54 +0200 | [diff] [blame] | 719 | 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] | 720 | 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] | 721 | 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] | 722 | tests/virtio-scsi-test$(EXESUF): tests/virtio-scsi-test.o $(libqos-virtio-obj-y) |
Greg Kurz | 557a4cc | 2016-09-16 08:58:35 +0200 | [diff] [blame] | 723 | tests/virtio-9p-test$(EXESUF): tests/virtio-9p-test.o $(libqos-virtio-obj-y) |
Andreas Färber | aa97405 | 2014-02-21 17:36:57 +0100 | [diff] [blame] | 724 | tests/virtio-serial-test$(EXESUF): tests/virtio-serial-test.o |
Andreas Färber | 6e8114a | 2014-02-21 17:49:12 +0100 | [diff] [blame] | 725 | tests/virtio-console-test$(EXESUF): tests/virtio-console-test.o |
Andreas Färber | 7649107 | 2014-02-09 03:48:44 +0100 | [diff] [blame] | 726 | tests/tpci200-test$(EXESUF): tests/tpci200-test.o |
Gerd Hoffmann | 0850fd5 | 2014-04-28 11:01:13 +0200 | [diff] [blame] | 727 | tests/display-vga-test$(EXESUF): tests/display-vga-test.o |
Andreas Färber | 3714682 | 2014-02-09 12:24:15 +0100 | [diff] [blame] | 728 | tests/ipoctal232-test$(EXESUF): tests/ipoctal232-test.o |
Andreas Färber | 7c41f21 | 2013-07-29 05:44:47 +0200 | [diff] [blame] | 729 | tests/qom-test$(EXESUF): tests/qom-test.o |
Thomas Huth | 78f86a2 | 2017-04-25 07:16:47 +0200 | [diff] [blame] | 730 | tests/test-hmp$(EXESUF): tests/test-hmp.o |
Markus Armbruster | e2f3f22 | 2014-10-02 16:51:31 +0200 | [diff] [blame] | 731 | 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] | 732 | 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] | 733 | tests/nvme-test$(EXESUF): tests/nvme-test.o |
Andreas Färber | abc5373 | 2014-02-21 20:38:48 +0100 | [diff] [blame] | 734 | tests/pvpanic-test$(EXESUF): tests/pvpanic-test.o |
Andreas Färber | e683eb9 | 2014-02-21 22:43:43 +0100 | [diff] [blame] | 735 | tests/i82801b11-test$(EXESUF): tests/i82801b11-test.o |
Andreas Färber | d7b50c0 | 2014-03-30 19:00:05 +0200 | [diff] [blame] | 736 | tests/ac97-test$(EXESUF): tests/ac97-test.o |
Andreas Färber | 8fa74c9 | 2014-03-30 19:05:20 +0200 | [diff] [blame] | 737 | tests/es1370-test$(EXESUF): tests/es1370-test.o |
Andreas Färber | fbaf445 | 2014-03-30 19:22:48 +0200 | [diff] [blame] | 738 | tests/intel-hda-test$(EXESUF): tests/intel-hda-test.o |
Andreas Färber | efbf5df | 2014-03-30 20:02:00 +0200 | [diff] [blame] | 739 | tests/ioh3420-test$(EXESUF): tests/ioh3420-test.o |
Igor Mammedov | b393768 | 2014-09-26 09:28:14 +0000 | [diff] [blame] | 740 | 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] | 741 | 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] | 742 | 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] | 743 | 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] | 744 | tests/pc-cpu-test$(EXESUF): tests/pc-cpu-test.o |
Dr. David Alan Gilbert | ea0c6d6 | 2016-06-13 12:16:43 +0100 | [diff] [blame] | 745 | tests/postcopy-test$(EXESUF): tests/postcopy-test.o |
Paolo Bonzini | c2b38b2 | 2017-02-13 14:52:18 +0100 | [diff] [blame] | 746 | tests/vhost-user-test$(EXESUF): tests/vhost-user-test.o $(test-util-obj-y) \ |
Marc-André Lureau | 32d955a | 2016-12-12 15:49:01 +0300 | [diff] [blame] | 747 | $(qtest-obj-y) $(test-io-obj-y) $(libqos-virtio-obj-y) $(libqos-pc-obj-y) \ |
| 748 | $(chardev-obj-y) |
Wenchao Xia | f93296e | 2013-09-06 11:24:32 +0800 | [diff] [blame] | 749 | 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] | 750 | tests/test-qemu-opts$(EXESUF): tests/test-qemu-opts.o $(test-util-obj-y) |
Markus Armbruster | 599c156 | 2017-03-20 13:55:46 +0100 | [diff] [blame] | 751 | tests/test-keyval$(EXESUF): tests/test-keyval.o $(test-util-obj-y) $(test-qapi-obj-y) |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 752 | 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] | 753 | tests/test-netfilter$(EXESUF): tests/test-netfilter.o $(qtest-obj-y) |
Zhang Chen | 06809ec | 2016-03-15 15:41:34 +0800 | [diff] [blame] | 754 | 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] | 755 | tests/test-filter-redirector$(EXESUF): tests/test-filter-redirector.o $(qtest-obj-y) |
Eduardo Habkost | 6efef58 | 2016-09-20 17:11:39 -0300 | [diff] [blame] | 756 | tests/test-x86-cpuid-compat$(EXESUF): tests/test-x86-cpuid-compat.o $(qtest-obj-y) |
Laurent Vivier | 2bf25e0 | 2017-01-05 16:29:48 +0100 | [diff] [blame] | 757 | tests/ivshmem-test$(EXESUF): tests/ivshmem-test.o contrib/ivshmem-server/ivshmem-server.o $(libqos-pc-obj-y) $(libqos-spapr-obj-y) |
Paolo Bonzini | 660174f | 2017-06-01 16:45:16 +0200 | [diff] [blame] | 758 | tests/megasas-test$(EXESUF): tests/megasas-test.o $(libqos-spapr-obj-y) $(libqos-pc-obj-y) |
Marc-André Lureau | e10e798 | 2016-10-18 12:24:05 +0300 | [diff] [blame] | 759 | tests/vhost-user-bridge$(EXESUF): tests/vhost-user-bridge.o contrib/libvhost-user/libvhost-user.o $(test-util-obj-y) |
Fam Zheng | c739cdd | 2016-09-21 12:27:24 +0800 | [diff] [blame] | 760 | tests/test-uuid$(EXESUF): tests/test-uuid.o $(test-util-obj-y) |
Dmitry Osipenko | 882fac3 | 2016-10-24 16:26:54 +0100 | [diff] [blame] | 761 | tests/test-arm-mptimer$(EXESUF): tests/test-arm-mptimer.o |
Markus Armbruster | 6c873d1 | 2017-02-28 22:27:03 +0100 | [diff] [blame] | 762 | tests/test-qapi-util$(EXESUF): tests/test-qapi-util.o $(test-util-obj-y) |
Igor Mammedov | 63baf8b | 2017-05-03 14:56:55 +0200 | [diff] [blame] | 763 | tests/numa-test$(EXESUF): tests/numa-test.o |
Michael S. Tsirkin | 4871b51 | 2017-07-14 18:30:45 +0300 | [diff] [blame] | 764 | tests/vmgenid-test$(EXESUF): tests/vmgenid-test.o tests/boot-sector.o tests/acpi-utils.o |
Blue Swirl | d2a16f7 | 2012-03-30 17:39:33 +0000 | [diff] [blame] | 765 | |
Daniel P. Berrange | 409437e | 2016-07-20 14:23:13 +0100 | [diff] [blame] | 766 | tests/migration/stress$(EXESUF): tests/migration/stress.o |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 767 | $(call quiet-command, $(LINKPROG) -static -O3 $(PTHREAD_LIB) -o $@ $< ,"LINK","$(TARGET_DIR)$@") |
Daniel P. Berrange | 409437e | 2016-07-20 14:23:13 +0100 | [diff] [blame] | 768 | |
| 769 | INITRD_WORK_DIR=tests/migration/initrd |
| 770 | |
| 771 | tests/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 Nikolaev | e06cbc3 | 2014-06-19 20:35:42 +0300 | [diff] [blame] | 778 | ifeq ($(CONFIG_POSIX),y) |
| 779 | LIBS += -lutil |
| 780 | endif |
Nikolay Nikolaev | a77e6b1 | 2014-06-10 13:03:23 +0300 | [diff] [blame] | 781 | |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 782 | # QTest rules |
| 783 | |
| 784 | TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_DIRS))) |
Stefan Hajnoczi | 5c4e24c | 2014-03-28 10:55:54 +0100 | [diff] [blame] | 785 | ifeq ($(CONFIG_POSIX),y) |
Markus Armbruster | e253c28 | 2015-10-01 10:59:53 +0200 | [diff] [blame] | 786 | QTEST_TARGETS = $(TARGETS) |
Stefan Hajnoczi | 5c4e24c | 2014-03-28 10:55:54 +0100 | [diff] [blame] | 787 | check-qtest-y=$(foreach TARGET,$(TARGETS), $(check-qtest-$(TARGET)-y)) |
Markus Armbruster | e253c28 | 2015-10-01 10:59:53 +0200 | [diff] [blame] | 788 | check-qtest-y += $(check-qtest-generic-y) |
| 789 | else |
| 790 | QTEST_TARGETS = |
Stefan Hajnoczi | 5c4e24c | 2014-03-28 10:55:54 +0100 | [diff] [blame] | 791 | endif |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 792 | |
Daniel P. Berrange | b124533 | 2015-09-02 11:35:52 +0100 | [diff] [blame] | 793 | qtest-obj-y = tests/libqtest.o $(test-util-obj-y) |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 794 | $(check-qtest-y): $(qtest-obj-y) |
| 795 | |
Marc-André Lureau | 62c39b3 | 2015-10-02 14:58:18 +0200 | [diff] [blame] | 796 | tests/test-qga: tests/test-qga.o $(qtest-obj-y) |
| 797 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 798 | .PHONY: check-help |
| 799 | check-help: |
| 800 | @echo "Regression testing targets:" |
| 801 | @echo |
| 802 | @echo " make check Run all tests" |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 803 | @echo " make check-qtest-TARGET Run qtest tests for given target" |
| 804 | @echo " make check-qtest Run qtest tests" |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 805 | @echo " make check-unit Run qobject tests" |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 806 | @echo " make check-qapi-schema Run QAPI schema tests" |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 807 | @echo " make check-block Run block tests" |
| 808 | @echo " make check-report.html Generates an HTML test report" |
Wenchao Xia | 2cdfb12 | 2013-09-26 08:42:56 +0800 | [diff] [blame] | 809 | @echo " make check-clean Clean the tests" |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 810 | @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 Bonzini | 2d7799f | 2012-02-09 11:21:03 +0100 | [diff] [blame] | 817 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 818 | SPEED = quick |
| 819 | GTESTER_OPTIONS = -k $(if $(V),--verbose,-q) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 820 | GCOV_OPTIONS = -n $(if $(V),-f,) |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 821 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 822 | # gtester tests, possibly with verbose output |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 823 | |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 824 | .PHONY: $(patsubst %, check-qtest-%, $(QTEST_TARGETS)) |
| 825 | $(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-qtest-%: $(check-qtest-y) |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 826 | $(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,) |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 827 | $(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \ |
John Snow | 122fdf2 | 2015-04-28 15:27:51 -0400 | [diff] [blame] | 828 | QTEST_QEMU_IMG=qemu-img$(EXESUF) \ |
Stefan Hajnoczi | 0412960 | 2013-05-27 15:28:51 +0200 | [diff] [blame] | 829 | MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \ |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 830 | 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] | 831 | $(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] | 832 | echo Gcov report for $$f:;\ |
| 833 | $(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \ |
| 834 | done,) |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 835 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 836 | .PHONY: $(patsubst %, check-%, $(check-unit-y)) |
| 837 | $(patsubst %, check-%, $(check-unit-y)): check-%: % |
Blue Swirl | 1d728c3 | 2012-05-01 18:45:39 +0000 | [diff] [blame] | 838 | $(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,) |
Stefan Hajnoczi | 0412960 | 2013-05-27 15:28:51 +0200 | [diff] [blame] | 839 | $(call quiet-command, \ |
| 840 | MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \ |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 841 | gtester $(GTESTER_OPTIONS) -m=$(SPEED) $*,"GTESTER","$*") |
Markus Armbruster | 2d1abb8 | 2015-10-01 10:59:56 +0200 | [diff] [blame] | 842 | $(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] | 843 | echo Gcov report for $$f:;\ |
| 844 | $(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \ |
| 845 | done,) |
Anthony Liguori | dbfe06c | 2012-01-10 13:10:43 -0600 | [diff] [blame] | 846 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 847 | # gtester tests with XML output |
| 848 | |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 849 | $(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 Weil | 47c7199 | 2015-07-20 12:21:18 -0400 | [diff] [blame] | 851 | QTEST_QEMU_IMG=qemu-img$(EXESUF) \ |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 852 | 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] | 853 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 854 | check-report-unit.xml: $(check-unit-y) |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 855 | $(call quiet-command,gtester -q $(GTESTER_OPTIONS) -o $@ -m=$(SPEED) $^,"GTESTER","$@") |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 856 | |
| 857 | # Reports and overall runs |
| 858 | |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 859 | check-report.xml: $(patsubst %,check-report-qtest-%.xml, $(QTEST_TARGETS)) check-report-unit.xml |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 860 | $(call quiet-command,$(SRC_PATH)/scripts/gtester-cat $^ > $@,"GEN","$@") |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 861 | |
| 862 | check-report.html: check-report.xml |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 863 | $(call quiet-command,gtester-report $< > $@,"GEN","$@") |
Kevin Wolf | 8959449 | 2012-03-08 12:29:00 +0100 | [diff] [blame] | 864 | |
Kevin Wolf | b8c6f29 | 2012-03-09 13:37:40 +0100 | [diff] [blame] | 865 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 866 | # Other tests |
Kevin Wolf | b8c6f29 | 2012-03-09 13:37:40 +0100 | [diff] [blame] | 867 | |
Wenchao Xia | 22ee5a5 | 2013-09-26 08:42:55 +0800 | [diff] [blame] | 868 | QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF) |
| 869 | |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 870 | .PHONY: check-tests/qemu-iotests-quick.sh |
Wenchao Xia | 22ee5a5 | 2013-09-26 08:42:55 +0800 | [diff] [blame] | 871 | 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] | 872 | $< |
Kevin Wolf | b8c6f29 | 2012-03-09 13:37:40 +0100 | [diff] [blame] | 873 | |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 874 | .PHONY: $(patsubst %, check-%, $(check-qapi-schema-y)) |
| 875 | $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 876 | $(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts \ |
| 877 | $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py \ |
Lluís Vilanova | 33aaad5 | 2014-05-02 15:52:35 +0200 | [diff] [blame] | 878 | $^ >$*.test.out 2>$*.test.err; \ |
Lluís Vilanova | 0a60774 | 2014-05-02 15:52:24 +0200 | [diff] [blame] | 879 | echo $$? >$*.test.exit, \ |
Peter Maydell | 0bdb12c | 2016-10-04 17:27:21 +0100 | [diff] [blame] | 880 | "TEST","$*.out") |
Markus Armbruster | d8039e5 | 2013-09-24 09:43:39 +0200 | [diff] [blame] | 881 | @diff -q $(SRC_PATH)/$*.out $*.test.out |
Lluís Vilanova | 33aaad5 | 2014-05-02 15:52:35 +0200 | [diff] [blame] | 882 | @# 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 Armbruster | d8039e5 | 2013-09-24 09:43:39 +0200 | [diff] [blame] | 884 | @diff -q $(SRC_PATH)/$*.exit $*.test.exit |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 885 | |
Markus Armbruster | 80d1f2e | 2017-03-20 14:11:54 +0100 | [diff] [blame] | 886 | .PHONY: check-tests/qapi-schema/doc-good.texi |
| 887 | check-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 Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 890 | # Consolidated targets |
| 891 | |
Wenchao Xia | 2cdfb12 | 2013-09-26 08:42:56 +0800 | [diff] [blame] | 892 | .PHONY: check-qapi-schema check-qtest check-unit check check-clean |
Markus Armbruster | 80d1f2e | 2017-03-20 14:11:54 +0100 | [diff] [blame] | 893 | check-qapi-schema: $(patsubst %,check-%, $(check-qapi-schema-y)) check-tests/qapi-schema/doc-good.texi |
Anthony Liguori | 49ee359 | 2012-03-28 15:42:05 +0200 | [diff] [blame] | 894 | check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS)) |
Paolo Bonzini | b93b63f | 2012-03-28 15:42:01 +0200 | [diff] [blame] | 895 | check-unit: $(patsubst %,check-%, $(check-unit-y)) |
| 896 | check-block: $(patsubst %,check-%, $(check-block-y)) |
Markus Armbruster | 9862657 | 2013-07-27 17:41:53 +0200 | [diff] [blame] | 897 | check: check-qapi-schema check-unit check-qtest |
Wenchao Xia | 2cdfb12 | 2013-09-26 08:42:56 +0800 | [diff] [blame] | 898 | check-clean: |
| 899 | $(MAKE) -C tests/tcg clean |
Andreas Färber | f85e345 | 2014-04-07 18:33:22 +0200 | [diff] [blame] | 900 | rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y) |
Andreas Färber | b5e62af | 2015-11-21 02:20:06 +0100 | [diff] [blame] | 901 | 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] | 902 | |
| 903 | clean: check-clean |
Eduardo Habkost | 14117c7 | 2012-07-18 14:22:27 -0300 | [diff] [blame] | 904 | |
Wenchao Xia | 22ee5a5 | 2013-09-26 08:42:55 +0800 | [diff] [blame] | 905 | # Build the help program automatically |
| 906 | |
| 907 | all: $(QEMU_IOTESTS_HELPERS-y) |
| 908 | |
Eduardo Habkost | 14117c7 | 2012-07-18 14:22:27 -0300 | [diff] [blame] | 909 | -include $(wildcard tests/*.d) |
Anthony Liguori | db2b550 | 2013-06-26 15:52:14 +0200 | [diff] [blame] | 910 | -include $(wildcard tests/libqos/*.d) |