Skip to content

Commit

Permalink
Merge branch 'feature/update_strorage_test_config_v5.2' into 'release…
Browse files Browse the repository at this point in the history
…/v5.2'

feat(storage): update config for app tests (v5.2)

See merge request espressif/esp-idf!27805
  • Loading branch information
igrr committed Dec 11, 2023
2 parents a36d8bc + ad25a90 commit 8f79c54
Show file tree
Hide file tree
Showing 31 changed files with 139 additions and 145 deletions.
196 changes: 97 additions & 99 deletions examples/storage/.build-test-rules.yml
Original file line number Diff line number Diff line change
@@ -1,117 +1,113 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps

examples/storage/custom_flash_driver:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- spi_flash
- driver
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed

examples/storage/emmc:
depends_components:
- sdmmc
- driver
- fatfs
- vfs
enable:
- if: IDF_TARGET == "esp32s3"
reason: only support on esp32s3

examples/storage/ext_flash_fatfs:
depends_components:
- fatfs
- vfs
- spi_flash
- driver
disable:
- if: IDF_TARGET in ["esp32c2", "esp32c6", "esp32h2", "esp32p4"]
temporary: true
reason: target(s) not supported yet
- if: IDF_TARGET == "esp32p4"
reason: not supported yet
disable_test:
- if: IDF_TARGET in ["esp32c3", "esp32s2", "esp32s3"]
- if: IDF_TARGET not in ["esp32"]
temporary: true
reason: lack of runners

examples/storage/fatfsgen:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- fatfs
- vfs
disable_test:
- if: IDF_TARGET in ["esp32c3", "esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET != "esp32"
reason: only one target needed

examples/storage/nvs_rw_blob:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- nvs_flash
- driver
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed

examples/storage/nvs_rw_value:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- nvs_flash
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed

examples/storage/nvs_rw_value_cxx:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- nvs_flash
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed

examples/storage/nvsgen:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- nvs_flash
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners, should be same for every target
- if: IDF_TARGET != "esp32"
reason: only one target needed

examples/storage/partition_api/partition_find:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- esp_partition
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed

examples/storage/partition_api/partition_mmap:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- esp_partition
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed

examples/storage/partition_api/partition_ops:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- esp_partition
- spi_flash
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed

examples/storage/parttool:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- partition_table
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET != "esp32"
reason: only one target needed

examples/storage/perf_benchmark:
depends_components:
- fatfs
- spi_flash
- vfs
- sdmmc
- spiffs
- wear_levelling
- esp_partition
- driver
disable:
- if: IDF_TARGET == "esp32p4" and CONFIG_NAME in ["sdmmc_1line", "sdmmc_4line", "sdspi_1line"]
temporary: true
Expand All @@ -122,57 +118,59 @@ examples/storage/perf_benchmark:
reason: SPIFLASH not supported on P4 yet, only build stage enabled # TODO: IDF-7499

examples/storage/sd_card/sdmmc:
depends_components:
- vfs
- sdmmc
- driver
disable:
- if: SOC_SDMMC_HOST_SUPPORTED != 1
disable_test:
- if: IDF_TARGET == "esp32s3"
- if: IDF_TARGET not in ["esp32"]
temporary: true
reason: lack of runners

examples/storage/sd_card/sdspi:
depends_components:
- vfs
- sdmmc
- driver
disable:
- if: SOC_GPSPI_SUPPORTED != 1
disable_test:
- if: IDF_TARGET in ["esp32s3", "esp32c2", "esp32c6", "esp32h2", "esp32p4"]
- if: IDF_TARGET not in ["esp32", "esp32c3"]
temporary: true
reason: lack of runners

examples/storage/semihost_vfs:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- vfs
disable_test:
- if: IDF_TARGET in ["esp32c3", "esp32s2", "esp32s3", "esp32c6", "esp32h2"]
- if: IDF_TARGET not in ["esp32"]
temporary: true
reason: lack of runners

examples/storage/spiffs:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- spiffs
- vfs
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed

examples/storage/spiffsgen:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- spiffs
- vfs
- mbedtls
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET != "esp32"
reason: only one target needed

examples/storage/wear_levelling:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
depends_components:
- vfs
- wear_levelling
- fatfs
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3", "esp32c6", "esp32h2"]
temporary: true
reason: lack of runners
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed
4 changes: 2 additions & 2 deletions examples/storage/custom_flash_driver/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |

# Custom Flash Driver Example

Expand Down
4 changes: 2 additions & 2 deletions examples/storage/ext_flash_fatfs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |

# FAT FS on External Flash example

Expand Down
2 changes: 1 addition & 1 deletion examples/storage/ext_flash_fatfs/pytest_ext_flash_fatfs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0


Expand Down
4 changes: 2 additions & 2 deletions examples/storage/fatfsgen/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |

# FATFS partition generation example

Expand Down
1 change: 0 additions & 1 deletion examples/storage/fatfsgen/main/fatfsgen_example_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <string.h>
#include "esp_vfs.h"
#include "esp_vfs_fat.h"
#include "esp_system.h"
#include "sdkconfig.h"

#if CONFIG_EXAMPLE_FATFS_MODE_READ_ONLY
Expand Down
2 changes: 1 addition & 1 deletion examples/storage/fatfsgen/pytest_fatfsgen_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0

import os
Expand Down
4 changes: 2 additions & 2 deletions examples/storage/nvs_rw_blob/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |

# Non-Volatile Storage (NVS) Read and Write Example

Expand Down
2 changes: 1 addition & 1 deletion examples/storage/nvs_rw_blob/pytest_nvs_rw_blob.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0

import logging
Expand Down
4 changes: 2 additions & 2 deletions examples/storage/nvs_rw_value/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |

# Non-Volatile Storage (NVS) Read and Write Example

Expand Down
2 changes: 1 addition & 1 deletion examples/storage/nvs_rw_value/pytest_nvs_rw_value.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0

import logging
Expand Down
4 changes: 2 additions & 2 deletions examples/storage/nvs_rw_value_cxx/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |

# Non-Volatile Storage (NVS) C++ Read and Write Example

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0

import logging
Expand Down
4 changes: 2 additions & 2 deletions examples/storage/nvsgen/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |

# NVS Partition Image Generation on Build Example

Expand Down
4 changes: 2 additions & 2 deletions examples/storage/partition_api/partition_find/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |

# Finding Partitions Example

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0

import re
Expand Down
4 changes: 2 additions & 2 deletions examples/storage/partition_api/partition_mmap/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |

# Partition Memory Map Example

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0

import re
Expand Down
Loading

0 comments on commit 8f79c54

Please sign in to comment.