From 945ad6ea5dc1f629d900497212785707c89c3d74 Mon Sep 17 00:00:00 2001 From: "harshal.patil" Date: Fri, 30 Aug 2024 16:27:56 +0530 Subject: [PATCH] ci(mbedtls): Enable PSRAM-related tests for ESP32-P4 and ESP32-C5 --- components/mbedtls/test_apps/pytest_mbedtls_ut.py | 11 +++++++---- .../test_apps/sdkconfig.ci.psram_all_ext_esp32p4_200m | 8 ++++++++ .../mbedtls/test_apps/sdkconfig.ci.psram_esp32p4_200m | 6 ++++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 components/mbedtls/test_apps/sdkconfig.ci.psram_all_ext_esp32p4_200m create mode 100644 components/mbedtls/test_apps/sdkconfig.ci.psram_esp32p4_200m diff --git a/components/mbedtls/test_apps/pytest_mbedtls_ut.py b/components/mbedtls/test_apps/pytest_mbedtls_ut.py index e51de7aa41..f7b1437f5a 100644 --- a/components/mbedtls/test_apps/pytest_mbedtls_ut.py +++ b/components/mbedtls/test_apps/pytest_mbedtls_ut.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD +# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: CC0-1.0 import pytest from pytest_embedded import Dut @@ -42,11 +42,13 @@ def test_mbedtls_aes_no_hw(dut: Dut) -> None: @pytest.mark.esp32 @pytest.mark.esp32s2 @pytest.mark.esp32s3 +@pytest.mark.esp32c5 @pytest.mark.generic @pytest.mark.parametrize( 'config', [ 'psram', + 'psram_all_ext', ], indirect=True, ) @@ -54,16 +56,17 @@ def test_mbedtls_psram(dut: Dut) -> None: dut.run_all_single_board_cases() -@pytest.mark.esp32 +@pytest.mark.esp32p4 @pytest.mark.generic @pytest.mark.parametrize( 'config', [ - 'psram_all_ext', + 'psram_esp32p4_200m', + 'psram_all_ext_esp32p4_200m' ], indirect=True, ) -def test_mbedtls_psram_esp32(dut: Dut) -> None: +def test_mbedtls_psram_esp32p4(dut: Dut) -> None: dut.run_all_single_board_cases() diff --git a/components/mbedtls/test_apps/sdkconfig.ci.psram_all_ext_esp32p4_200m b/components/mbedtls/test_apps/sdkconfig.ci.psram_all_ext_esp32p4_200m new file mode 100644 index 0000000000..1c29e19bb9 --- /dev/null +++ b/components/mbedtls/test_apps/sdkconfig.ci.psram_all_ext_esp32p4_200m @@ -0,0 +1,8 @@ +CONFIG_IDF_TARGET="esp32p4" +CONFIG_SPIRAM=y +CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 +CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y +CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=0 + +CONFIG_IDF_EXPERIMENTAL_FEATURES=y +CONFIG_SPIRAM_SPEED_200M=y diff --git a/components/mbedtls/test_apps/sdkconfig.ci.psram_esp32p4_200m b/components/mbedtls/test_apps/sdkconfig.ci.psram_esp32p4_200m new file mode 100644 index 0000000000..915c648d26 --- /dev/null +++ b/components/mbedtls/test_apps/sdkconfig.ci.psram_esp32p4_200m @@ -0,0 +1,6 @@ +CONFIG_IDF_TARGET="esp32p4" +CONFIG_SPIRAM=y +CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 + +CONFIG_IDF_EXPERIMENTAL_FEATURES=y +CONFIG_SPIRAM_SPEED_200M=y