Просмотр исходного кода

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 <unicorn_wang@outlook.com>
Chen Wang 2 месяцев назад
Родитель
Сommit
04439c2074
2 измененных файлов с 118 добавлено и 111 удалено
  1. 28 22
      Kconfig.utestcases
  2. 90 89
      src/utest/Kconfig

+ 28 - 22
Kconfig.utestcases

@@ -1,27 +1,33 @@
 menu "RT-Thread Utestcases"
 
-config RT_USING_UTESTCASES
-    bool "RT-Thread Utestcases"
-    default n
-    select RT_USING_UTEST
-
-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/klibc/utest/Kconfig"
-
-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"
+    config RT_USING_UTESTCASES
+        bool "RT-Thread Utestcases"
+        default n
+        select RT_USING_UTEST
+
+    if RT_USING_UTESTCASES
+
+        rsource "src/utest/Kconfig"
+
+        menu "Components"
+
+            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
 

+ 90 - 89
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_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_SLAB
-    bool "slab test"
-    default n
-    depends on RT_USING_SLAB
-
-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_EVENT
-    bool "event test"
-    default n
-    depends on RT_USING_EVENT
-
-config RT_UTEST_TIMER
-    bool "timer 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_MUTEX
-    bool "mutex 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_ATOMIC
-    bool "atomic test"
-    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_SCHEDULER
-    bool "scheduler test"
-    default n
-
-config UTEST_MEMPOOL_TC
-    bool "mempool test"
-    default n
-    depends on RT_USING_MEMPOOL
-
-rsource "perf/Kconfig"
-
-if RT_USING_SMP
-rsource "smp/Kconfig"
-endif
+    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_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_IRQ
+        bool "IRQ test"
+        default n
+
+    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_TIMER
+        bool "timer 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_MUTEX
+        bool "mutex 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_ATOMIC
+        bool "atomic test"
+        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_SCHEDULER
+        bool "scheduler test"
+        default n
+
+    config UTEST_MEMPOOL_TC
+        bool "mempool test"
+        default n
+        depends on RT_USING_MEMPOOL
+
+    rsource "perf/Kconfig"
+    rsource "../klibc/utest/Kconfig"
+
+    if RT_USING_SMP
+        rsource "smp/Kconfig"
+    endif
 
 endmenu