|
1 | | -if RT_USING_LWIP |
2 | | - menu "LwIP" |
| 1 | +menu "Network" |
3 | 2 |
|
4 | | - config RT_UTEST_TC_USING_LWIP |
5 | | - bool "lwIP API Test" |
| 3 | + config RT_UTEST_TC_USING_SAL |
| 4 | + select RT_USING_SAL |
| 5 | + bool "SAL Unit Testcase" |
| 6 | + default n |
| 7 | + |
| 8 | + menuconfig RT_UTEST_TC_USING_NETDEV |
| 9 | + select RT_USING_NETDEV |
| 10 | + bool "Netdev API Test" |
| 11 | + help |
| 12 | + Enable netdev network device framework unit tests. |
| 13 | + |
| 14 | + Test coverage includes: |
| 15 | + * Network connectivity (ping operations) |
| 16 | + * DHCP functionality (enable/disable/restore) |
| 17 | + * DNS configuration and hostname resolution |
| 18 | + * Interface configuration (IP/gateway/netmask) |
| 19 | + * IP address conversion functions |
| 20 | + * Device retrieval and management |
| 21 | + * Status control and callback mechanisms |
| 22 | + |
| 23 | + if RT_UTEST_TC_USING_NETDEV |
| 24 | + |
| 25 | + config RT_UTEST_DEFAULT_NETDEV_NAME |
| 26 | + string "Default Netdev Name" |
| 27 | + default "e0" |
| 28 | + help |
| 29 | + Network interface name for tests. Common values: |
| 30 | + "e0" (Ethernet), "w0" (Wireless). |
| 31 | + Ensure the device exists in your environment. |
| 32 | + endif |
| 33 | + |
| 34 | + menuconfig RT_UTEST_TC_USING_LWIP |
| 35 | + select RT_USING_LWIP |
| 36 | + select RT_LWIP_NETIF_LOOPBACK |
| 37 | + bool "lwIP Unit Testcase" |
| 38 | + default n |
6 | 39 | help |
7 | 40 | Enable lwIP network stack unit tests including DNS resolution, |
8 | 41 | TCP/UDP socket operations, and network interface tests |
@@ -103,35 +136,5 @@ if RT_USING_LWIP |
103 | 136 | This should match the actual IP of the test domain |
104 | 137 |
|
105 | 138 | endif |
106 | | - endmenu |
107 | | -endif |
108 | 139 |
|
109 | | -if RT_USING_NETDEV |
110 | | - menu "Netdev" |
111 | | - |
112 | | - config RT_UTEST_TC_USING_NETDEV |
113 | | - bool "Netdev API Test" |
114 | | - help |
115 | | - Enable netdev network device framework unit tests. |
116 | | - |
117 | | - Test coverage includes: |
118 | | - * Network connectivity (ping operations) |
119 | | - * DHCP functionality (enable/disable/restore) |
120 | | - * DNS configuration and hostname resolution |
121 | | - * Interface configuration (IP/gateway/netmask) |
122 | | - * IP address conversion functions |
123 | | - * Device retrieval and management |
124 | | - * Status control and callback mechanisms |
125 | | - |
126 | | - if RT_UTEST_TC_USING_NETDEV |
127 | | - |
128 | | - config RT_UTEST_DEFAULT_NETDEV_NAME |
129 | | - string "Default Netdev Name" |
130 | | - default "e0" |
131 | | - help |
132 | | - Network interface name for tests. Common values: |
133 | | - "e0" (Ethernet), "w0" (Wireless). |
134 | | - Ensure the device exists in your environment. |
135 | | - endif |
136 | | - endmenu |
137 | | -endif |
| 140 | +endmenu |
0 commit comments