2018-01-25 16:24:37 +01:00
|
|
|
DEVELHELP ?= 0
|
2014-04-07 15:15:25 +02:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
2019-08-22 10:45:42 +02:00
|
|
|
# Issue with integer width
|
|
|
|
# There are present for a long time but hidden by being not compiled
|
|
|
|
BOARD_BLACKLIST += arduino-duemilanove
|
|
|
|
BOARD_BLACKLIST += arduino-leonardo
|
|
|
|
BOARD_BLACKLIST += arduino-mega2560
|
|
|
|
BOARD_BLACKLIST += arduino-nano
|
|
|
|
BOARD_BLACKLIST += arduino-uno
|
|
|
|
BOARD_BLACKLIST += chronos
|
|
|
|
BOARD_BLACKLIST += jiminy-mega256rfr2
|
|
|
|
BOARD_BLACKLIST += mega-xplained
|
|
|
|
BOARD_BLACKLIST += msb-430
|
|
|
|
BOARD_BLACKLIST += msb-430h
|
|
|
|
BOARD_BLACKLIST += telosb
|
|
|
|
BOARD_BLACKLIST += waspmote-pro
|
|
|
|
BOARD_BLACKLIST += wsn430-v1_3b
|
|
|
|
BOARD_BLACKLIST += wsn430-v1_4
|
|
|
|
BOARD_BLACKLIST += z1
|
|
|
|
|
2017-04-15 01:15:10 +02:00
|
|
|
BOARD_INSUFFICIENT_MEMORY := airfy-beacon \
|
|
|
|
arduino-duemilanove \
|
2019-05-24 17:36:06 +02:00
|
|
|
arduino-leonardo \
|
2017-04-15 01:15:10 +02:00
|
|
|
arduino-mega2560 \
|
2017-02-28 17:55:56 +01:00
|
|
|
arduino-mkr1000 \
|
2017-05-23 10:46:06 +02:00
|
|
|
arduino-mkrfox1200 \
|
2018-01-12 10:51:01 +01:00
|
|
|
arduino-mkrwan1300 \
|
2017-05-23 10:26:13 +02:00
|
|
|
arduino-mkrzero \
|
2019-03-14 13:07:51 +01:00
|
|
|
arduino-nano \
|
2017-04-15 01:15:10 +02:00
|
|
|
arduino-uno \
|
|
|
|
arduino-zero \
|
2017-04-24 09:35:06 +02:00
|
|
|
b-l072z-lrwan1 \
|
2018-09-14 16:16:32 +02:00
|
|
|
blackpill \
|
2019-09-29 17:06:01 +02:00
|
|
|
blackpill-128kib \
|
2017-10-12 19:09:53 +02:00
|
|
|
bluepill \
|
2019-09-29 17:06:01 +02:00
|
|
|
bluepill-128kib \
|
2017-04-15 01:15:10 +02:00
|
|
|
calliope-mini \
|
2017-09-20 10:59:37 +02:00
|
|
|
cc2650-launchpad \
|
2017-04-15 01:15:10 +02:00
|
|
|
cc2650stk \
|
|
|
|
chronos \
|
2019-08-20 15:15:53 +02:00
|
|
|
esp8266-esp-12x \
|
|
|
|
esp8266-olimex-mod \
|
|
|
|
esp8266-sparkfun-thing \
|
2017-04-15 01:15:10 +02:00
|
|
|
ek-lm4f120xl \
|
2017-11-05 21:53:18 +01:00
|
|
|
feather-m0 \
|
2019-04-04 00:00:35 +02:00
|
|
|
hamilton \
|
2019-08-20 15:15:53 +02:00
|
|
|
hifive1 \
|
|
|
|
hifive1b \
|
2019-04-24 23:35:35 +02:00
|
|
|
i-nucleo-lrwan1 \
|
2018-05-14 12:01:57 +02:00
|
|
|
ikea-tradfri \
|
2017-04-15 01:15:10 +02:00
|
|
|
limifrog-v1 maple-mini \
|
2018-09-18 18:07:07 +02:00
|
|
|
lobaro-lorabox \
|
2019-05-14 11:03:27 +02:00
|
|
|
lsn50 \
|
2018-03-24 04:05:13 +01:00
|
|
|
mega-xplained \
|
2017-04-15 01:15:10 +02:00
|
|
|
microbit \
|
|
|
|
msb-430 \
|
|
|
|
msb-430h \
|
2018-11-17 09:56:08 +01:00
|
|
|
nrf51dk \
|
2017-04-15 01:15:10 +02:00
|
|
|
nrf51dongle \
|
|
|
|
nrf6310 \
|
2018-05-23 12:46:42 +02:00
|
|
|
nucleo-f031k6 \
|
2018-05-23 12:49:40 +02:00
|
|
|
nucleo-f042k6 \
|
2018-05-23 12:51:41 +02:00
|
|
|
nucleo-f303k8 \
|
2018-05-23 12:50:33 +02:00
|
|
|
nucleo-l031k6 \
|
2018-05-23 12:55:36 +02:00
|
|
|
nucleo-l432kc \
|
2018-02-27 14:26:54 +01:00
|
|
|
nucleo-f030r8 \
|
2018-02-27 14:27:29 +01:00
|
|
|
nucleo-f070rb \
|
2018-02-27 14:27:53 +01:00
|
|
|
nucleo-f072rb \
|
2018-02-27 14:28:30 +01:00
|
|
|
nucleo-f091rc \
|
2018-02-27 14:30:11 +01:00
|
|
|
nucleo-f103rb \
|
2018-02-27 14:30:54 +01:00
|
|
|
nucleo-f302r8 \
|
2018-02-27 14:31:53 +01:00
|
|
|
nucleo-f334r8 \
|
2018-02-27 14:33:51 +01:00
|
|
|
nucleo-f410rb \
|
2018-02-27 14:37:17 +01:00
|
|
|
nucleo-l053r8 \
|
2018-02-27 14:37:40 +01:00
|
|
|
nucleo-l073rz \
|
2018-02-26 15:26:14 +01:00
|
|
|
nucleo-l433rc \
|
2017-04-03 13:08:23 +02:00
|
|
|
nz32-sc151 \
|
2017-04-15 01:15:10 +02:00
|
|
|
opencm904 \
|
|
|
|
pba-d-01-kw2x \
|
2019-01-21 17:11:32 +01:00
|
|
|
saml10-xpro \
|
|
|
|
saml11-xpro \
|
2017-04-15 01:15:10 +02:00
|
|
|
saml21-xpro \
|
|
|
|
samd21-xpro \
|
|
|
|
samr21-xpro \
|
2018-09-27 18:10:33 +02:00
|
|
|
samr30-xpro \
|
2019-09-09 16:12:15 +02:00
|
|
|
samr34-xpro \
|
2018-07-17 13:46:55 +02:00
|
|
|
sensebox_samd21 \
|
2018-05-14 12:01:57 +02:00
|
|
|
slstk3401a \
|
|
|
|
sltb001a \
|
2017-04-15 01:15:10 +02:00
|
|
|
slwstk6220a \
|
|
|
|
sodaq-autonomo \
|
2017-10-13 14:22:35 +02:00
|
|
|
sodaq-explorer \
|
2018-08-06 21:21:00 +02:00
|
|
|
sodaq-one \
|
2018-11-06 14:42:44 +01:00
|
|
|
sodaq-sara-aff \
|
2017-04-15 01:15:10 +02:00
|
|
|
spark-core \
|
2018-05-14 12:01:57 +02:00
|
|
|
stk3600 \
|
2017-04-15 01:15:10 +02:00
|
|
|
stm32f0discovery \
|
|
|
|
stm32f3discovery \
|
2018-07-09 11:31:43 +02:00
|
|
|
stm32l0538-disco \
|
2018-01-17 18:12:25 +01:00
|
|
|
teensy31 \
|
2017-04-15 01:15:10 +02:00
|
|
|
telosb \
|
|
|
|
waspmote-pro \
|
|
|
|
wsn430-v1_3b \
|
|
|
|
wsn430-v1_4 \
|
|
|
|
yunjia-nrf51822 z1
|
2014-07-14 21:40:04 +02:00
|
|
|
|
2014-04-07 15:15:25 +02:00
|
|
|
USEMODULE += embunit
|
|
|
|
|
2014-05-14 11:13:53 +02:00
|
|
|
ifeq (, $(filter tests-%, $(MAKECMDGOALS)))
|
2017-09-22 12:01:15 +02:00
|
|
|
# the $(dir) Makefile function leaves a trailing slash after the directory
|
|
|
|
# name, therefore we use patsubst instead.
|
|
|
|
UNIT_TESTS := $(patsubst %/Makefile,%,$(wildcard tests-*/Makefile))
|
2014-05-14 11:13:53 +02:00
|
|
|
else
|
2017-09-22 12:01:15 +02:00
|
|
|
UNIT_TESTS := $(filter tests-%, $(MAKECMDGOALS))
|
2014-05-14 11:13:53 +02:00
|
|
|
endif
|
2014-04-07 15:15:25 +02:00
|
|
|
|
2014-08-21 20:45:36 +02:00
|
|
|
DISABLE_MODULE += auto_init
|
|
|
|
|
2014-05-18 16:17:02 +02:00
|
|
|
# Pull in `Makefile.include`s from the test suites:
|
|
|
|
-include $(UNIT_TESTS:%=$(RIOTBASE)/tests/unittests/%/Makefile.include)
|
|
|
|
|
2014-06-18 11:21:05 +02:00
|
|
|
DIRS += $(UNIT_TESTS)
|
2016-10-18 23:27:59 +02:00
|
|
|
BASELIBS += $(UNIT_TESTS:%=$(BINDIR)/%.a)
|
2014-05-14 11:13:53 +02:00
|
|
|
|
2015-03-20 19:57:08 +01:00
|
|
|
INCLUDES += -I$(RIOTBASE)/tests/unittests/common
|
2014-05-14 11:13:53 +02:00
|
|
|
|
2015-03-20 19:57:08 +01:00
|
|
|
include $(RIOTBASE)/Makefile.include
|
2014-08-08 19:21:03 +02:00
|
|
|
|
2016-07-05 16:06:33 +02:00
|
|
|
.PHONY: $(UNIT_TESTS)
|
2014-08-27 14:04:22 +02:00
|
|
|
|
2016-07-05 16:06:33 +02:00
|
|
|
all:
|
2014-08-27 14:04:22 +02:00
|
|
|
|
2018-03-21 14:38:57 +01:00
|
|
|
info-unittests:
|
|
|
|
@echo $(UNIT_TESTS)
|
|
|
|
|
2016-07-05 16:06:33 +02:00
|
|
|
$(UNIT_TESTS): all
|
2014-05-14 11:13:53 +02:00
|
|
|
|
2014-05-14 12:21:20 +02:00
|
|
|
charCOMMA := ,
|
|
|
|
|
|
|
|
ifeq (, $(UNIT_TESTS))
|
2017-09-22 12:01:15 +02:00
|
|
|
CFLAGS += -DNO_TEST_SUITES
|
|
|
|
$(warning There was no test suite specified!)
|
2014-05-14 12:21:20 +02:00
|
|
|
else
|
2017-09-22 12:01:15 +02:00
|
|
|
CFLAGS += -DTEST_SUITES='$(subst $() $(),$(charCOMMA),$(UNIT_TESTS:tests-%=%))'
|
2014-05-14 12:21:20 +02:00
|
|
|
endif
|