mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
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:
@@ -4,3 +4,6 @@ components/esp_partition/host_test/partition_api_test:
|
|||||||
enable:
|
enable:
|
||||||
- if: IDF_TARGET == "linux"
|
- if: IDF_TARGET == "linux"
|
||||||
reason: only test on linux
|
reason: only test on linux
|
||||||
|
depends_components:
|
||||||
|
- spi_flash
|
||||||
|
- esp_partition
|
||||||
|
@@ -1,11 +1,41 @@
|
|||||||
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
|
# 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:
|
disable_test:
|
||||||
- if: IDF_TARGET in ["esp32s3", "esp32c2", "esp32c6", "esp32h2"]
|
- if: IDF_TARGET not in ["esp32", "esp32c3"]
|
||||||
temporary: true
|
reason: only one target per arch needed
|
||||||
reason: No sdspi runners for these targets
|
|
||||||
|
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:
|
disable:
|
||||||
- if: IDF_TARGET == "esp32p4"
|
- if: IDF_TARGET == "esp32p4"
|
||||||
temporary: true
|
temporary: true
|
||||||
reason: target esp32p4 is not supported yet # TODO: IDF-7501
|
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
|
||||||
|
@@ -5,8 +5,8 @@ import pytest
|
|||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.esp32
|
||||||
@pytest.mark.generic
|
@pytest.mark.esp32c3
|
||||||
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.expect_exact('Press ENTER to see the list of tests')
|
||||||
dut.write('')
|
dut.write('')
|
||||||
|
@@ -5,8 +5,8 @@ import pytest
|
|||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.esp32
|
||||||
@pytest.mark.generic
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'config',
|
'config',
|
||||||
[
|
[
|
||||||
@@ -23,7 +23,7 @@ def test_fatfs_flash_wl_generic(dut: Dut) -> None:
|
|||||||
dut.expect_unity_test_output(timeout=180)
|
dut.expect_unity_test_output(timeout=180)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.esp32
|
||||||
@pytest.mark.psram
|
@pytest.mark.psram
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'config',
|
'config',
|
||||||
|
@@ -6,6 +6,7 @@ from pytest_embedded import Dut
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.sdcard_sdmode
|
@pytest.mark.sdcard_sdmode
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'config',
|
'config',
|
||||||
@@ -23,7 +24,6 @@ def test_fatfs_sdcard_generic_sdmmc(dut: Dut) -> None:
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@pytest.mark.esp32s2
|
|
||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.sdcard_spimode
|
@pytest.mark.sdcard_spimode
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
@@ -1,3 +1,17 @@
|
|||||||
components/nvs_flash/host_test:
|
components/nvs_flash/host_test:
|
||||||
|
depends_components:
|
||||||
|
- spi_flash
|
||||||
|
- nvs_flash
|
||||||
|
- nvs_sec_provider
|
||||||
|
- esp_partition
|
||||||
enable:
|
enable:
|
||||||
- if: IDF_TARGET == "linux"
|
- 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"]
|
||||||
|
@@ -10,8 +10,8 @@ CONFIGS_NVS_ENCR_FLASH_ENC = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.esp32
|
||||||
@pytest.mark.generic
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.parametrize('config', ['default'], indirect=True)
|
@pytest.mark.parametrize('config', ['default'], indirect=True)
|
||||||
def test_nvs_flash(dut: IdfDut) -> None:
|
def test_nvs_flash(dut: IdfDut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.expect_exact('Press ENTER to see the list of tests')
|
||||||
|
@@ -2,3 +2,8 @@ components/spiffs/host_test:
|
|||||||
enable:
|
enable:
|
||||||
- if: IDF_TARGET == "linux"
|
- if: IDF_TARGET == "linux"
|
||||||
reason: only test on linux
|
reason: only test on linux
|
||||||
|
depends_components:
|
||||||
|
- spi_flash
|
||||||
|
- esp_partition
|
||||||
|
- spiffs
|
||||||
|
- vfs
|
||||||
|
@@ -2,3 +2,9 @@ components/spiffs/test_apps:
|
|||||||
disable_test:
|
disable_test:
|
||||||
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
|
- 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)
|
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
|
||||||
|
12
components/vfs/test_apps/.build-test-rules.yml
Normal file
12
components/vfs/test_apps/.build-test-rules.yml
Normal 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
|
@@ -9,7 +9,6 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
@pytest.mark.esp32h2
|
@pytest.mark.esp32h2
|
||||||
@pytest.mark.generic
|
|
||||||
@pytest.mark.parametrize('config', [
|
@pytest.mark.parametrize('config', [
|
||||||
'default', 'iram',
|
'default', 'iram',
|
||||||
], indirect=True)
|
], indirect=True)
|
||||||
@@ -18,8 +17,7 @@ def test_vfs_default(dut: Dut) -> None:
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@pytest.mark.esp32s2
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.generic
|
|
||||||
@pytest.mark.parametrize('config', [
|
@pytest.mark.parametrize('config', [
|
||||||
'ccomp',
|
'ccomp',
|
||||||
], indirect=True)
|
], indirect=True)
|
||||||
|
Reference in New Issue
Block a user