2017-12-01 09:17:08 +01:00
|
|
|
APPLICATION ?= tests_$(notdir $(patsubst %/,%,$(CURDIR)))
|
2024-11-08 09:26:11 +01:00
|
|
|
BOARD ?= native
|
|
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
QUIET ?= 1
|
|
|
|
# DEVELHELP enabled by default for all tests, set 0 to disable
|
|
|
|
DEVELHELP ?= 1
|
2019-10-10 01:10:41 +02:00
|
|
|
|
2021-01-15 10:37:47 +01:00
|
|
|
ifneq (,$(wildcard $(CURDIR)/tests*/.))
|
2024-11-08 09:26:11 +01:00
|
|
|
# add interactive test configuration when automated testing is available,
|
|
|
|
# except for `native` and `native64` where we control when the RIOT app is
|
|
|
|
# started
|
|
|
|
ifeq (,$(filter native native64,$(BOARD)))
|
|
|
|
DEFAULT_MODULE += test_utils_interactive_sync
|
|
|
|
endif
|
|
|
|
# print stack usage by default when automated testing is available
|
2022-03-25 09:37:25 +01:00
|
|
|
DEFAULT_MODULE += test_utils_print_stack_usage
|
2020-01-19 20:31:37 +01:00
|
|
|
endif
|
2019-10-10 01:10:41 +02:00
|
|
|
|
2024-03-04 14:10:06 +01:00
|
|
|
# terminate native when the test is complete
|
|
|
|
CFLAGS += -DNATIVE_AUTO_EXIT=1
|