feat(storage): Update build test rules for storage related components

This commit is contained in:
Tomáš Rohlínek
2023-12-11 08:32:21 +01:00
parent c276c36dfe
commit 092f5aff29
9 changed files with 67 additions and 13 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

@@ -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)