mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
Merge branch 'test/enable_esp32s2_ut_by_default' into 'master'
CI: enable esp32s2 ut jobs by default See merge request espressif/esp-idf!9237
This commit is contained in:
@@ -35,11 +35,14 @@
|
|||||||
.if-label-unit_test: &if-label-unit_test
|
.if-label-unit_test: &if-label-unit_test
|
||||||
if: '$BOT_LABEL_UNIT_TEST'
|
if: '$BOT_LABEL_UNIT_TEST'
|
||||||
|
|
||||||
.if-label-unit_test_s2: &if-label-unit_test_s2
|
.if-label-unit_test-32: &if-label-unit_test-32
|
||||||
|
if: '$BOT_LABEL_UNIT_TEST_32'
|
||||||
|
|
||||||
|
.if-label-unit_test-s2: &if-label-unit_test-s2
|
||||||
if: '$BOT_LABEL_UNIT_TEST_S2'
|
if: '$BOT_LABEL_UNIT_TEST_S2'
|
||||||
|
|
||||||
.if-label-unit_test-all_targets: &if-label-unit_test-all_targets
|
.if-label-unit_test-all_labels: &if-label-unit_test-all_labels
|
||||||
if: '$BOT_LABEL_UNIT_TEST || $BOT_LABEL_UNIT_TEST_S2'
|
if: '$BOT_LABEL_UNIT_TEST || $BOT_LABEL_UNIT_TEST_32 || $BOT_LABEL_UNIT_TEST_S2'
|
||||||
|
|
||||||
.if-label-weekend_test: &if-label-weekend_test
|
.if-label-weekend_test: &if-label-weekend_test
|
||||||
if: '$BOT_LABEL_WEEKEND_TEST'
|
if: '$BOT_LABEL_WEEKEND_TEST'
|
||||||
@@ -176,11 +179,19 @@
|
|||||||
.rules:tests:unit_test:
|
.rules:tests:unit_test:
|
||||||
rules:
|
rules:
|
||||||
- <<: *if-protected-no_label
|
- <<: *if-protected-no_label
|
||||||
- <<: *if-label-unit_test
|
- <<: *if-label-unit_test-all_labels
|
||||||
|
|
||||||
.rules:tests:unit_test_s2-only:
|
.rules:tests:unit_test_32:
|
||||||
rules:
|
rules:
|
||||||
- <<: *if-label-unit_test_s2
|
- <<: *if-protected-no_label
|
||||||
|
- <<: *if-label-unit_test
|
||||||
|
- <<: *if-label-unit_test-32
|
||||||
|
|
||||||
|
.rules:tests:unit_test_s2:
|
||||||
|
rules:
|
||||||
|
- <<: *if-protected-no_label
|
||||||
|
- <<: *if-label-unit_test
|
||||||
|
- <<: *if-label-unit_test-s2
|
||||||
|
|
||||||
.rules:tests:integration_test:
|
.rules:tests:integration_test:
|
||||||
rules:
|
rules:
|
||||||
@@ -193,7 +204,7 @@
|
|||||||
- <<: *if-label-regular_test
|
- <<: *if-label-regular_test
|
||||||
- <<: *if-label-example_test
|
- <<: *if-label-example_test
|
||||||
- <<: *if-label-custom_test
|
- <<: *if-label-custom_test
|
||||||
- <<: *if-label-unit_test-all_targets
|
- <<: *if-label-unit_test-all_labels
|
||||||
- <<: *if-label-integration_test
|
- <<: *if-label-integration_test
|
||||||
- <<: *if-label-weekend_test
|
- <<: *if-label-weekend_test
|
||||||
|
|
||||||
@@ -216,7 +227,7 @@
|
|||||||
- <<: *if-protected-no_label
|
- <<: *if-protected-no_label
|
||||||
- <<: *if-label-build
|
- <<: *if-label-build
|
||||||
- <<: *if-label-regular_test
|
- <<: *if-label-regular_test
|
||||||
- <<: *if-label-unit_test-all_targets
|
- <<: *if-label-unit_test-all_labels
|
||||||
|
|
||||||
.rules:build_tests:example_test-weekend_test:
|
.rules:build_tests:example_test-weekend_test:
|
||||||
rules:
|
rules:
|
||||||
@@ -241,7 +252,7 @@
|
|||||||
- <<: *if-label-regular_test
|
- <<: *if-label-regular_test
|
||||||
- <<: *if-label-example_test
|
- <<: *if-label-example_test
|
||||||
- <<: *if-label-custom_test
|
- <<: *if-label-custom_test
|
||||||
- <<: *if-label-unit_test-all_targets
|
- <<: *if-label-unit_test-all_labels
|
||||||
|
|
||||||
.rules:build_tests:target_test-weekend_test:
|
.rules:build_tests:target_test-weekend_test:
|
||||||
rules:
|
rules:
|
||||||
@@ -250,5 +261,5 @@
|
|||||||
- <<: *if-label-regular_test
|
- <<: *if-label-regular_test
|
||||||
- <<: *if-label-example_test
|
- <<: *if-label-example_test
|
||||||
- <<: *if-label-custom_test
|
- <<: *if-label-custom_test
|
||||||
- <<: *if-label-unit_test-all_targets
|
- <<: *if-label-unit_test-all_labels
|
||||||
- <<: *if-label-weekend_test
|
- <<: *if-label-weekend_test
|
||||||
|
@@ -71,6 +71,16 @@
|
|||||||
# run test
|
# run test
|
||||||
- python Runner.py $COMPONENT_UT_DIRS -c $CONFIG_FILE -e $ENV_FILE
|
- python Runner.py $COMPONENT_UT_DIRS -c $CONFIG_FILE -e $ENV_FILE
|
||||||
|
|
||||||
|
.component_ut_32_template:
|
||||||
|
extends:
|
||||||
|
- .component_ut_template
|
||||||
|
- .rules:tests:unit_test_32
|
||||||
|
|
||||||
|
.component_ut_s2_template: # unused yet
|
||||||
|
extends:
|
||||||
|
- .component_ut_template
|
||||||
|
- .rules:tests:unit_test_s2
|
||||||
|
|
||||||
.unit_test_template:
|
.unit_test_template:
|
||||||
extends:
|
extends:
|
||||||
- .target_test_job_template
|
- .target_test_job_template
|
||||||
@@ -79,6 +89,16 @@
|
|||||||
TEST_CASE_PATH: "$CI_PROJECT_DIR/tools/unit-test-app"
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/tools/unit-test-app"
|
||||||
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/components/idf_test/unit_test/CIConfigs"
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/components/idf_test/unit_test/CIConfigs"
|
||||||
|
|
||||||
|
.unit_test_32_template:
|
||||||
|
extends:
|
||||||
|
- .unit_test_template
|
||||||
|
- .rules:tests:unit_test_32
|
||||||
|
|
||||||
|
.unit_test_s2_template:
|
||||||
|
extends:
|
||||||
|
- .unit_test_template
|
||||||
|
- .rules:tests:unit_test_s2
|
||||||
|
|
||||||
.integration_test_template:
|
.integration_test_template:
|
||||||
extends:
|
extends:
|
||||||
- .target_test_job_template
|
- .target_test_job_template
|
||||||
@@ -325,13 +345,13 @@ test_app_test_004:
|
|||||||
- Example_GENERIC
|
- Example_GENERIC
|
||||||
|
|
||||||
component_ut_test_001:
|
component_ut_test_001:
|
||||||
extends: .component_ut_template
|
extends: .component_ut_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32
|
- ESP32
|
||||||
- COMPONENT_UT_GENERIC
|
- COMPONENT_UT_GENERIC
|
||||||
|
|
||||||
UT_001:
|
UT_001:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
parallel: 45
|
parallel: 45
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
@@ -340,7 +360,7 @@ UT_001:
|
|||||||
# Max. allowed value of 'parallel' is 50.
|
# Max. allowed value of 'parallel' is 50.
|
||||||
|
|
||||||
UT_002:
|
UT_002:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
parallel: 13
|
parallel: 13
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
@@ -348,74 +368,74 @@ UT_002:
|
|||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_003:
|
UT_003:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
parallel: 2
|
parallel: 2
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_SDMODE
|
- UT_T1_SDMODE
|
||||||
|
|
||||||
UT_004:
|
UT_004:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_SPIMODE
|
- UT_T1_SPIMODE
|
||||||
|
|
||||||
UT_005:
|
UT_005:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_SDMODE
|
- UT_T1_SDMODE
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_006:
|
UT_006:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_SPIMODE
|
- UT_T1_SPIMODE
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_008:
|
UT_008:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_GPIO
|
- UT_T1_GPIO
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_012:
|
UT_012:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_LEDC
|
- UT_T1_LEDC
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_014:
|
UT_014:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T2_RS485
|
- UT_T2_RS485
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_015:
|
UT_015:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_RMT
|
- UT_T1_RMT
|
||||||
|
|
||||||
UT_016:
|
UT_016:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_RMT
|
- UT_T1_RMT
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_017:
|
UT_017:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- EMMC
|
- EMMC
|
||||||
|
|
||||||
UT_018:
|
UT_018:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
parallel: 2
|
parallel: 2
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
@@ -423,65 +443,60 @@ UT_018:
|
|||||||
- 8Mpsram
|
- 8Mpsram
|
||||||
|
|
||||||
UT_020:
|
UT_020:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- Example_SPI_Multi_device
|
- Example_SPI_Multi_device
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_022:
|
UT_022:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T2_I2C
|
- UT_T2_I2C
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_023:
|
UT_023:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
parallel: 2
|
parallel: 2
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_MCPWM
|
- UT_T1_MCPWM
|
||||||
|
|
||||||
UT_024:
|
UT_024:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_MCPWM
|
- UT_T1_MCPWM
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_028:
|
UT_028:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T2_1
|
- UT_T2_1
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_031:
|
UT_031:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_FlashEncryption
|
- UT_T1_FlashEncryption
|
||||||
|
|
||||||
UT_033:
|
UT_033:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T2_Ethernet
|
- UT_T2_Ethernet
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_034:
|
UT_034:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
parallel: 2
|
parallel: 2
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_ESP_FLASH
|
- UT_T1_ESP_FLASH
|
||||||
|
|
||||||
.unit_test_s2_template:
|
|
||||||
extends:
|
|
||||||
- .unit_test_template
|
|
||||||
- .rules:tests:unit_test_s2-only # due to the lack of runners, s2 tests will only be triggered by label
|
|
||||||
|
|
||||||
UT_035:
|
UT_035:
|
||||||
extends: .unit_test_s2_template
|
extends: .unit_test_s2_template
|
||||||
parallel: 46
|
parallel: 46
|
||||||
@@ -490,7 +505,7 @@ UT_035:
|
|||||||
- UT_T1_1
|
- UT_T1_1
|
||||||
|
|
||||||
UT_036:
|
UT_036:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_PSRAMV0
|
- UT_T1_PSRAMV0
|
||||||
@@ -511,34 +526,34 @@ UT_038:
|
|||||||
- UT_T1_ESP_FLASH
|
- UT_T1_ESP_FLASH
|
||||||
|
|
||||||
UT_041:
|
UT_041:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_no32kXTAL
|
- UT_T1_no32kXTAL
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_043:
|
UT_043:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_32kXTAL
|
- UT_T1_32kXTAL
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_044:
|
UT_044:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_SDIO
|
- UT_SDIO
|
||||||
|
|
||||||
UT_045:
|
UT_045:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_SDIO
|
- UT_SDIO
|
||||||
- psram
|
- psram
|
||||||
|
|
||||||
UT_046:
|
UT_046:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_32_template
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- UT_T1_GPIO
|
- UT_T1_GPIO
|
||||||
|
@@ -13,7 +13,9 @@ from idf_py_actions.constants import SUPPORTED_TARGETS, PREVIEW_TARGETS
|
|||||||
TEST_LABELS = {
|
TEST_LABELS = {
|
||||||
'example_test': 'BOT_LABEL_EXAMPLE_TEST',
|
'example_test': 'BOT_LABEL_EXAMPLE_TEST',
|
||||||
'test_apps': 'BOT_LABEL_CUSTOM_TEST',
|
'test_apps': 'BOT_LABEL_CUSTOM_TEST',
|
||||||
'component_ut': ['BOT_LABEL_UNIT_TEST', 'BOT_LABEL_UNIT_TEST_S2'],
|
'component_ut': ['BOT_LABEL_UNIT_TEST',
|
||||||
|
'BOT_LABEL_UNIT_TEST_32',
|
||||||
|
'BOT_LABEL_UNIT_TEST_S2'],
|
||||||
}
|
}
|
||||||
|
|
||||||
BUILD_ALL_LABELS = [
|
BUILD_ALL_LABELS = [
|
||||||
@@ -45,11 +47,10 @@ def _judge_build_or_not(action, build_all): # type: (str, bool) -> (bool, bool)
|
|||||||
|
|
||||||
for label in labels:
|
for label in labels:
|
||||||
if os.getenv(label):
|
if os.getenv(label):
|
||||||
logging.info('Build test cases apps')
|
logging.info('Build only test cases apps')
|
||||||
return True, False
|
return True, False
|
||||||
else:
|
logging.info('Skip all')
|
||||||
logging.info('Skip all')
|
return False, False
|
||||||
return False, False
|
|
||||||
|
|
||||||
|
|
||||||
def output_json(apps_dict_list, target, build_system, output_dir):
|
def output_json(apps_dict_list, target, build_system, output_dir):
|
||||||
|
Reference in New Issue
Block a user