forked from espressif/esp-idf
feat(storage/fatfs): update deprecated syntax for tests
This commit is contained in:
@@ -255,7 +255,7 @@ menu "FAT Filesystem support"
|
|||||||
It may create less fragmented file copy.
|
It may create less fragmented file copy.
|
||||||
config FATFS_USE_DYN_BUFFERS
|
config FATFS_USE_DYN_BUFFERS
|
||||||
bool "Use dynamic buffers"
|
bool "Use dynamic buffers"
|
||||||
depend on CONFIG_WL_SECTOR_SIZE_4096
|
depends on CONFIG_WL_SECTOR_SIZE_4096
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
If enabled, the buffers used by FATFS will be allocated separately from the rest of the structure.
|
If enabled, the buffers used by FATFS will be allocated separately from the rest of the structure.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
import pytest
|
import pytest
|
||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
@@ -8,8 +8,4 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_fatfs_flash_ro(dut: Dut) -> None:
|
def test_fatfs_flash_ro(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('')
|
|
||||||
dut.expect_exact('Enter test for running.')
|
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@@ -13,15 +13,12 @@ from pytest_embedded import Dut
|
|||||||
'default',
|
'default',
|
||||||
'release',
|
'release',
|
||||||
'fastseek',
|
'fastseek',
|
||||||
|
'auto_fsync',
|
||||||
'no_dyn_buffers',
|
'no_dyn_buffers',
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
def test_fatfs_flash_wl_generic(dut: Dut) -> None:
|
def test_fatfs_flash_wl_generic(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(timeout=240)
|
||||||
dut.write('')
|
|
||||||
dut.expect_exact('Enter test for running.')
|
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output(timeout=180)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@@ -34,8 +31,4 @@ def test_fatfs_flash_wl_generic(dut: Dut) -> None:
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
def test_fatfs_flash_wl_psram(dut: Dut) -> None:
|
def test_fatfs_flash_wl_psram(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(timeout=180)
|
||||||
dut.write('')
|
|
||||||
dut.expect_exact('Enter test for running.')
|
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output(timeout=180)
|
|
||||||
|
@@ -1 +1,2 @@
|
|||||||
CONFIG_FATFS_IMMEDIATE_FSYNC=y
|
CONFIG_FATFS_IMMEDIATE_FSYNC=y
|
||||||
|
CONFIG_ESP_MAIN_TASK_STACK_SIZE=4096
|
||||||
|
@@ -15,11 +15,7 @@ from pytest_embedded import Dut
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
def test_fatfs_sdcard_generic_sdmmc(dut: Dut) -> None:
|
def test_fatfs_sdcard_generic_sdmmc(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(group='sdmmc', timeout=180)
|
||||||
dut.write('')
|
|
||||||
dut.expect_exact('Enter test for running.')
|
|
||||||
dut.write('[sdmmc]')
|
|
||||||
dut.expect_unity_test_output(timeout=180)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@@ -34,11 +30,7 @@ def test_fatfs_sdcard_generic_sdmmc(dut: Dut) -> None:
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
def test_fatfs_sdcard_generic_sdspi(dut: Dut) -> None:
|
def test_fatfs_sdcard_generic_sdspi(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(group='sdspi', timeout=180)
|
||||||
dut.write('')
|
|
||||||
dut.expect_exact('Enter test for running.')
|
|
||||||
dut.write('[sdspi]')
|
|
||||||
dut.expect_unity_test_output(timeout=180)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@@ -51,11 +43,7 @@ def test_fatfs_sdcard_generic_sdspi(dut: Dut) -> None:
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
def test_fatfs_sdcard_psram_sdmmc(dut: Dut) -> None:
|
def test_fatfs_sdcard_psram_sdmmc(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(group='sdmmc', timeout=180)
|
||||||
dut.write('')
|
|
||||||
dut.expect_exact('Enter test for running.')
|
|
||||||
dut.write('[sdmmc]')
|
|
||||||
dut.expect_unity_test_output(timeout=180)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@@ -69,8 +57,4 @@ def test_fatfs_sdcard_psram_sdmmc(dut: Dut) -> None:
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
def test_fatfs_sdcard_psram_sdspi(dut: Dut) -> None:
|
def test_fatfs_sdcard_psram_sdspi(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases(group='sdspi', timeout=180)
|
||||||
dut.write('')
|
|
||||||
dut.expect_exact('Enter test for running.')
|
|
||||||
dut.write('[sdspi]')
|
|
||||||
dut.expect_unity_test_output(timeout=180)
|
|
||||||
|
Reference in New Issue
Block a user