| 1004 | } |
| 1005 | |
| 1006 | static void utest_do_tc(void) |
| 1007 | { |
| 1008 | LOG_I("==========================================="); |
| 1009 | LOG_I("Starting SAL Socket Basic API Tests"); |
| 1010 | LOG_I("==========================================="); |
| 1011 | |
| 1012 | /* Check network status before starting tests */ |
| 1013 | check_network_status(); |
| 1014 | |
| 1015 | /* Run test cases - each is independent */ |
| 1016 | UTEST_UNIT_RUN(TC_sal_socket_create); |
| 1017 | UTEST_UNIT_RUN(TC_sal_socket_bind); |
| 1018 | UTEST_UNIT_RUN(TC_sal_socket_listen); |
| 1019 | UTEST_UNIT_RUN(TC_sal_socket_connect); |
| 1020 | UTEST_UNIT_RUN(TC_sal_socket_accept); |
| 1021 | UTEST_UNIT_RUN(TC_sal_socket_send_recv); |
| 1022 | UTEST_UNIT_RUN(TC_sal_socket_udp_communication); |
| 1023 | UTEST_UNIT_RUN(TC_sal_socket_getpeername_getsockname); |
| 1024 | UTEST_UNIT_RUN(TC_sal_socket_close); |
| 1025 | |
| 1026 | LOG_I("==========================================="); |
| 1027 | LOG_I("SAL Socket Basic API Tests Completed"); |
| 1028 | LOG_I("==========================================="); |
| 1029 | } |
| 1030 | UTEST_TC_EXPORT(utest_do_tc, "components.net.sal.socket_basic", RT_NULL, RT_NULL, 30); |
nothing calls this directly
no test coverage detected