Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 28 additions & 22 deletions Kconfig.utestcases
Original file line number Diff line number Diff line change
@@ -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

Expand Down
12 changes: 6 additions & 6 deletions components/dfs/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -11,29 +11,29 @@ 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
Enable POSIX filesystem API unit tests including file operations,
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).
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/audio/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion components/drivers/core/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
config RT_UTEST_DRIVERS_CORE
bool "Enable testcase for drivers core"
bool "Drivers Core Test"
default n
6 changes: 3 additions & 3 deletions components/drivers/ipc/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -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
22 changes: 11 additions & 11 deletions components/drivers/serial/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions components/drivers/smp_call/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions components/libc/cplusplus/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Expand Down
32 changes: 16 additions & 16 deletions components/net/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
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

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()
Expand All @@ -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
Expand All @@ -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
Expand All @@ -39,23 +39,23 @@ 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
ICMP echo requests and receive echo replies. Tests verify
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()
and getsockopt() functions. Tests verify setting and
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()
Expand All @@ -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
Expand All @@ -73,30 +73,30 @@ 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
Configure the TCP port number for unit test communication.
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
Configure the UDP port number for unit test communication.
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.
Expand All @@ -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.

Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions components/utilities/utest/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/utest/configs/kernel/mem.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/klibc/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Loading