2019-07-29 16:27:43 +02:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
# Basic Configuration
|
|
|
|
BOARD ?= native
|
|
|
|
TAP ?= tap0
|
|
|
|
|
|
|
|
# Shorten default TCP timeouts to speedup testing
|
|
|
|
MSL_US ?= 1000000
|
|
|
|
TIMEOUT_US ?= 3000000
|
|
|
|
|
|
|
|
# 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
|
2020-05-14 12:10:01 +02:00
|
|
|
CFLAGS += -DCONFIG_GNRC_TCP_MSL=$(MSL_US)
|
2020-05-14 12:05:07 +02:00
|
|
|
CFLAGS += -DCONFIG_GNRC_TCP_CONNECTION_TIMEOUT_DURATION=$(TIMEOUT_US)
|
2020-04-03 23:42:52 +02:00
|
|
|
CFLAGS += -DGNRC_NETIF_SINGLE # Only one interface used and it makes
|
|
|
|
# shell commands easier
|
2019-07-29 16:27:43 +02:00
|
|
|
|
|
|
|
ifeq (native,$(BOARD))
|
|
|
|
TERMFLAGS ?= $(TAP)
|
|
|
|
else
|
|
|
|
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
|
|
|
|
|
|
|
|
# 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
|