Skip to content

Commit

Permalink
Merge branch 'feature/re_enable_mbedtls_testapp_on_p4' into 'master'
Browse files Browse the repository at this point in the history
feat: re enables tests on p4

Closes IDF-8982

See merge request espressif/esp-idf!29150
  • Loading branch information
mahavirj committed Mar 5, 2024
2 parents 6551548 + f6a7fb1 commit 9f4e8eb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
4 changes: 4 additions & 0 deletions components/esp_system/port/soc/esp32p4/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "soc/rtc.h"
#include "soc/rtc_periph.h"
#include "soc/i2s_reg.h"
#include "soc/hp_sys_clkrst_reg.h"
#include "esp_cpu.h"
#include "hal/wdt_hal.h"
#include "esp_private/esp_modem_clock.h"
Expand Down Expand Up @@ -100,6 +101,9 @@ __attribute__((weak)) void esp_clk_init(void)

// Re calculate the ccount to make time calculation correct.
esp_cpu_set_cycle_count((uint64_t)esp_cpu_get_cycle_count() * new_freq_mhz / old_freq_mhz);

// Set crypto clock (`clk_sec`) to use 240M PLL clock
REG_SET_FIELD(HP_SYS_CLKRST_PERI_CLK_CTRL25_REG, HP_SYS_CLKRST_REG_CRYPTO_CLK_SRC_SEL, 0x2);
}

static void select_rtc_slow_clk(soc_rtc_slow_clk_src_t rtc_slow_clk_src)
Expand Down
4 changes: 0 additions & 4 deletions components/hal/.build-test-rules.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
components/hal/test_apps/crypto:
disable_test:
- if: IDF_TARGET == "esp32p4"
temporary: true
reason: test not pass, should be re-enable # TODO: IDF-8982
depends_components:
- efuse

Expand Down
2 changes: 0 additions & 2 deletions components/hal/test_apps/crypto/pytest_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from pytest_embedded import Dut


@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='esp32p4 support TBD') # TODO: IDF-8982
@pytest.mark.supported_targets
@pytest.mark.generic
def test_crypto(dut: Dut) -> None:
Expand All @@ -17,7 +16,6 @@ def test_crypto(dut: Dut) -> None:
dut.expect('Tests finished', timeout=timeout)


@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='esp32p4 support TBD') # TODO: IDF-8982
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize('config', ['long_aes_operations'], indirect=True)
Expand Down
4 changes: 0 additions & 4 deletions components/mbedtls/test_apps/.build-test-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ components/mbedtls/test_apps:
- if: CONFIG_NAME == "psram" and SOC_SPIRAM_SUPPORTED != 1
- if: CONFIG_NAME == "psram_all_ext" and SOC_SPIRAM_SUPPORTED != 1
- if: CONFIG_NAME == "ecdsa_sign" and SOC_ECDSA_SUPPORTED != 1
disable_test:
- if: IDF_TARGET == "esp32p4"
temporary: true
reason: test not pass, should be re-enable # TODO: IDF-8982
depends_components:
- efuse
depends_filepatterns:
Expand Down
2 changes: 0 additions & 2 deletions components/mbedtls/test_apps/pytest_mbedtls_ut.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0

import pytest
from pytest_embedded import Dut


@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='esp32p4 support TBD') # TODO: IDF-8982
@pytest.mark.supported_targets
@pytest.mark.generic
def test_mbedtls(dut: Dut) -> None:
Expand Down

0 comments on commit 9f4e8eb

Please sign in to comment.