From 6fa027900806ee50bd82120c9bb89c4967419aba Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 20 May 2023 18:34:27 +0200 Subject: [PATCH] tests/sys/shell_lock: add Kconfig config --- tests/sys/shell_lock/Makefile | 2 ++ tests/sys/shell_lock/app.config.test | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/sys/shell_lock/app.config.test diff --git a/tests/sys/shell_lock/Makefile b/tests/sys/shell_lock/Makefile index 6b67361fde..a9da2d0033 100644 --- a/tests/sys/shell_lock/Makefile +++ b/tests/sys/shell_lock/Makefile @@ -7,8 +7,10 @@ USEMODULE += shell_cmds_default USEMODULE += shell_lock USEMODULE += shell_lock_auto_locking +ifneq (1,$(TEST_KCONFIG)) CFLAGS += -DCONFIG_SHELL_LOCK_PASSWORD=\"password\" CFLAGS += -DCONFIG_SHELL_LOCK_AUTO_LOCK_TIMEOUT_MS=7000 +endif # 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. diff --git a/tests/sys/shell_lock/app.config.test b/tests/sys/shell_lock/app.config.test new file mode 100644 index 0000000000..c11575af5a --- /dev/null +++ b/tests/sys/shell_lock/app.config.test @@ -0,0 +1,6 @@ +CONFIG_MODULE_SHELL=y +CONFIG_MODULE_SHELL_CMDS_DEFAULT=y +CONFIG_MODULE_SHELL_LOCK=y +CONFIG_MODULE_SHELL_LOCK_AUTO_LOCKING=y +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC_SHELL=n +CONFIG_SHELL_SHUTDOWN_ON_EXIT=n