diff --git a/Kconfig.utestcases b/Kconfig.utestcases index c4d446348ef..e402aff6508 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 - -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 "Kernel 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 diff --git a/components/dfs/utest/Kconfig b/components/dfs/utest/Kconfig index 8ca2f19e5b8..dde4cffca05 100644 --- a/components/dfs/utest/Kconfig +++ b/components/dfs/utest/Kconfig @@ -1,8 +1,8 @@ if RT_USING_DFS - menu "File System Unit Testcase" + menu "File System" config RT_UTEST_TC_USING_DFS_API - bool "DFS API test" + bool "DFS API Test" default n help Enable DFS native API unit tests including file operations like open, @@ -11,7 +11,7 @@ if RT_USING_DFS if RT_UTEST_TC_USING_DFS_API config RT_UTEST_TC_USING_POSIX_API - bool "POSIX API test" + bool "POSIX API Test" default n depends on RT_USING_POSIX_FS help @@ -19,21 +19,21 @@ if RT_USING_DFS directory operations, and file permission tests config RT_UTEST_DFS_MNT_PATH - string "Mount path for DFS test" + string "Mount Path for DFS Test" default "" help Configure the mount point path where the test filesystem will be mounted. All test files and directories will be created under this path config RT_UTEST_DFS_FS_TYPE - string "Filesystem type for test" + string "Filesystem Type for Test" default "elm" help Configure the filesystem type for unit test (e.g., elm, fat). This will be used for dfs_mkfs() and dfs_mount() operations config RT_UTEST_DFS_BLOCK_DEV - string "Block device name for test" + string "Block Device Name for Test" default "sd0" help Configure the block device name for unit test (e.g., sd0, sd1). diff --git a/components/drivers/audio/utest/Kconfig b/components/drivers/audio/utest/Kconfig index 2ee22aef924..36922b390c2 100644 --- a/components/drivers/audio/utest/Kconfig +++ b/components/drivers/audio/utest/Kconfig @@ -1,5 +1,5 @@ if RT_USING_AUDIO config RT_UTEST_USING_AUDIO_DRIVER - bool "Enable rt_audio_api testcase" + bool "Audio Test" default n endif \ No newline at end of file diff --git a/components/drivers/core/utest/Kconfig b/components/drivers/core/utest/Kconfig index 723a47ce395..f39fa9c8a03 100644 --- a/components/drivers/core/utest/Kconfig +++ b/components/drivers/core/utest/Kconfig @@ -1,3 +1,3 @@ config RT_UTEST_DRIVERS_CORE - bool "Enable testcase for drivers core" + bool "Drivers Core Test" default n diff --git a/components/drivers/ipc/utest/Kconfig b/components/drivers/ipc/utest/Kconfig index 86c4c5dc7fd..00d8c61ed9e 100644 --- a/components/drivers/ipc/utest/Kconfig +++ b/components/drivers/ipc/utest/Kconfig @@ -1,12 +1,12 @@ -menu "IPC Unit Testcases" +menu "IPC Test" depends on RT_USING_DEVICE_IPC config RT_UTEST_COMPLETION - bool "rt_completion testcase" + bool "IPC Completion Test" default n config RT_UTEST_WORKQUEUE - bool "rt_workqueue testcase" + bool "IPC Workqueue Test" default n endmenu diff --git a/components/drivers/serial/utest/Kconfig b/components/drivers/serial/utest/Kconfig index 31d1784fa2c..aefb162b8b5 100644 --- a/components/drivers/serial/utest/Kconfig +++ b/components/drivers/serial/utest/Kconfig @@ -1,39 +1,39 @@ -menu "Serial Unit Testcases" +menu "Serial Test" config RT_UTEST_SERIAL_BYPASS - bool "Serial Bypass testcases" + bool "Serial Bypass Test" default n depends on RT_USING_SERIAL_BYPASS config RT_UTEST_SERIAL_V2 - bool "Serial V2 testcases" + bool "Serial V2 Test" default n depends on RT_USING_SERIAL_V2 if RT_UTEST_SERIAL_V2 config RT_SERIAL_TC_DEVICE_NAME - string "the device name for serial test" + string "Device Name for Serial Test" default "uart2" config RT_SERIAL_TC_RXBUF_SIZE - int "the rx buffer size for serial test" + int "RX Buffer Size for Serial Test" default 128 config RT_SERIAL_TC_TXBUF_SIZE - int "the tx buffer size for serial test" + int "TX Buffer Size for Serial Test" default 128 config RT_SERIAL_TC_SEND_ITERATIONS - int "the number of iterations for the test routine." + int "Number of Iterations for Test Routines" default 100 config RT_UTEST_SERIAL_QEMU - bool "qemu dedicated tests" + bool "QEMU Dedicated Test" default n config RT_UTEST_SERIAL_POSIX - bool "Serial posix testcase" + bool "Serial POSIX Test" default n select RT_USING_DFS select RT_USING_POSIX_FS @@ -42,11 +42,11 @@ menu "Serial Unit Testcases" if RT_UTEST_SERIAL_POSIX config RT_SERIAL_POSIX_TC_DEVICE_NAME - string "the device name for serial posix test" + string "Device Name for Serial POSIX Test" default "dev/uart2" config RT_SERIAL_POSIX_TC_SEND_ITERATIONS - int "the number of iterations for the posix test routine." + int "Number of Iterations for POSIX Test Routines" default 100 endif diff --git a/components/drivers/smp_call/utest/Kconfig b/components/drivers/smp_call/utest/Kconfig index db2f56e90f5..fc9776027c2 100644 --- a/components/drivers/smp_call/utest/Kconfig +++ b/components/drivers/smp_call/utest/Kconfig @@ -1,7 +1,7 @@ -menu "SMP-Call Unit Testcases" +menu "SMP-Call Test" config RT_UTEST_SMP_CALL_FUNC - bool "SMP-Call smoke test" + bool "SMP-Call Smoke Test" default n depends on RT_USING_SMP diff --git a/components/libc/cplusplus/utest/Kconfig b/components/libc/cplusplus/utest/Kconfig index 3259e26a39d..de3e48dbea0 100644 --- a/components/libc/cplusplus/utest/Kconfig +++ b/components/libc/cplusplus/utest/Kconfig @@ -1,7 +1,7 @@ -menu "CPP11 Testcase" +menu "CPP11" config RT_UTEST_CPP11_THREAD - bool "Cpp11 thread test" + bool "Cpp11 Thread Test" select RT_USING_CPLUSPLUS select RT_USING_CPLUSPLUS11 default n diff --git a/components/net/utest/Kconfig b/components/net/utest/Kconfig index 55dbcff906a..41b460f35b1 100644 --- a/components/net/utest/Kconfig +++ b/components/net/utest/Kconfig @@ -1,8 +1,8 @@ if RT_USING_LWIP - menu "LwIP Network Unit Testcase" + menu "LwIP" config RT_UTEST_TC_USING_LWIP - bool "lwIP API test" + bool "lwIP API Test" help Enable lwIP network stack unit tests including DNS resolution, TCP/UDP socket operations, and network interface tests @@ -10,7 +10,7 @@ if RT_USING_LWIP if RT_UTEST_TC_USING_LWIP config RT_UTEST_LWIP_DNS_TEST - bool "DNS resolution test" + bool "DNS Resolution Test" default y help Enable DNS resolution unit tests including gethostbyname() @@ -20,7 +20,7 @@ if RT_USING_LWIP without hardcoded IP comparisons. config RT_UTEST_LWIP_TCP_TEST - bool "TCP socket test" + bool "TCP Socket Test" default y help Enable TCP socket unit tests including client-server communication @@ -30,7 +30,7 @@ if RT_USING_LWIP and connection management (shutdown, close). config RT_UTEST_LWIP_UDP_TEST - bool "UDP socket test" + bool "UDP Socket Test" default y help Enable UDP socket unit tests including datagram transmission @@ -39,7 +39,7 @@ if RT_USING_LWIP functions, and timeout handling for receive operations. config RT_UTEST_LWIP_ICMP_TEST - bool "ICMP ping test" + bool "ICMP Ping Test" default y help Enable ICMP ping unit tests using raw sockets to send @@ -47,7 +47,7 @@ if RT_USING_LWIP basic ICMP functionality with loopback address (127.0.0.1). config RT_UTEST_LWIP_SOCKET_OPT_TEST - bool "Socket options test" + bool "Socket Options Test" default y help Enable socket options unit tests including setsockopt() @@ -55,7 +55,7 @@ if RT_USING_LWIP retrieving socket options such as SO_REUSEADDR. config RT_UTEST_LWIP_ADDR_CONV_TEST - bool "Address conversion test" + bool "Address Conversion Test" default y help Enable address conversion unit tests including inet_addr() @@ -64,7 +64,7 @@ if RT_USING_LWIP Tests verify proper conversion functionality. config RT_UTEST_LWIP_NETIF_TEST - bool "Network interface management test" + bool "Network Interface Management Test" default y help Enable network interface management unit tests including @@ -73,7 +73,7 @@ if RT_USING_LWIP default interface configuration. config RT_UTEST_LWIP_TCP_PORT - int "TCP test port" + int "TCP Test Port" default 1234 range 1024 65535 help @@ -81,7 +81,7 @@ if RT_USING_LWIP Must be in the range 1024-65535 to avoid system ports config RT_UTEST_LWIP_UDP_PORT - int "UDP test port" + int "UDP Test Port" default 1235 range 1024 65535 help @@ -89,14 +89,14 @@ if RT_USING_LWIP Must be in the range 1024-65535 to avoid system ports config RT_UTEST_LWIP_TEST_URL - string "Test domain name" + string "Test Domain Name" default "www.rt-thread.org" help Configure the domain name for DNS resolution tests. This domain will be resolved to verify DNS functionality config RT_UTEST_LWIP_TEST_ADDR - string "Expected IP address" + string "Expected IP Address" default "180.163.146.111" help Configure the expected IP address for DNS resolution verification. @@ -107,10 +107,10 @@ if RT_USING_LWIP endif if RT_USING_NETDEV - menu "Netdev Network Unit Testcase" + menu "Netdev" config RT_UTEST_TC_USING_NETDEV - bool "netdev api test" + bool "Netdev API Test" help Enable netdev network device framework unit tests. @@ -126,7 +126,7 @@ if RT_USING_NETDEV if RT_UTEST_TC_USING_NETDEV config RT_UTEST_DEFAULT_NETDEV_NAME - string "Default netdev name" + string "Default Netdev Name" default "e0" help Network interface name for tests. Common values: diff --git a/components/utilities/utest/utest/Kconfig b/components/utilities/utest/utest/Kconfig index 890903ba3f5..17faa65271f 100644 --- a/components/utilities/utest/utest/Kconfig +++ b/components/utilities/utest/utest/Kconfig @@ -1,7 +1,7 @@ -menu "Utest Self Testcase" +menu "Utest Framework" config RT_UTEST_SELF_PASS - bool "UTEST Self-test" + bool "UTEST Framework Test" select RT_USING_UTEST default n diff --git a/examples/utest/configs/kernel/mem.cfg b/examples/utest/configs/kernel/mem.cfg index e2bffb9ecff..df3ce9ef82b 100644 --- a/examples/utest/configs/kernel/mem.cfg +++ b/examples/utest/configs/kernel/mem.cfg @@ -4,6 +4,6 @@ CONFIG_RT_USING_CI_ACTION=y CONFIG_RT_UTEST_MEMHEAP=y CONFIG_RT_UTEST_SMALL_MEM=y -CONFIG_UTEST_MEMPOOL_TC=y +CONFIG_RT_UTEST_MEMPOOL=y CONFIG_UTEST_THR_STACK_SIZE=8192 \ No newline at end of file diff --git a/src/klibc/utest/Kconfig b/src/klibc/utest/Kconfig index 086a817e073..7754993a4ef 100644 --- a/src/klibc/utest/Kconfig +++ b/src/klibc/utest/Kconfig @@ -1,4 +1,4 @@ config RT_UTEST_TC_USING_KLIBC - bool "Enable klibc utest cases" + bool "Kernel Libc Test" select RT_USING_UTEST default n diff --git a/src/utest/Kconfig b/src/utest/Kconfig index 6fee9e86260..7f478c591ff 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_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 +menu "Kernel Core" + + config RT_UTEST_MEMHEAP + bool "Memory Heap Stability Test" + default n + depends on RT_USING_MEMHEAP + + config RT_UTEST_SMALL_MEM + bool "Memory 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 "MT-Safe Kprint Test" + default n + + config RT_UTEST_SCHEDULER + bool "Scheduler Test" + default n + + config RT_UTEST_MEMPOOL + bool "Memory Pool Test" + default n + depends on RT_USING_MEMPOOL + + rsource "perf/Kconfig" + rsource "../klibc/utest/Kconfig" + + if RT_USING_SMP + rsource "smp/Kconfig" + endif endmenu diff --git a/src/utest/SConscript b/src/utest/SConscript index 88ff9f54bc0..7a532625d1c 100644 --- a/src/utest/SConscript +++ b/src/utest/SConscript @@ -55,7 +55,7 @@ if GetDepend(['RT_UTEST_HOOKLIST']): if GetDepend(['RT_UTEST_MTSAFE_KPRINT']): src += ['mtsafe_kprint_tc.c'] -if GetDepend(['UTEST_MEMPOOL_TC']): +if GetDepend(['RT_UTEST_MEMPOOL']): src += ['mempool_tc.c'] # Stressful testcase for scheduler (MP/UP) diff --git a/src/utest/smp/Kconfig b/src/utest/smp/Kconfig index 5900fcdf0b7..aaef5149e1c 100644 --- a/src/utest/smp/Kconfig +++ b/src/utest/smp/Kconfig @@ -1,23 +1,23 @@ -menu "Kernel SMP Testcase" +menu "SMP Test" config RT_UTEST_SMP_AFFFINITY - bool "smp affinity and thread priority test1" + bool "SMP Affinity and Thread Priority Test" default n config RT_UTEST_SMP_ASSIGNED_IDLE_CORE - bool "smp threads auto assign to idle cores for test" + bool "SMP Threads Auto Assign to Idle Cores Test" default n config RT_UTEST_SMP_INTERRUPT_PRI - bool "smp interrupt priority test" + bool "SMP Interrupt Priority Test" default n config RT_UTEST_SMP_SPINLOCK - bool "smp spinlock test" + bool "SMP Spinlock Test" default n config RT_UTEST_SMP_THREAD_PREEMPTION - bool "smp threads preemption test" + bool "SMP Threads Preemption Test" default n endmenu