From c1edcd9fd2bcf7ecc12b640164c0655885015823 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 24 Sep 2020 15:45:03 +0200 Subject: [PATCH] sys/test_utils: add modules to Kconfig --- sys/Kconfig | 1 + sys/test_utils/Kconfig | 13 +++++++++++++ sys/test_utils/dummy_thread/Kconfig | 12 ++++++++++++ sys/test_utils/interactive_sync/Kconfig | 15 +++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 sys/test_utils/Kconfig create mode 100644 sys/test_utils/dummy_thread/Kconfig create mode 100644 sys/test_utils/interactive_sync/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index 82daf614c2..64352df14d 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -11,6 +11,7 @@ rsource "net/Kconfig" rsource "Kconfig.newlib" rsource "Kconfig.stdio" rsource "pm_layered/Kconfig" +rsource "test_utils/Kconfig" rsource "usb/Kconfig" config MODULE_SYS diff --git a/sys/test_utils/Kconfig b/sys/test_utils/Kconfig new file mode 100644 index 0000000000..12f4fd6af3 --- /dev/null +++ b/sys/test_utils/Kconfig @@ -0,0 +1,13 @@ +# Copyright (c) 2020 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +menu "Test utilities" + depends on TEST_KCONFIG + +rsource "dummy_thread/Kconfig" +rsource "interactive_sync/Kconfig" +endmenu # Test utilities diff --git a/sys/test_utils/dummy_thread/Kconfig b/sys/test_utils/dummy_thread/Kconfig new file mode 100644 index 0000000000..9021290d0d --- /dev/null +++ b/sys/test_utils/dummy_thread/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2020 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_DUMMY_THREAD + bool "Dummy thread" + help + This module can be used to mess up the number of threads a bit, e.g., + for testing test scripts. diff --git a/sys/test_utils/interactive_sync/Kconfig b/sys/test_utils/interactive_sync/Kconfig new file mode 100644 index 0000000000..7f888e48ad --- /dev/null +++ b/sys/test_utils/interactive_sync/Kconfig @@ -0,0 +1,15 @@ +# Copyright (c) 2020 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_TEST_UTILS_INTERACTIVE_SYNC + bool "Interactive synchronization" + select MODULE_STDIN + +config MODULE_TEST_UTILS_INTERACTIVE_SYNC_SHELL + bool "Use the shell to synchronize" + depends on MODULE_TEST_UTILS_INTERACTIVE_SYNC + default y if MODULE_SHELL