Просмотр исходного кода

ci: resume esp_flash unit tests

Michael (XIAO Xufeng) 5 лет назад
Родитель
Сommit
818a2f8768
2 измененных файлов с 12 добавлено и 2 удалено
  1. 5 1
      components/spi_flash/test/CMakeLists.txt
  2. 7 1
      tools/ci/config/target-test.yml

+ 5 - 1
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)

+ 7 - 1
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: