2025-02-24 10:18:03 +08:00
|
|
|
# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
|
2022-10-06 13:46:01 +02:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
import pytest
|
|
|
|
from pytest_embedded import Dut
|
2025-02-24 10:18:03 +08:00
|
|
|
from pytest_embedded_idf.utils import idf_parametrize
|
2022-10-06 13:46:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.generic
|
2025-02-24 10:18:03 +08:00
|
|
|
@pytest.mark.parametrize(
|
|
|
|
'config',
|
|
|
|
[
|
|
|
|
'default',
|
|
|
|
'release',
|
|
|
|
],
|
|
|
|
indirect=True,
|
|
|
|
)
|
|
|
|
@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
|
2022-10-06 13:46:01 +02:00
|
|
|
def test_spiffs_generic(dut: Dut) -> None:
|
2024-05-06 11:12:04 +08:00
|
|
|
dut.run_all_single_board_cases(timeout=120)
|
2022-10-06 13:46:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.quad_psram
|
2025-02-24 10:18:03 +08:00
|
|
|
@pytest.mark.parametrize(
|
|
|
|
'config',
|
|
|
|
[
|
|
|
|
'psram',
|
|
|
|
],
|
|
|
|
indirect=True,
|
|
|
|
)
|
|
|
|
@idf_parametrize('target', ['esp32s3'], indirect=['target'])
|
2022-10-06 13:46:01 +02:00
|
|
|
def test_spiffs_psram(dut: Dut) -> None:
|
2024-05-06 11:12:04 +08:00
|
|
|
dut.run_all_single_board_cases(timeout=120)
|