2021-03-05 12:21:52 +01:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
2021-08-04 14:55:06 +02:00
|
|
|
include $(RIOTBASE)/tests/Makefile.boards.netif
|
|
|
|
BOARD_WHITELIST += $(BOARD_PROVIDES_NETIF)
|
|
|
|
# Cannot run the test on `murdock` in `native`
|
|
|
|
# open(/dev/net/tun): No such file or directory
|
|
|
|
TEST_ON_CI_BLACKLIST += native
|
|
|
|
|
tests/pkg_edhoc_c: blacklist esp32-wroom-32
This test fails rather regularly on CI, so disable it.
socat - open:/dev/ttyUSB0,b115200,echo=0,raw
Traceback (most recent call last):
File "/tmp/dwq.0.5480675865160537/2c1d3acc7a86753de0db3a13fc04973d/tests/pkg_edhoc_c/tests/01-run.py", line 101, in <module>
sys.exit(run(testfunc))
File "/tmp/dwq.0.5480675865160537/2c1d3acc7a86753de0db3a13fc04973d/dist/pythonlibs/testrunner/__init__.py", line 28, in run
logfile=sys.stdout if echo else None)
File "/tmp/dwq.0.5480675865160537/2c1d3acc7a86753de0db3a13fc04973d/dist/pythonlibs/testrunner/spawn.py", line 88, in setup_child
sync_child(child, env)
File "/tmp/dwq.0.5480675865160537/2c1d3acc7a86753de0db3a13fc04973d/dist/pythonlibs/testrunner/spawn.py", line 123, in sync_child
TEST_INTERACTIVE_DELAY)
File "/tmp/dwq.0.5480675865160537/2c1d3acc7a86753de0db3a13fc04973d/dist/pythonlibs/testrunner/utils.py", line 41, in test_utils_interactive_sync_shell
_test_utils_interactive_sync(child, retries, delay, '\n', '>')
File "/tmp/dwq.0.5480675865160537/2c1d3acc7a86753de0db3a13fc04973d/dist/pythonlibs/testrunner/utils.py", line 17, in _test_utils_interactive_sync
ret = child.expect_exact([ready_exp, pexpect.TIMEOUT], timeout=delay)
File "/usr/local/lib/python3.5/dist-packages/pexpect/spawnbase.py", line 421, in expect_exact
return exp.expect_loop(timeout)
File "/usr/local/lib/python3.5/dist-packages/pexpect/expect.py", line 179, in expect_loop
return self.eof(e)
File "/usr/local/lib/python3.5/dist-packages/pexpect/expect.py", line 122, in eof
raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
2022-01-28 18:12:40 +01:00
|
|
|
# Test fails pretty regularly on CI
|
|
|
|
TEST_ON_CI_BLACKLIST += esp32-wroom-32
|
|
|
|
|
2021-03-05 12:21:52 +01:00
|
|
|
# Edhoc related packages
|
|
|
|
USEPKG += edhoc-c
|
|
|
|
USEMODULE += edhoc-c_crypto_tinycrypt
|
|
|
|
# USEMODULE += edhoc-c_crypto_wolfssl
|
|
|
|
USEMODULE += edhoc-c_cbor_nanocbor
|
|
|
|
|
|
|
|
# Include packages that pull up and auto-init the link layer.
|
|
|
|
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
|
2021-08-31 10:54:48 +02:00
|
|
|
USEMODULE += netdev_default
|
2021-03-05 12:21:52 +01:00
|
|
|
|
|
|
|
USEMODULE += auto_init_gnrc_netif
|
|
|
|
# Specify the mandatory networking modules for IPv6 and UDP
|
|
|
|
USEMODULE += gnrc_ipv6_router_default
|
|
|
|
USEMODULE += sock_udp
|
|
|
|
# Additional networking modules that can be dropped if not needed
|
|
|
|
USEMODULE += gnrc_icmpv6_echo
|
|
|
|
USEMODULE += nanocoap_sock
|
|
|
|
|
|
|
|
# include this for printing IP addresses
|
|
|
|
USEMODULE += shell
|
|
|
|
USEMODULE += shell_commands
|
|
|
|
USEMODULE += ps
|
|
|
|
USEMODULE += xtimer
|
|
|
|
|
|
|
|
# This is an optimized stack value based on testing, if you observe
|
|
|
|
# a segmentation fault please increase this stack size.
|
|
|
|
CFLAGS += -DTHREAD_STACKSIZE_MAIN=3*THREAD_STACKSIZE_LARGE
|
|
|
|
|
|
|
|
# Include responder code
|
|
|
|
CONFIG_INITIATOR ?= 1
|
|
|
|
CFLAGS += -DCONFIG_INITIATOR=$(CONFIG_INITIATOR)
|
|
|
|
# Include responder code
|
|
|
|
CONFIG_RESPONDER ?= 1
|
|
|
|
CFLAGS += -DCONFIG_RESPONDER=$(CONFIG_RESPONDER)
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
include $(RIOTMAKE)/default-radio-settings.inc.mk
|