Skip to content

Commit d42984b

Browse files
committed
format net testcase code
1 parent 445cd09 commit d42984b

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

components/net/utest/Kconfig

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ menu "Network"
77

88
menuconfig RT_UTEST_TC_USING_NETDEV
99
select RT_USING_NETDEV
10-
bool "netdev api test"
10+
bool "Netdev API Test"
1111
help
1212
Enable netdev network device framework unit tests.
1313

@@ -23,7 +23,7 @@ menu "Network"
2323
if RT_UTEST_TC_USING_NETDEV
2424

2525
config RT_UTEST_DEFAULT_NETDEV_NAME
26-
string "Default netdev name"
26+
string "Default Netdev Name"
2727
default "e0"
2828
help
2929
Network interface name for tests. Common values:
@@ -43,7 +43,7 @@ menu "Network"
4343
if RT_UTEST_TC_USING_LWIP
4444

4545
config RT_UTEST_LWIP_DNS_TEST
46-
bool "DNS resolution test"
46+
bool "DNS Resolution Test"
4747
default y
4848
help
4949
Enable DNS resolution unit tests including gethostbyname()
@@ -53,7 +53,7 @@ menu "Network"
5353
without hardcoded IP comparisons.
5454

5555
config RT_UTEST_LWIP_TCP_TEST
56-
bool "TCP socket test"
56+
bool "TCP Socket Test"
5757
default y
5858
help
5959
Enable TCP socket unit tests including client-server communication
@@ -63,7 +63,7 @@ menu "Network"
6363
and connection management (shutdown, close).
6464

6565
config RT_UTEST_LWIP_UDP_TEST
66-
bool "UDP socket test"
66+
bool "UDP Socket Test"
6767
default y
6868
help
6969
Enable UDP socket unit tests including datagram transmission
@@ -72,23 +72,23 @@ menu "Network"
7272
functions, and timeout handling for receive operations.
7373

7474
config RT_UTEST_LWIP_ICMP_TEST
75-
bool "ICMP ping test"
75+
bool "ICMP Ping Test"
7676
default y
7777
help
7878
Enable ICMP ping unit tests using raw sockets to send
7979
ICMP echo requests and receive echo replies. Tests verify
8080
basic ICMP functionality with loopback address (127.0.0.1).
8181

8282
config RT_UTEST_LWIP_SOCKET_OPT_TEST
83-
bool "Socket options test"
83+
bool "Socket Options Test"
8484
default y
8585
help
8686
Enable socket options unit tests including setsockopt()
8787
and getsockopt() functions. Tests verify setting and
8888
retrieving socket options such as SO_REUSEADDR.
8989

9090
config RT_UTEST_LWIP_ADDR_CONV_TEST
91-
bool "Address conversion test"
91+
bool "Address Conversion Test"
9292
default y
9393
help
9494
Enable address conversion unit tests including inet_addr()
@@ -97,7 +97,7 @@ menu "Network"
9797
Tests verify proper conversion functionality.
9898

9999
config RT_UTEST_LWIP_NETIF_TEST
100-
bool "Network interface management test"
100+
bool "Network Interface Management Test"
101101
default y
102102
help
103103
Enable network interface management unit tests including
@@ -106,30 +106,30 @@ menu "Network"
106106
default interface configuration.
107107

108108
config RT_UTEST_LWIP_TCP_PORT
109-
int "TCP test port"
109+
int "TCP Test Port"
110110
default 1234
111111
range 1024 65535
112112
help
113113
Configure the TCP port number for unit test communication.
114114
Must be in the range 1024-65535 to avoid system ports
115115

116116
config RT_UTEST_LWIP_UDP_PORT
117-
int "UDP test port"
117+
int "UDP Test Port"
118118
default 1235
119119
range 1024 65535
120120
help
121121
Configure the UDP port number for unit test communication.
122122
Must be in the range 1024-65535 to avoid system ports
123123

124124
config RT_UTEST_LWIP_TEST_URL
125-
string "Test domain name"
125+
string "Test Domain Name"
126126
default "www.rt-thread.org"
127127
help
128128
Configure the domain name for DNS resolution tests.
129129
This domain will be resolved to verify DNS functionality
130130

131131
config RT_UTEST_LWIP_TEST_ADDR
132-
string "Expected IP address"
132+
string "Expected IP Address"
133133
default "180.163.146.111"
134134
help
135135
Configure the expected IP address for DNS resolution verification.
@@ -163,4 +163,4 @@ menu "Network"
163163
Ensure the device exists in your environment.
164164
endif
165165

166-
endmenu
166+
endmenu

components/net/utest/SConscript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if GetDepend('RT_UTEST_TC_USING_NETDEV'):
1414
src += ['tc_netdev.c']
1515

1616
if GetDepend('RT_UTEST_TC_USING_SAL'):
17+
# Add sal test source if enabled
1718
src += ['tc_sal_socket.c']
1819

1920
# Define the test group with proper dependencies

0 commit comments

Comments
 (0)