mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feat(storage/fatfs): update deprecated syntax for tests
This commit is contained in:
parent
b5d78549a5
commit
ede737763c
@ -255,7 +255,7 @@ menu "FAT Filesystem support"
|
||||
It may create less fragmented file copy.
|
||||
config FATFS_USE_DYN_BUFFERS
|
||||
bool "Use dynamic buffers"
|
||||
depend on CONFIG_WL_SECTOR_SIZE_4096
|
||||
depends on CONFIG_WL_SECTOR_SIZE_4096
|
||||
default y
|
||||
help
|
||||
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
|
||||
import pytest
|
||||
from pytest_embedded import Dut
|
||||
@ -8,8 +8,4 @@ from pytest_embedded import Dut
|
||||
@pytest.mark.esp32c3
|
||||
@pytest.mark.generic
|
||||
def test_fatfs_flash_ro(dut: Dut) -> None:
|
||||
dut.expect_exact('Press ENTER to see the list of tests')
|
||||
dut.write('')
|
||||
dut.expect_exact('Enter test for running.')
|
||||
dut.write('*')
|
||||
dut.expect_unity_test_output()
|
||||
dut.run_all_single_board_cases()
|
||||
|
@ -13,15 +13,12 @@ from pytest_embedded import Dut
|
||||
'default',
|
||||
'release',
|
||||
'fastseek',
|
||||
'auto_fsync',
|
||||
'no_dyn_buffers',
|
||||
]
|
||||
)
|
||||
def test_fatfs_flash_wl_generic(dut: Dut) -> None:
|
||||
dut.expect_exact('Press ENTER to see the list of tests')
|
||||
dut.write('')
|
||||
dut.expect_exact('Enter test for running.')
|
||||
dut.write('*')
|
||||
dut.expect_unity_test_output(timeout=180)
|
||||
dut.run_all_single_board_cases(timeout=240)
|
||||
|
||||
|
||||
@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:
|
||||
dut.expect_exact('Press ENTER to see the list of tests')
|
||||
dut.write('')
|
||||
dut.expect_exact('Enter test for running.')
|
||||
dut.write('*')
|
||||
dut.expect_unity_test_output(timeout=180)
|
||||
dut.run_all_single_board_cases(timeout=180)
|
||||
|
@ -1 +1,2 @@
|
||||
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:
|
||||
dut.expect_exact('Press ENTER to see the list of tests')
|
||||
dut.write('')
|
||||
dut.expect_exact('Enter test for running.')
|
||||
dut.write('[sdmmc]')
|
||||
dut.expect_unity_test_output(timeout=180)
|
||||
dut.run_all_single_board_cases(group='sdmmc', timeout=180)
|
||||
|
||||
|
||||
@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:
|
||||
dut.expect_exact('Press ENTER to see the list of tests')
|
||||
dut.write('')
|
||||
dut.expect_exact('Enter test for running.')
|
||||
dut.write('[sdspi]')
|
||||
dut.expect_unity_test_output(timeout=180)
|
||||
dut.run_all_single_board_cases(group='sdspi', timeout=180)
|
||||
|
||||
|
||||
@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:
|
||||
dut.expect_exact('Press ENTER to see the list of tests')
|
||||
dut.write('')
|
||||
dut.expect_exact('Enter test for running.')
|
||||
dut.write('[sdmmc]')
|
||||
dut.expect_unity_test_output(timeout=180)
|
||||
dut.run_all_single_board_cases(group='sdmmc', timeout=180)
|
||||
|
||||
|
||||
@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:
|
||||
dut.expect_exact('Press ENTER to see the list of tests')
|
||||
dut.write('')
|
||||
dut.expect_exact('Enter test for running.')
|
||||
dut.write('[sdspi]')
|
||||
dut.expect_unity_test_output(timeout=180)
|
||||
dut.run_all_single_board_cases(group='sdspi', timeout=180)
|
||||
|
Loading…
Reference in New Issue
Block a user