flash mmap: more config option for flash mmap test app

This commit is contained in:
jiangguangming 2023-01-10 19:52:03 +08:00
parent d7a390049d
commit 232da4ca72
4 changed files with 50 additions and 3 deletions

View File

@ -16,6 +16,46 @@ from pytest_embedded import Dut
indirect=True,
)
def test_flash_mmap(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output(timeout=120)
dut.run_all_single_board_cases(timeout=30)
@pytest.mark.esp32s3
@pytest.mark.esp32c3
@pytest.mark.esp32c2
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'rom_impl',
],
indirect=True,
)
def test_flash_mmap_rom_impl(dut: Dut) -> None:
dut.run_all_single_board_cases(timeout=30)
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'xip_psram',
],
indirect=True,
)
def test_flash_mmap_xip_psram(dut: Dut) -> None:
dut.run_all_single_board_cases(timeout=30)
@pytest.mark.esp32s3
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'xip_psram_with_rom_impl',
],
indirect=True,
)
def test_flash_mmap_xip_psram_rom_impl(dut: Dut) -> None:
dut.run_all_single_board_cases(timeout=30)

View File

@ -0,0 +1 @@
CONFIG_SPI_FLASH_ROM_IMPL=y

View File

@ -0,0 +1,2 @@
CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y
CONFIG_SPIRAM_RODATA=y

View File

@ -0,0 +1,4 @@
CONFIG_IDF_TARGET="esp32s3"
CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y
CONFIG_SPIRAM_RODATA=y
CONFIG_SPI_FLASH_ROM_IMPL=y