change(esp_driver): set cases with toppd check only run in esp32c5eco3 rather than eco2

This commit is contained in:
hebinglin
2026-02-01 11:59:16 +08:00
committed by BOT
parent dbcc949b1c
commit 21a6537e08
18 changed files with 316 additions and 24 deletions
@@ -64,7 +64,7 @@ static void test_sdm_sleep_retention(bool allow_pd)
printf("check if the sleep happened as expected\r\n");
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
#if SOC_SDM_SUPPORT_SLEEP_RETENTION && !SOC_PM_TOP_PD_NOT_ALLOWED
#if SOC_SDM_SUPPORT_SLEEP_RETENTION
// check if the power domain also is powered down
TEST_ASSERT_EQUAL(allow_pd ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
#endif
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2026 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded_idf import IdfDut
@@ -12,6 +12,7 @@ CONFIGS = [
@pytest.mark.generic
@pytest.mark.temp_skip_ci(targets=['esp32c5'], reason='c5 eco2 does not support top pd')
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
@idf_parametrize(
'target',
@@ -20,3 +21,17 @@ CONFIGS = [
)
def test_sdm(dut: IdfDut) -> None:
dut.run_all_single_board_cases(group='sdm')
@pytest.mark.generic
@pytest.mark.parametrize('config', ['iram_safe'], indirect=True)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_sdm_esp32c5(dut: IdfDut) -> None:
dut.run_all_single_board_cases(group='sdm')
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.parametrize('config', ['release'], indirect=True)
def test_sdm_esp32c5_eco3(dut: IdfDut) -> None:
dut.run_all_single_board_cases(group='sdm')