mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
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:
@@ -681,8 +681,6 @@ static void stop_test_service(void)
|
|||||||
test_pc = NULL;
|
test_pc = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
|
|
||||||
//IDF-5143
|
|
||||||
static esp_err_t test_security1_no_encryption (void)
|
static esp_err_t test_security1_no_encryption (void)
|
||||||
{
|
{
|
||||||
ESP_LOGI(TAG, "Starting Security 1 no encryption test");
|
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");
|
ESP_LOGI(TAG, "Protocomm test successful");
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
|
|
||||||
|
|
||||||
static esp_err_t test_protocomm (session_t *session)
|
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;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
|
|
||||||
//IDF-5143
|
|
||||||
static esp_err_t test_security1 (void)
|
static esp_err_t test_security1 (void)
|
||||||
{
|
{
|
||||||
ESP_LOGI(TAG, "Starting Sec1 test");
|
ESP_LOGI(TAG, "Starting Sec1 test");
|
||||||
@@ -1087,7 +1082,6 @@ static esp_err_t test_security1 (void)
|
|||||||
free(session);
|
free(session);
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
|
|
||||||
|
|
||||||
static esp_err_t test_security0 (void)
|
static esp_err_t test_security0 (void)
|
||||||
{
|
{
|
||||||
@@ -1114,8 +1108,6 @@ static esp_err_t test_security0 (void)
|
|||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
|
|
||||||
//IDF-5143
|
|
||||||
TEST_CASE("leak test", "[PROTOCOMM]")
|
TEST_CASE("leak test", "[PROTOCOMM]")
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_HEAP_TRACING
|
#ifdef CONFIG_HEAP_TRACING
|
||||||
@@ -1156,15 +1148,12 @@ TEST_CASE("leak test", "[PROTOCOMM]")
|
|||||||
|
|
||||||
TEST_ASSERT(pre_start_mem == post_stop_mem);
|
TEST_ASSERT(pre_start_mem == post_stop_mem);
|
||||||
}
|
}
|
||||||
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
|
|
||||||
|
|
||||||
TEST_CASE("security 0 basic test", "[PROTOCOMM]")
|
TEST_CASE("security 0 basic test", "[PROTOCOMM]")
|
||||||
{
|
{
|
||||||
TEST_ASSERT(test_security0() == ESP_OK);
|
TEST_ASSERT(test_security0() == ESP_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
|
|
||||||
//IDF-5143
|
|
||||||
TEST_CASE("security 1 basic test", "[PROTOCOMM]")
|
TEST_CASE("security 1 basic test", "[PROTOCOMM]")
|
||||||
{
|
{
|
||||||
TEST_ASSERT(test_security1() == ESP_OK);
|
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);
|
TEST_ASSERT(test_security1_weak_session() == ESP_OK);
|
||||||
}
|
}
|
||||||
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
|
|
||||||
|
Reference in New Issue
Block a user