Merge branch 'feature/nvs_flash_add_test_apps_dependecies' into 'master'

feat(storage): add dependencies to storage related test apps

Closes IDF-8398, IDF-8397, and IDF-8835

See merge request espressif/esp-idf!27439
This commit is contained in:
Martin Vychodil
2024-01-04 03:29:05 +08:00
11 changed files with 83 additions and 15 deletions

View File

@@ -4,3 +4,6 @@ components/esp_partition/host_test/partition_api_test:
enable:
- if: IDF_TARGET == "linux"
reason: only test on linux
depends_components:
- spi_flash
- esp_partition

View File

@@ -1,11 +1,41 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
components/fatfs/test_apps/sdcard:
components/fatfs/test_apps/flash_ro:
disable_test:
- if: IDF_TARGET in ["esp32s3", "esp32c2", "esp32c6", "esp32h2"]
temporary: true
reason: No sdspi runners for these targets
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed
depends_components:
- esp_partition
- spi_flash
- fatfs
- vfs
components/fatfs/test_apps/flash_wl:
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed
depends_components:
- esp_partition
- spi_flash
- fatfs
- vfs
- wear_leveling
components/fatfs/test_apps/sdcard:
disable:
- if: IDF_TARGET == "esp32p4"
temporary: true
reason: target esp32p4 is not supported yet # TODO: IDF-7501
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3"]
temporary: true
reason: lack of runners
depends_components:
- esp_driver_sdmmc
- esp_driver_spi
- sdmmc
- fatfs
- vfs

View File

@@ -5,8 +5,8 @@ import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.esp32
@pytest.mark.esp32c3
def test_fatfs_flash_ro(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('')

View File

@@ -5,8 +5,8 @@ import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.parametrize(
'config',
[
@@ -23,7 +23,7 @@ def test_fatfs_flash_wl_generic(dut: Dut) -> None:
dut.expect_unity_test_output(timeout=180)
@pytest.mark.supported_targets
@pytest.mark.esp32
@pytest.mark.psram
@pytest.mark.parametrize(
'config',

View File

@@ -6,6 +6,7 @@ from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.sdcard_sdmode
@pytest.mark.parametrize(
'config',
@@ -23,7 +24,6 @@ def test_fatfs_sdcard_generic_sdmmc(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32c3
@pytest.mark.sdcard_spimode
@pytest.mark.parametrize(

View File

@@ -1,3 +1,17 @@
components/nvs_flash/host_test:
depends_components:
- spi_flash
- nvs_flash
- nvs_sec_provider
- esp_partition
enable:
- if: IDF_TARGET == "linux"
components/nvs_flash/test_apps:
depends_components:
- spi_flash
- nvs_flash
- nvs_sec_provider
- esp_partition
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3"]

View File

@@ -10,8 +10,8 @@ CONFIGS_NVS_ENCR_FLASH_ENC = [
]
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.parametrize('config', ['default'], indirect=True)
def test_nvs_flash(dut: IdfDut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')

View File

@@ -2,3 +2,8 @@ components/spiffs/host_test:
enable:
- if: IDF_TARGET == "linux"
reason: only test on linux
depends_components:
- spi_flash
- esp_partition
- spiffs
- vfs

View File

@@ -2,3 +2,9 @@ components/spiffs/test_apps:
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
reason: These chips should be sufficient for test coverage (Xtensa and RISC-V, single and dual core)
depends_components:
- spi_flash
- esp_partition
- spiffs
- vfs

View File

@@ -0,0 +1,12 @@
components/vfs/test_apps:
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32s3"]
temporary: true
reason: lack of runners
depends_components:
- vfs
- fatfs
- spiffs
- console
- driver

View File

@@ -9,7 +9,6 @@ from pytest_embedded import Dut
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.generic
@pytest.mark.parametrize('config', [
'default', 'iram',
], indirect=True)
@@ -18,8 +17,7 @@ def test_vfs_default(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.generic
@pytest.mark.esp32c3
@pytest.mark.parametrize('config', [
'ccomp',
], indirect=True)