From ee3e3578d4dd9c9210c4f7cb0ff61c982af635bc Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 13:24:55 +0100 Subject: [PATCH] tests/{x,z}timer: add Kconfig configuration files --- .murdock | 4 +++- tests/xtimer_drift/app.config.test | 3 +++ tests/xtimer_hang/app.config.test | 6 ++++++ tests/xtimer_longterm/app.config.test | 3 +++ tests/xtimer_msg/app.config.test | 5 +++++ tests/xtimer_msg_receive_timeout/app.config.test | 5 +++++ tests/xtimer_mutex_lock_timeout/app.config.test | 10 ++++++++++ tests/xtimer_now32_overflow/app.config.test | 6 ++++++ tests/xtimer_now64_continuity/app.config.test | 6 ++++++ tests/xtimer_now_irq/app.config.test | 5 +++++ tests/xtimer_overhead/app.config.test | 5 +++++ tests/xtimer_periodic_wakeup/app.config.test | 5 +++++ tests/xtimer_remove/app.config.test | 5 +++++ tests/xtimer_reset/app.config.test | 5 +++++ tests/xtimer_rmutex_lock_timeout/app.config.test | 6 ++++++ tests/xtimer_usleep/app.config.test | 5 +++++ tests/xtimer_usleep_short/app.config.test | 5 +++++ tests/ztimer_msg/app.config.test | 7 +++++++ tests/ztimer_mutex_lock_timeout/app.config.test | 7 +++++++ tests/ztimer_overhead/app.config.test | 8 ++++++++ tests/ztimer_periodic/app.config.test | 10 ++++++++++ tests/ztimer_underflow/Makefile | 4 ++++ tests/ztimer_underflow/app.config.msec.test | 4 ++++ tests/ztimer_underflow/app.config.test | 7 +++++++ 24 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 tests/xtimer_drift/app.config.test create mode 100644 tests/xtimer_hang/app.config.test create mode 100644 tests/xtimer_longterm/app.config.test create mode 100644 tests/xtimer_msg/app.config.test create mode 100644 tests/xtimer_msg_receive_timeout/app.config.test create mode 100644 tests/xtimer_mutex_lock_timeout/app.config.test create mode 100644 tests/xtimer_now32_overflow/app.config.test create mode 100644 tests/xtimer_now64_continuity/app.config.test create mode 100644 tests/xtimer_now_irq/app.config.test create mode 100644 tests/xtimer_overhead/app.config.test create mode 100644 tests/xtimer_periodic_wakeup/app.config.test create mode 100644 tests/xtimer_remove/app.config.test create mode 100644 tests/xtimer_reset/app.config.test create mode 100644 tests/xtimer_rmutex_lock_timeout/app.config.test create mode 100644 tests/xtimer_usleep/app.config.test create mode 100644 tests/xtimer_usleep_short/app.config.test create mode 100644 tests/ztimer_msg/app.config.test create mode 100644 tests/ztimer_mutex_lock_timeout/app.config.test create mode 100644 tests/ztimer_overhead/app.config.test create mode 100644 tests/ztimer_periodic/app.config.test create mode 100644 tests/ztimer_underflow/app.config.msec.test create mode 100644 tests/ztimer_underflow/app.config.test diff --git a/.murdock b/.murdock index 825f0a5d42..9da0565efa 100755 --- a/.murdock +++ b/.murdock @@ -8,6 +8,7 @@ : ${TEST_BOARDS_LLVM_COMPILE:=""} : ${TEST_KCONFIG_samr21_xpro:="examples/hello-world tests/periph_* +tests/xtimer_* tests/ztimer_* tests/driver_ad7746 tests/driver_adcxx1c tests/driver_ads101x tests/driver_adt101x tests/driver_adt7310 tests/driver_adxl345 tests/driver_aip31068 tests/driver_apa102 tests/driver_apds99xx tests/driver_apds99xx_full tests/driver_at tests/driver_at24cxxx @@ -22,7 +23,8 @@ tests/driver_motor_driver tests/driver_mpl3115a2 tests/driver_mpu9x50 tests/driver_mq3 tests/driver_my9221 tests/driver_nvram_spi tests/mtd_flashpage tests/mtd_mapper tests/driver_o* tests/driver_p* tests/driver_q* tests/driver_r*"} -: ${TEST_KCONFIG_native:="examples/hello-world tests/periph_*"} +: ${TEST_KCONFIG_native:="examples/hello-world tests/periph_* +tests/xtimer_* tests/ztimer_*"} export RIOT_CI_BUILD=1 export CC_NOCOLOR=1 diff --git a/tests/xtimer_drift/app.config.test b/tests/xtimer_drift/app.config.test new file mode 100644 index 0000000000..6833955646 --- /dev/null +++ b/tests/xtimer_drift/app.config.test @@ -0,0 +1,3 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y diff --git a/tests/xtimer_hang/app.config.test b/tests/xtimer_hang/app.config.test new file mode 100644 index 0000000000..4e5ffe0003 --- /dev/null +++ b/tests/xtimer_hang/app.config.test @@ -0,0 +1,6 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_CORE_MSG=n + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_longterm/app.config.test b/tests/xtimer_longterm/app.config.test new file mode 100644 index 0000000000..6833955646 --- /dev/null +++ b/tests/xtimer_longterm/app.config.test @@ -0,0 +1,3 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y diff --git a/tests/xtimer_msg/app.config.test b/tests/xtimer_msg/app.config.test new file mode 100644 index 0000000000..e68d26f46a --- /dev/null +++ b/tests/xtimer_msg/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_msg_receive_timeout/app.config.test b/tests/xtimer_msg_receive_timeout/app.config.test new file mode 100644 index 0000000000..e68d26f46a --- /dev/null +++ b/tests/xtimer_msg_receive_timeout/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_mutex_lock_timeout/app.config.test b/tests/xtimer_mutex_lock_timeout/app.config.test new file mode 100644 index 0000000000..c25fb47f87 --- /dev/null +++ b/tests/xtimer_mutex_lock_timeout/app.config.test @@ -0,0 +1,10 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_SHELL=y + +# for testing +# CONFIG_MODULE_PS=y +# CONFIG_MODULE_SHELL_COMMANDS=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_now32_overflow/app.config.test b/tests/xtimer_now32_overflow/app.config.test new file mode 100644 index 0000000000..ed76656496 --- /dev/null +++ b/tests/xtimer_now32_overflow/app.config.test @@ -0,0 +1,6 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_AUTO_INIT_XTIMER=n + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_now64_continuity/app.config.test b/tests/xtimer_now64_continuity/app.config.test new file mode 100644 index 0000000000..3175189331 --- /dev/null +++ b/tests/xtimer_now64_continuity/app.config.test @@ -0,0 +1,6 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_FMT=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_now_irq/app.config.test b/tests/xtimer_now_irq/app.config.test new file mode 100644 index 0000000000..e68d26f46a --- /dev/null +++ b/tests/xtimer_now_irq/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_overhead/app.config.test b/tests/xtimer_overhead/app.config.test new file mode 100644 index 0000000000..e68d26f46a --- /dev/null +++ b/tests/xtimer_overhead/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_periodic_wakeup/app.config.test b/tests/xtimer_periodic_wakeup/app.config.test new file mode 100644 index 0000000000..e68d26f46a --- /dev/null +++ b/tests/xtimer_periodic_wakeup/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_remove/app.config.test b/tests/xtimer_remove/app.config.test new file mode 100644 index 0000000000..e68d26f46a --- /dev/null +++ b/tests/xtimer_remove/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_reset/app.config.test b/tests/xtimer_reset/app.config.test new file mode 100644 index 0000000000..e68d26f46a --- /dev/null +++ b/tests/xtimer_reset/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_rmutex_lock_timeout/app.config.test b/tests/xtimer_rmutex_lock_timeout/app.config.test new file mode 100644 index 0000000000..0743ca4312 --- /dev/null +++ b/tests/xtimer_rmutex_lock_timeout/app.config.test @@ -0,0 +1,6 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_SHELL=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_usleep/app.config.test b/tests/xtimer_usleep/app.config.test new file mode 100644 index 0000000000..e68d26f46a --- /dev/null +++ b/tests/xtimer_usleep/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/xtimer_usleep_short/app.config.test b/tests/xtimer_usleep_short/app.config.test new file mode 100644 index 0000000000..e68d26f46a --- /dev/null +++ b/tests/xtimer_usleep_short/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_XTIMER=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/ztimer_msg/app.config.test b/tests/ztimer_msg/app.config.test new file mode 100644 index 0000000000..b4cfa58f1f --- /dev/null +++ b/tests/ztimer_msg/app.config.test @@ -0,0 +1,7 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_ZTIMER=y +CONFIG_MODULE_ZTIMER_PERIPH_TIMER=y +CONFIG_MODULE_ZTIMER_USEC=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/ztimer_mutex_lock_timeout/app.config.test b/tests/ztimer_mutex_lock_timeout/app.config.test new file mode 100644 index 0000000000..b4cfa58f1f --- /dev/null +++ b/tests/ztimer_mutex_lock_timeout/app.config.test @@ -0,0 +1,7 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_ZTIMER=y +CONFIG_MODULE_ZTIMER_PERIPH_TIMER=y +CONFIG_MODULE_ZTIMER_USEC=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/ztimer_overhead/app.config.test b/tests/ztimer_overhead/app.config.test new file mode 100644 index 0000000000..8ad7aa14ad --- /dev/null +++ b/tests/ztimer_overhead/app.config.test @@ -0,0 +1,8 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_ZTIMER=y +CONFIG_MODULE_ZTIMER_PERIPH_TIMER=y +CONFIG_MODULE_ZTIMER_USEC=y +CONFIG_MODULE_ZTIMER_OVERHEAD=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/ztimer_periodic/app.config.test b/tests/ztimer_periodic/app.config.test new file mode 100644 index 0000000000..9a41bcd438 --- /dev/null +++ b/tests/ztimer_periodic/app.config.test @@ -0,0 +1,10 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_ZTIMER=y +CONFIG_MODULE_ZTIMER_PERIPH_TIMER=y +CONFIG_MODULE_ZTIMER_USEC=y +CONFIG_MODULE_ZTIMER_MSEC=y + +CONFIG_MODULE_FMT=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/ztimer_underflow/Makefile b/tests/ztimer_underflow/Makefile index 70f5abd2ab..63098523a7 100644 --- a/tests/ztimer_underflow/Makefile +++ b/tests/ztimer_underflow/Makefile @@ -7,6 +7,10 @@ USEMODULE += ztimer_usec ifeq ($(TEST_ZTIMER_CLOCK), ZTIMER_MSEC) USEMODULE += ztimer_msec USEMODULE += ztimer_periph_rtt + # the same for Kconfig + ifeq (1,$(TEST_KCONFIG)) + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.msec.test + endif endif CFLAGS += -DTEST_ZTIMER_CLOCK=$(TEST_ZTIMER_CLOCK) diff --git a/tests/ztimer_underflow/app.config.msec.test b/tests/ztimer_underflow/app.config.msec.test new file mode 100644 index 0000000000..33be97d04f --- /dev/null +++ b/tests/ztimer_underflow/app.config.msec.test @@ -0,0 +1,4 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_ZTIMER_MSEC=y +CONFIG_MODULE_ZTIMER_PERIPH_RTT=y diff --git a/tests/ztimer_underflow/app.config.test b/tests/ztimer_underflow/app.config.test new file mode 100644 index 0000000000..b4cfa58f1f --- /dev/null +++ b/tests/ztimer_underflow/app.config.test @@ -0,0 +1,7 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_ZTIMER=y +CONFIG_MODULE_ZTIMER_PERIPH_TIMER=y +CONFIG_MODULE_ZTIMER_USEC=y + +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y