2021-02-23 22:01:57 +01:00
|
|
|
DEVELHELP=0
|
2023-05-10 10:36:12 +02:00
|
|
|
include ../Makefile.sys_common
|
2021-02-23 22:01:57 +01:00
|
|
|
|
|
|
|
USEMODULE += shell
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2021-02-23 22:01:57 +01:00
|
|
|
|
|
|
|
USEMODULE += shell_lock
|
|
|
|
USEMODULE += shell_lock_auto_locking
|
|
|
|
|
2023-05-20 18:34:27 +02:00
|
|
|
ifneq (1,$(TEST_KCONFIG))
|
2021-02-23 22:01:57 +01:00
|
|
|
CFLAGS += -DCONFIG_SHELL_LOCK_PASSWORD=\"password\"
|
|
|
|
CFLAGS += -DCONFIG_SHELL_LOCK_AUTO_LOCK_TIMEOUT_MS=7000
|
2023-05-20 18:34:27 +02:00
|
|
|
endif
|
2021-02-23 22:01:57 +01:00
|
|
|
|
|
|
|
# test_utils_interactive_sync_shell assumes that the prompt is always '> ' which breaks
|
|
|
|
# with the password prompt of the shell_lock module which is different from the shell's prompt
|
|
|
|
DISABLE_MODULE += test_utils_interactive_sync_shell
|
|
|
|
|
|
|
|
# for z1, socat doesn't work (unknown reason)
|
|
|
|
ifeq (z1, $(BOARD))
|
|
|
|
RIOT_TERMINAL ?= pyterm
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Use a terminal that does not introduce extra characters into the stream.
|
|
|
|
RIOT_TERMINAL ?= socat
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
|
|
|
|
# the test script skips tests if socat is not used
|
|
|
|
$(call target-export-variables,$(RIOT_TERMINAL),RIOT_TERMINAL)
|