From 04439c20746d1660b1431cf5b46ba9f7e0a9e526 Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Thu, 16 Oct 2025 09:55:18 +0800 Subject: [PATCH] utest: reorg menu items The original project display was completely flat, now it is organized into a tree-like hierarchical structure based on the layout of the code. mm & tmpfs test are still keep as pervious bcos we have not move the source for these two components. Signed-off-by: Chen Wang --- Kconfig.utestcases | 42 ++++++++------ src/utest/Kconfig | 141 +++++++++++++++++++++++---------------------- 2 files changed, 95 insertions(+), 88 deletions(-) diff --git a/Kconfig.utestcases b/Kconfig.utestcases index c4d446348e..9545ab1776 100644 --- a/Kconfig.utestcases +++ b/Kconfig.utestcases @@ -1,27 +1,33 @@ menu "RT-Thread Utestcases" -config RT_USING_UTESTCASES - bool "RT-Thread Utestcases" - default n - select RT_USING_UTEST + config RT_USING_UTESTCASES + bool "RT-Thread Utestcases" + default n + select RT_USING_UTEST -if RT_USING_UTESTCASES + if RT_USING_UTESTCASES -rsource "components/utilities/utest/utest/Kconfig" -rsource "src/utest/Kconfig" -rsource "examples/utest/testcases/mm/Kconfig" -rsource "examples/utest/testcases/tmpfs/Kconfig" + rsource "src/utest/Kconfig" -rsource "src/klibc/utest/Kconfig" + menu "Components" -rsource "components/drivers/core/utest/Kconfig" -rsource "components/drivers/audio/utest/Kconfig" -rsource "components/drivers/ipc/utest/Kconfig" -rsource "components/drivers/serial/utest/Kconfig" -rsource "components/drivers/smp_call/utest/Kconfig" -rsource "components/dfs/utest/Kconfig" -rsource "components/net/utest/Kconfig" -rsource "components/libc/cplusplus/utest/Kconfig" + menu "Drivers" + rsource "components/drivers/core/utest/Kconfig" + rsource "components/drivers/audio/utest/Kconfig" + rsource "components/drivers/ipc/utest/Kconfig" + rsource "components/drivers/serial/utest/Kconfig" + rsource "components/drivers/smp_call/utest/Kconfig" + endmenu + + rsource "components/dfs/utest/Kconfig" + rsource "components/libc/cplusplus/utest/Kconfig" + rsource "components/net/utest/Kconfig" + rsource "components/utilities/utest/utest/Kconfig" + + endmenu + + rsource "examples/utest/testcases/mm/Kconfig" + rsource "examples/utest/testcases/tmpfs/Kconfig" endif diff --git a/src/utest/Kconfig b/src/utest/Kconfig index 6fee9e8626..7437ecf39a 100644 --- a/src/utest/Kconfig +++ b/src/utest/Kconfig @@ -1,93 +1,94 @@ menu "Kernel Testcase" -config RT_UTEST_MEMHEAP - bool "memheap stability test" - default n - depends on RT_USING_MEMHEAP + config RT_UTEST_MEMHEAP + bool "memheap stability test" + default n + depends on RT_USING_MEMHEAP -config RT_UTEST_SMALL_MEM - bool "mem test" - default n - depends on RT_USING_SMALL_MEM + config RT_UTEST_SMALL_MEM + bool "mem test" + default n + depends on RT_USING_SMALL_MEM -config RT_UTEST_OBJECT - select RT_USING_DEVICE - select RT_USING_SEMAPHORE - bool "object test" - default n + config RT_UTEST_OBJECT + select RT_USING_DEVICE + select RT_USING_SEMAPHORE + bool "object test" + default n -config RT_UTEST_SLAB - bool "slab test" - default n - depends on RT_USING_SLAB + config RT_UTEST_SLAB + bool "slab test" + default n + depends on RT_USING_SLAB -config RT_UTEST_IRQ - bool "IRQ test" - default n + config RT_UTEST_IRQ + bool "IRQ test" + default n -config RT_UTEST_SEMAPHORE - bool "semaphore test" - default n - depends on RT_USING_SEMAPHORE + config RT_UTEST_SEMAPHORE + bool "semaphore test" + default n + depends on RT_USING_SEMAPHORE -config RT_UTEST_EVENT - bool "event test" - default n - depends on RT_USING_EVENT + config RT_UTEST_EVENT + bool "event test" + default n + depends on RT_USING_EVENT -config RT_UTEST_TIMER - bool "timer test" - default n + config RT_UTEST_TIMER + bool "timer test" + default n -config RT_UTEST_MESSAGEQUEUE - bool "message queue test" - default n + config RT_UTEST_MESSAGEQUEUE + bool "message queue test" + default n -config RT_UTEST_SIGNAL - bool "signal test" - select RT_USING_SIGNALS - default n + config RT_UTEST_SIGNAL + bool "signal test" + select RT_USING_SIGNALS + default n -config RT_UTEST_MUTEX - bool "mutex test" - default n + config RT_UTEST_MUTEX + bool "mutex test" + default n -config RT_UTEST_MAILBOX - bool "mailbox test" - default n + config RT_UTEST_MAILBOX + bool "mailbox test" + default n -config RT_UTEST_THREAD - bool "thread test" - default n - select RT_USING_TIMER_SOFT - select RT_USING_THREAD + config RT_UTEST_THREAD + bool "thread test" + default n + select RT_USING_TIMER_SOFT + select RT_USING_THREAD -config RT_UTEST_ATOMIC - bool "atomic test" - default n + config RT_UTEST_ATOMIC + bool "atomic test" + default n -config RT_UTEST_HOOKLIST - bool "hook list test" - select RT_USING_HOOKLIST - default n + config RT_UTEST_HOOKLIST + bool "hook list test" + select RT_USING_HOOKLIST + default n -config RT_UTEST_MTSAFE_KPRINT - bool "mtsafe kprint test" - default n + config RT_UTEST_MTSAFE_KPRINT + bool "mtsafe kprint test" + default n -config RT_UTEST_SCHEDULER - bool "scheduler test" - default n + config RT_UTEST_SCHEDULER + bool "scheduler test" + default n -config UTEST_MEMPOOL_TC - bool "mempool test" - default n - depends on RT_USING_MEMPOOL + config UTEST_MEMPOOL_TC + bool "mempool test" + default n + depends on RT_USING_MEMPOOL -rsource "perf/Kconfig" + rsource "perf/Kconfig" + rsource "../klibc/utest/Kconfig" -if RT_USING_SMP -rsource "smp/Kconfig" -endif + if RT_USING_SMP + rsource "smp/Kconfig" + endif endmenu