mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
416c048737
- Define test_utils_interactive_sync as DEFAULT_MODULE in Makefile.tests_common - For tests disabling autoinit, add test_utils_interactive_sync to main - Add DISABLE_MODULE += test_utils_interactive_sync for tests requiring sudo, `tests/shell`, `tests/minimal` and `tests/stdin` - Add shell_commands to tests/periph_wdt and tests/struct_tm_utility to pull `r` and `s` commands - Remove includes and usage in `tests/main.c` for tests that where already using test_utils_interactive_sync
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
include ../Makefile.tests_common
|
|
|
|
# Basic Configuration
|
|
BOARD ?= native
|
|
TAP ?= tap0
|
|
|
|
# Shorten default TCP timeouts to speedup testing
|
|
MSL_US ?= 1000000
|
|
TIMEOUT_US ?= 3000000
|
|
|
|
# unsupported by ethos: chronos, hamilton, ruuvitag
|
|
BOARD_BLACKLIST := chronos hamilton ruuvitag thingy52
|
|
|
|
# This test depends on tap device setup (only allowed by root)
|
|
# Suppress test execution to avoid CI errors
|
|
TEST_ON_CI_BLACKLIST += all
|
|
|
|
CFLAGS += -DSHELL_NO_ECHO
|
|
CFLAGS += -DGNRC_TCP_MSL=$(MSL_US)
|
|
CFLAGS += -DGNRC_TCP_CONNECTION_TIMEOUT_DURATION=$(TIMEOUT_US)
|
|
|
|
ifeq (native,$(BOARD))
|
|
USEMODULE += netdev_tap
|
|
TERMFLAGS ?= $(TAP)
|
|
else
|
|
USEMODULE += stdio_ethos
|
|
ETHOS_BAUDRATE ?= 115200
|
|
CFLAGS += -DETHOS_BAUDRATE=$(ETHOS_BAUDRATE)
|
|
TERMDEPS += ethos
|
|
TERMPROG ?= sudo $(RIOTTOOLS)/ethos/ethos
|
|
TERMFLAGS ?= $(TAP) $(PORT) $(ETHOS_BAUDRATE)
|
|
endif
|
|
|
|
USEMODULE += auto_init_gnrc_netif
|
|
USEMODULE += gnrc_ipv6_default
|
|
USEMODULE += gnrc_tcp
|
|
USEMODULE += gnrc_pktbuf_cmd
|
|
USEMODULE += shell
|
|
USEMODULE += shell_commands
|
|
USEMODULE += od
|
|
|
|
DISABLE_MODULE += test_utils_interactive_sync
|
|
|
|
# Export used tap device to environment
|
|
export TAPDEV = $(TAP)
|
|
|
|
.PHONY: ethos
|
|
|
|
ethos:
|
|
$(Q)env -u CC -u CFLAGS make -C $(RIOTTOOLS)/ethos
|
|
|
|
include $(RIOTBASE)/Makefile.include
|