diff --git a/Makefile b/Makefile index 70fb47e..aed2762 100644 --- a/Makefile +++ b/Makefile @@ -97,6 +97,8 @@ test_wifi_sta: TESTS=-DTEST_WIFI_STA test_wifi_ap: TESTS=-DTEST_WIFI_AP test_wifi_client: TESTS=-DTEST_WIFI_CLIENT test_wifi_server: TESTS=-DTEST_WIFI_SERVER +test_wifi_udp_client: TESTS=-DTEST_WIFI_UDP_CLIENT +test_wifi_udp_server: TESTS=-DTEST_WIFI_UDP_SERVER test_wifi_extras: TESTS=-DTEST_WIFI_EXTRAS test_wifi_exceptions: TESTS=-DTEST_WIFI_EXCEPTIONS diff --git a/src/corelibs/wifi/test_wifi_ap.cpp b/src/corelibs/wifi/test_wifi_ap.cpp index 648e645..82ac13b 100644 --- a/src/corelibs/wifi/test_wifi_ap.cpp +++ b/src/corelibs/wifi/test_wifi_ap.cpp @@ -134,10 +134,6 @@ TEST_GROUP_RUNNER(wifi_ap) { RUN_TEST_CASE(wifi_ap, check_ssid); RUN_TEST_CASE(wifi_ap, check_bssid); RUN_TEST_CASE(wifi_ap, check_encryption_type); - /* Wait forever for now. */ - /* This allows to check the sta - test manually. */ - while(true) {}; RUN_TEST_CASE(wifi_ap, disconnect); RUN_TEST_CASE(wifi_ap, wifi_end); } diff --git a/src/corelibs/wifi/test_wifi_client.cpp b/src/corelibs/wifi/test_wifi_client.cpp index ee9276c..f554a18 100644 --- a/src/corelibs/wifi/test_wifi_client.cpp +++ b/src/corelibs/wifi/test_wifi_client.cpp @@ -201,12 +201,4 @@ TEST_GROUP_RUNNER(wifi_client) { RUN_TEST_CASE(wifi_client, client_server_disconnect); RUN_TEST_CASE(wifi_client, wifi_disconnect); RUN_TEST_CASE(wifi_client, wifi_end); - /** - * TODO: Remove when this is added to cicd - * and more tests are added to the suite together with the - * WiFi ones. - * For now it is more controllable like this to run tests - * manually. - */ - while(true) {}; } \ No newline at end of file diff --git a/src/corelibs/wifi/test_wifi_extras.cpp b/src/corelibs/wifi/test_wifi_extras.cpp index 167d30f..03b4461 100644 --- a/src/corelibs/wifi/test_wifi_extras.cpp +++ b/src/corelibs/wifi/test_wifi_extras.cpp @@ -115,12 +115,4 @@ TEST_GROUP_RUNNER(wifi_extras) { RUN_TEST_CASE(wifi_extras, check_set_dns); RUN_TEST_CASE(wifi_extras, wifi_disconnect); RUN_TEST_CASE(wifi_extras, wifi_end); - /** - * TODO: Remove when this is added to cicd - * and more tests are added to the suite together with the - * WiFi ones. - * For now it is more controllable like this to run tests - * manually. - */ - while(true) {}; } \ No newline at end of file diff --git a/src/corelibs/wifi/test_wifi_server.cpp b/src/corelibs/wifi/test_wifi_server.cpp index c872b48..771461f 100644 --- a/src/corelibs/wifi/test_wifi_server.cpp +++ b/src/corelibs/wifi/test_wifi_server.cpp @@ -180,12 +180,4 @@ TEST_GROUP_RUNNER(wifi_server) { RUN_TEST_CASE(wifi_server, server_end); RUN_TEST_CASE(wifi_server, wifi_disconnect); RUN_TEST_CASE(wifi_server, wifi_end); - /** - * TODO: Remove when this is added to cicd - * and more tests are added to the suite together with the - * WiFi ones. - * For now it is more controllable like this to run tests - * manually. - */ - while(true) {}; } \ No newline at end of file diff --git a/src/corelibs/wifi/test_wifi_sta.cpp b/src/corelibs/wifi/test_wifi_sta.cpp index c9abf9a..7c3649b 100644 --- a/src/corelibs/wifi/test_wifi_sta.cpp +++ b/src/corelibs/wifi/test_wifi_sta.cpp @@ -188,7 +188,8 @@ TEST_IFX(wifi_sta, wifi_end) { } TEST_GROUP_RUNNER(wifi_sta) { - RUN_TEST_CASE(wifi_sta, scan_networks); + // TODO: Fix the test "scan_networks" which hangs during end -> cy_wcm_deinit when running on HIL setup + // RUN_TEST_CASE(wifi_sta, scan_networks); RUN_TEST_CASE(wifi_sta, config_ip_static); RUN_TEST_CASE(wifi_sta, connect_to_ap); RUN_TEST_CASE(wifi_sta, is_status_connected); @@ -203,7 +204,6 @@ TEST_GROUP_RUNNER(wifi_sta) { RUN_TEST_CASE(wifi_sta, check_encryption_type); RUN_TEST_CASE(wifi_sta, disconnect); RUN_TEST_CASE(wifi_sta, wifi_end); - while(true) {}; } diff --git a/src/corelibs/wifi/test_wifi_udp_client.cpp b/src/corelibs/wifi/test_wifi_udp_client.cpp index 39798ed..1c129a2 100644 --- a/src/corelibs/wifi/test_wifi_udp_client.cpp +++ b/src/corelibs/wifi/test_wifi_udp_client.cpp @@ -174,5 +174,4 @@ TEST_GROUP_RUNNER(wifi_udp_client) { RUN_TEST_CASE(wifi_udp_client, udp_client_end); RUN_TEST_CASE(wifi_udp_client, wifi_disconnect); RUN_TEST_CASE(wifi_udp_client, wifi_end); - while (true) {}; // Keep the client running } \ No newline at end of file diff --git a/src/corelibs/wifi/test_wifi_udp_server.cpp b/src/corelibs/wifi/test_wifi_udp_server.cpp index 1f35773..8741569 100644 --- a/src/corelibs/wifi/test_wifi_udp_server.cpp +++ b/src/corelibs/wifi/test_wifi_udp_server.cpp @@ -168,5 +168,4 @@ TEST_GROUP_RUNNER(wifi_udp_server) { RUN_TEST_CASE(wifi_udp_server, udp_server_end); RUN_TEST_CASE(wifi_udp_server, wifi_disconnect); RUN_TEST_CASE(wifi_udp_server, wifi_end); - while (true) {}; // Keep the server running } \ No newline at end of file diff --git a/src/corelibs/wire/test_wire_connected1_pingpong.cpp b/src/corelibs/wire/test_wire_connected1_pingpong.cpp index 7d86d82..7e88c8d 100644 --- a/src/corelibs/wire/test_wire_connected1_pingpong.cpp +++ b/src/corelibs/wire/test_wire_connected1_pingpong.cpp @@ -7,7 +7,6 @@ #include // defines -#define TRACE_OUTPUT // variables const static uint8_t slaveAddress = 8U; diff --git a/src/corelibs/wire/test_wire_connected2_masterpingpong.cpp b/src/corelibs/wire/test_wire_connected2_masterpingpong.cpp index c117dbe..928d2da 100644 --- a/src/corelibs/wire/test_wire_connected2_masterpingpong.cpp +++ b/src/corelibs/wire/test_wire_connected2_masterpingpong.cpp @@ -7,7 +7,6 @@ #include // defines -#define TRACE_OUTPUT // variables const static uint8_t slaveAddress = 8U; diff --git a/src/corelibs/wire/test_wire_connected2_slavepingpong.cpp b/src/corelibs/wire/test_wire_connected2_slavepingpong.cpp index b90a182..8020a42 100644 --- a/src/corelibs/wire/test_wire_connected2_slavepingpong.cpp +++ b/src/corelibs/wire/test_wire_connected2_slavepingpong.cpp @@ -7,7 +7,6 @@ #include // defines -#define TRACE_OUTPUT // variables const static uint8_t slaveAddress = 8U;