mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
DEVELHELP=0
|
|
include ../Makefile.tests_common
|
|
|
|
USEMODULE += shell
|
|
USEMODULE += shell_commands
|
|
|
|
USEMODULE += shell_lock
|
|
USEMODULE += shell_lock_auto_locking
|
|
|
|
CFLAGS += -DCONFIG_SHELL_LOCK_PASSWORD=\"password\"
|
|
CFLAGS += -DCONFIG_SHELL_LOCK_AUTO_LOCK_TIMEOUT_MS=7000
|
|
|
|
# This config defaults to 1 on native, such that pm_off() would be called as soon as
|
|
# shell_run_once is terminated in shell_run_forever. We do not want this behavior for this test.
|
|
CFLAGS += -DCONFIG_SHELL_SHUTDOWN_ON_EXIT=0
|
|
|
|
# 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)
|