Merge branch 'ci/esp32c2_protocomm_ut' into 'master'

ci: Re-enable protocomm UTs for ESP32-C2

Closes IDF-5143

See merge request espressif/esp-idf!18394
This commit is contained in:
Aditya Patwardhan 2022-06-09 21:34:32 +08:00
commit 815935b01e

View File

@ -681,8 +681,6 @@ static void stop_test_service(void)
test_pc = NULL;
}
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5143
static esp_err_t test_security1_no_encryption (void)
{
ESP_LOGI(TAG, "Starting Security 1 no encryption test");
@ -1005,7 +1003,6 @@ static esp_err_t test_security1_weak_session (void)
ESP_LOGI(TAG, "Protocomm test successful");
return ESP_OK;
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
static esp_err_t test_protocomm (session_t *session)
{
@ -1055,8 +1052,6 @@ static esp_err_t test_protocomm (session_t *session)
return ESP_OK;
}
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5143
static esp_err_t test_security1 (void)
{
ESP_LOGI(TAG, "Starting Sec1 test");
@ -1087,7 +1082,6 @@ static esp_err_t test_security1 (void)
free(session);
return ESP_OK;
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
static esp_err_t test_security0 (void)
{
@ -1114,8 +1108,6 @@ static esp_err_t test_security0 (void)
return ESP_OK;
}
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5143
TEST_CASE("leak test", "[PROTOCOMM]")
{
#ifdef CONFIG_HEAP_TRACING
@ -1156,15 +1148,12 @@ TEST_CASE("leak test", "[PROTOCOMM]")
TEST_ASSERT(pre_start_mem == post_stop_mem);
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
TEST_CASE("security 0 basic test", "[PROTOCOMM]")
{
TEST_ASSERT(test_security0() == ESP_OK);
}
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5143
TEST_CASE("security 1 basic test", "[PROTOCOMM]")
{
TEST_ASSERT(test_security1() == ESP_OK);
@ -1194,4 +1183,3 @@ TEST_CASE("security 1 weak session test", "[PROTOCOMM]")
{
TEST_ASSERT(test_security1_weak_session() == ESP_OK);
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)