forked from espressif/esp-idf
feat(esp_pm): add cases to test coexistence of sleep and PSRAM features
This commit is contained in:
@@ -5,5 +5,5 @@ set(sources "test_app_main.c"
|
|||||||
# the component must be registered as a WHOLE_ARCHIVE
|
# the component must be registered as a WHOLE_ARCHIVE
|
||||||
idf_component_register(SRCS ${sources}
|
idf_component_register(SRCS ${sources}
|
||||||
INCLUDE_DIRS "."
|
INCLUDE_DIRS "."
|
||||||
PRIV_REQUIRES unity esp_pm ulp driver esp_timer
|
PRIV_REQUIRES unity esp_pm ulp driver esp_timer esp_psram
|
||||||
WHOLE_ARCHIVE)
|
WHOLE_ARCHIVE)
|
||||||
|
@@ -14,3 +14,31 @@ from pytest_embedded import Dut
|
|||||||
], indirect=True)
|
], indirect=True)
|
||||||
def test_esp_pm(dut: Dut) -> None:
|
def test_esp_pm(dut: Dut) -> None:
|
||||||
dut.run_all_single_board_cases()
|
dut.run_all_single_board_cases()
|
||||||
|
|
||||||
|
|
||||||
|
# psram attr tests with xip_psram
|
||||||
|
@pytest.mark.esp32s2
|
||||||
|
@pytest.mark.generic
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
'config',
|
||||||
|
[
|
||||||
|
'pm_xip_psram_esp32s2'
|
||||||
|
],
|
||||||
|
indirect=True,
|
||||||
|
)
|
||||||
|
def test_esp_attr_xip_psram_esp32s2(dut: Dut) -> None:
|
||||||
|
dut.run_all_single_board_cases()
|
||||||
|
|
||||||
|
|
||||||
|
# psram attr tests with xip_psram
|
||||||
|
@pytest.mark.esp32s3
|
||||||
|
@pytest.mark.generic
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
'config',
|
||||||
|
[
|
||||||
|
'pm_xip_psram_esp32s3'
|
||||||
|
],
|
||||||
|
indirect=True,
|
||||||
|
)
|
||||||
|
def test_esp_attr_xip_psram_esp32s3(dut: Dut) -> None:
|
||||||
|
dut.run_all_single_board_cases()
|
||||||
|
@@ -0,0 +1,6 @@
|
|||||||
|
CONFIG_IDF_TARGET="esp32s2"
|
||||||
|
CONFIG_SPIRAM=y
|
||||||
|
CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y
|
||||||
|
CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
|
||||||
|
CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y
|
||||||
|
CONFIG_SPIRAM_RODATA=y
|
@@ -0,0 +1,6 @@
|
|||||||
|
CONFIG_IDF_TARGET="esp32s3"
|
||||||
|
CONFIG_SPIRAM=y
|
||||||
|
CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y
|
||||||
|
CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
|
||||||
|
CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y
|
||||||
|
CONFIG_SPIRAM_RODATA=y
|
Reference in New Issue
Block a user