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