From 818a2f876844ae3b77b73a91f2c3530b50ccb77d Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Mon, 27 Jul 2020 09:28:58 +0800 Subject: [PATCH] ci: resume esp_flash unit tests --- components/spi_flash/test/CMakeLists.txt | 6 +++++- tools/ci/config/target-test.yml | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/components/spi_flash/test/CMakeLists.txt b/components/spi_flash/test/CMakeLists.txt index 7c5bc7fe8..557fd2c71 100644 --- a/components/spi_flash/test/CMakeLists.txt +++ b/components/spi_flash/test/CMakeLists.txt @@ -1,4 +1,8 @@ +if(CONFIG_SPI_FLASH_USE_LEGACY_IMPL) + set(exclude_srcs "test_esp_flash.c" "test_partition_ext.c") +endif() + idf_component_register(SRC_DIRS "." INCLUDE_DIRS "." - EXCLUDE_SRCS "test_esp_flash.c" "test_partition_ext.c" + EXCLUDE_SRCS "${exclude_srcs}" REQUIRES unity test_utils spi_flash bootloader_support app_update) diff --git a/tools/ci/config/target-test.yml b/tools/ci/config/target-test.yml index 9fb302920..94439ed10 100644 --- a/tools/ci/config/target-test.yml +++ b/tools/ci/config/target-test.yml @@ -233,7 +233,7 @@ UT_001: UT_002: extends: .unit_test_template - parallel: 9 + parallel: 10 tags: - ESP32_IDF - UT_T1_1 @@ -370,6 +370,12 @@ UT_033: - UT_T2_Ethernet - psram +UT_034: + extends: .unit_test_template + tags: + - ESP32_IDF + - UT_T1_ESP_FLASH + UT_035: extends: .unit_test_template tags: