Browse Source

unittests: Only build C++ tests for some platforms

Known working platforms are native and Cortex-M
master
Joakim Nohlgård 6 years ago
parent
commit
a2b4c42c28
  1. 12
      tests/unittests/Makefile

12
tests/unittests/Makefile

@ -27,7 +27,7 @@ else
endif
ARM7_BOARDS := msba2 avrextrem
DISABLE_TEST_FOR_ARM7 := tests-relic
DISABLE_TEST_FOR_ARM7 := tests-relic tests-cpp_%
ARM_CORTEX_M_BOARDS := airfy-beacon arduino-due arduino-zero cc2538dk ek-lm4f120xl \
f4vi1 fox frdm-k64f iotlab-m3 limifrog-v1 mbed_lpc1768 msbiot \
@ -43,10 +43,10 @@ ARM_CORTEX_M_BOARDS := airfy-beacon arduino-due arduino-zero cc2538dk ek-lm4f120
DISABLE_TEST_FOR_ARM_CORTEX_M := tests-relic
AVR_BOARDS := arduino-mega2560 waspmote-pro arduino-uno arduino-duemilanove
DISABLE_TEST_FOR_AVR := tests-relic
DISABLE_TEST_FOR_AVR := tests-relic tests-cpp_%
MSP430_BOARDS := chronos msb-430 msb-430h telosb wsn430-v1_3b wsn430-v1_4 z1
DISABLE_TEST_FOR_MSP430 := tests-relic tests-spiffs
DISABLE_TEST_FOR_MSP430 := tests-relic tests-spiffs tests-cpp_%
ifneq (, $(filter $(ARM7_BOARDS), $(BOARD)))
UNIT_TESTS := $(filter-out $(DISABLE_TEST_FOR_ARM7), $(UNIT_TESTS))
@ -64,6 +64,12 @@ ifneq (, $(filter $(MSP430_BOARDS), $(BOARD)))
UNIT_TESTS := $(filter-out $(DISABLE_TEST_FOR_MSP430), $(UNIT_TESTS))
endif
ifneq (,$(filter tests-cpp_%, $(UNIT_TESTS)))
# We need to tell the build system to use the C++ compiler for linking
export FEATURES_REQUIRED += cpp
export CPPMIX := 1
endif
DISABLE_MODULE += auto_init
# Pull in `Makefile.include`s from the test suites:

Loading…
Cancel
Save