mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
ci(psram): enable xip psram test on h4
This commit is contained in:
committed by
Armando (Dou Yiwen)
parent
8f254a2056
commit
80db6f440c
@@ -3,6 +3,7 @@
|
||||
import pytest
|
||||
from pytest_embedded.dut import Dut
|
||||
from pytest_embedded_idf.utils import idf_parametrize
|
||||
from pytest_embedded_idf.utils import soc_filtered_targets
|
||||
|
||||
|
||||
@pytest.mark.generic
|
||||
@@ -14,7 +15,7 @@ from pytest_embedded_idf.utils import idf_parametrize
|
||||
],
|
||||
indirect=True,
|
||||
)
|
||||
@idf_parametrize('target', ['esp32s2', 'esp32s3', 'esp32p4', 'esp32c5', 'esp32c61'], indirect=['target'])
|
||||
@idf_parametrize('target', soc_filtered_targets('SOC_SPIRAM_XIP_SUPPORTED == 1'), indirect=['target'])
|
||||
def test_xip_from_psram_example_generic(dut: Dut) -> None:
|
||||
dut.expect_exact('found partition')
|
||||
|
||||
@@ -27,27 +28,6 @@ def test_xip_from_psram_example_generic(dut: Dut) -> None:
|
||||
assert float(response_time) <= 12
|
||||
|
||||
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize(
|
||||
'config',
|
||||
[
|
||||
'generic',
|
||||
],
|
||||
indirect=True,
|
||||
)
|
||||
@idf_parametrize('target', ['esp32s31'], indirect=['target'])
|
||||
def test_xip_from_psram_example_s31(dut: Dut) -> None:
|
||||
dut.expect_exact('found partition')
|
||||
|
||||
res = dut.expect(r'callback\(in PSRAM\) response time: (\d{1,3}) us')
|
||||
response_time = res.group(1).decode('utf8')
|
||||
assert float(response_time) <= 5
|
||||
|
||||
res = dut.expect(r'callback\(in IRAM\) response time: (\d{1,3}) us')
|
||||
response_time = res.group(1).decode('utf8')
|
||||
assert float(response_time) <= 5
|
||||
|
||||
|
||||
@pytest.mark.MSPI_F4R8
|
||||
@pytest.mark.parametrize(
|
||||
'config',
|
||||
@@ -88,3 +68,24 @@ def test_xip_from_psram_example_p4_200m(dut: Dut) -> None:
|
||||
res = dut.expect(r'callback\(in IRAM\) response time: (\d{1,3}) us')
|
||||
response_time = res.group(1).decode('utf8')
|
||||
assert float(response_time) <= 10
|
||||
|
||||
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize(
|
||||
'config',
|
||||
[
|
||||
'esp32s31_250m',
|
||||
],
|
||||
indirect=True,
|
||||
)
|
||||
@idf_parametrize('target', ['esp32s31'], indirect=['target'])
|
||||
def test_xip_from_psram_example_s31(dut: Dut) -> None:
|
||||
dut.expect_exact('found partition')
|
||||
|
||||
res = dut.expect(r'callback\(in PSRAM\) response time: (\d{1,3}) us')
|
||||
response_time = res.group(1).decode('utf8')
|
||||
assert float(response_time) <= 5
|
||||
|
||||
res = dut.expect(r'callback\(in IRAM\) response time: (\d{1,3}) us')
|
||||
response_time = res.group(1).decode('utf8')
|
||||
assert float(response_time) <= 5
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_IDF_TARGET="esp32p4"
|
||||
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
|
||||
CONFIG_SPIRAM_SPEED_200M=y
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
CONFIG_IDF_TARGET="esp32s31"
|
||||
CONFIG_SPIRAM_SPEED_250M=y
|
||||
Reference in New Issue
Block a user