Merge branch 'test/enable_c2_target_tests' into 'master'

ci: enable target tests for ESP32-C2

Closes IDF-4989

See merge request espressif/esp-idf!18182
This commit is contained in:
morris
2022-06-03 16:41:24 +08:00
231 changed files with 1275 additions and 355 deletions
@@ -6,6 +6,7 @@
#include "esp_log.h"
#include "lwip/sockets.h"
#include "tcp_transport_fixtures.h"
#include "test_utils.h"
#define TEST_TRANSPORT_BIND_IFNAME() \
@@ -48,6 +49,8 @@ TEST_CASE("tcp_transport: connect timeout", "[tcp_transport]")
esp_transport_list_destroy(transport_list);
}
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5144
TEST_CASE("ssl_transport: connect timeout", "[tcp_transport]")
{
// Init the transport under test
@@ -120,6 +123,7 @@ TEST_CASE("ssl_transport: Keep alive test", "[tcp_transport]")
esp_transport_close(ssl);
esp_transport_list_destroy(transport_list);
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
TEST_CASE("ws_transport: Keep alive test", "[tcp_transport]")
{
@@ -150,6 +154,8 @@ TEST_CASE("ws_transport: Keep alive test", "[tcp_transport]")
esp_transport_list_destroy(transport_list);
}
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5144
// Note: This functionality is tested and kept only for compatibility reasons with IDF <= 4.x
// It is strongly encouraged to use transport within lists only
TEST_CASE("ssl_transport: Check that parameters (keepalive) are set independently on the list", "[tcp_transport]")
@@ -177,3 +183,4 @@ TEST_CASE("ssl_transport: Check that parameters (keepalive) are set independentl
esp_transport_close(ssl);
esp_transport_destroy(ssl);
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)