Ver Fonte

utest: Improve the strings displayed in the menu

Use "Test" instead of "Unit Testcases" to make string shorter.
Use uppercase to make it look more eye-catching.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Chen Wang há 2 meses atrás
pai
commit
c1363c77d6

+ 1 - 1
Kconfig.utestcases

@@ -9,7 +9,7 @@ menu "RT-Thread Utestcases"
 
         rsource "src/utest/Kconfig"
 
-        menu "Components"
+        menu "Kernel Components"
 
             menu "Drivers"
                 rsource "components/drivers/core/utest/Kconfig"

+ 6 - 6
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).

+ 1 - 1
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

+ 1 - 1
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

+ 3 - 3
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

+ 11 - 11
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

+ 2 - 2
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
 

+ 2 - 2
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

+ 16 - 16
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:

+ 2 - 2
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
 

+ 1 - 1
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

+ 19 - 19
src/utest/Kconfig

@@ -1,86 +1,86 @@
-menu "Kernel Testcase"
+menu "Kernel Core"
 
     config RT_UTEST_MEMHEAP
-        bool "memheap stability test"
+        bool "Memory Heap Stability Test"
         default n
         depends on RT_USING_MEMHEAP
 
     config RT_UTEST_SMALL_MEM
-        bool "mem test"
+        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"
+        bool "Object Test"
         default n
 
     config RT_UTEST_SLAB
-        bool "slab test"
+        bool "SLAB Test"
         default n
         depends on RT_USING_SLAB
 
     config RT_UTEST_IRQ
-        bool "IRQ test"
+        bool "IRQ Test"
         default n
 
     config RT_UTEST_SEMAPHORE
-        bool "semaphore test"
+        bool "Semaphore Test"
         default n
         depends on RT_USING_SEMAPHORE
 
     config RT_UTEST_EVENT
-        bool "event test"
+        bool "Event Test"
         default n
         depends on RT_USING_EVENT
 
     config RT_UTEST_TIMER
-        bool "timer test"
+        bool "Timer Test"
         default n
 
     config RT_UTEST_MESSAGEQUEUE
-        bool "message queue test"
+        bool "Message Queue Test"
         default n
 
     config RT_UTEST_SIGNAL
-        bool "signal test"
+        bool "Signal Test"
         select RT_USING_SIGNALS
         default n
 
     config RT_UTEST_MUTEX
-        bool "mutex test"
+        bool "Mutex Test"
         default n
 
     config RT_UTEST_MAILBOX
-        bool "mailbox test"
+        bool "Mailbox Test"
         default n
 
     config RT_UTEST_THREAD
-        bool "thread test"
+        bool "Thread Test"
         default n
         select RT_USING_TIMER_SOFT
         select RT_USING_THREAD
 
     config RT_UTEST_ATOMIC
-        bool "atomic test"
+        bool "Atomic Test"
         default n
 
     config RT_UTEST_HOOKLIST
-        bool "hook list test"
+        bool "Hook List Test"
         select RT_USING_HOOKLIST
         default n
 
     config RT_UTEST_MTSAFE_KPRINT
-        bool "mtsafe kprint test"
+        bool "MT-Safe Kprint Test"
         default n
 
     config RT_UTEST_SCHEDULER
-        bool "scheduler test"
+        bool "Scheduler Test"
         default n
 
     config UTEST_MEMPOOL_TC
-        bool "mempool test"
+        bool "Memory Pool Test"
         default n
         depends on RT_USING_MEMPOOL
 

+ 6 - 6
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