feat(example): enable powersave CI test by soc cap

This commit is contained in:
wuzhenghui
2026-09-01 11:44:50 +08:00
parent 378590ccff
commit 5a4f4d0954
4 changed files with 18 additions and 17 deletions
@@ -5,6 +5,7 @@ import os.path
import pytest
from pytest_embedded_idf.dut import IdfDut
from pytest_embedded_idf.utils import idf_parametrize
from pytest_embedded_idf.utils import soc_filtered_targets
# @pytest.mark.supported_targets
# This test should support all targets, even between different target types
@@ -33,7 +34,7 @@ from pytest_embedded_idf.utils import idf_parametrize
)
@idf_parametrize(
'target',
['esp32', 'esp32c3', 'esp32s2', 'esp32s3', 'esp32c5', 'esp32c6', 'esp32c61'],
soc_filtered_targets('SOC_WIFI_SUPPORTED == 1 and IDF_TARGET not in ["esp32c2"]'),
indirect=['target'],
)
def test_wifi_getting_started(dut: tuple[IdfDut, IdfDut]) -> None:
@@ -6,6 +6,7 @@ from collections.abc import Callable
import pytest
from pytest_embedded import Dut
from pytest_embedded_idf.utils import idf_parametrize
from pytest_embedded_idf.utils import soc_filtered_targets
# diff of esp32s2/esp32s3 ~45K, others ~50K
@@ -20,8 +21,7 @@ DIFF_THRESHOLD = {
@pytest.mark.parametrize('count, config, skip_autoflash', [(2, 'default|enable_softap', 'y')], indirect=True)
@idf_parametrize(
'target',
# esp32s31: no two_duts runner in CI (rev_default) yet
['esp32', 'esp32c2', 'esp32c3', 'esp32s2', 'esp32s3', 'esp32c5', 'esp32c6', 'esp32c61'],
soc_filtered_targets('SOC_WIFI_SUPPORTED == 1'),
indirect=['target'],
)
def test_wifi_sdkconfig_disable_softap_save_binary_size(