2019-06-29 00:39:21 +08:00
|
|
|
# for parallel jobs, CI_JOB_NAME will be "job_name index/total" (for example, "IT_001 1/2")
|
|
|
|
# we need to convert to pattern "job_name_index.yml"
|
|
|
|
.define_config_file_name: &define_config_file_name |
|
2020-09-27 11:20:53 +08:00
|
|
|
JOB_NAME_PREFIX=$(echo ${CI_JOB_NAME} | awk '{print $1}')
|
|
|
|
JOB_FULL_NAME="${JOB_NAME_PREFIX}_${CI_NODE_INDEX}"
|
|
|
|
CONFIG_FILE="${CONFIG_FILE_PATH}/${JOB_FULL_NAME}.yml"
|
2019-06-29 00:39:21 +08:00
|
|
|
|
2020-09-27 11:20:53 +08:00
|
|
|
.target_test_job_template:
|
2019-06-29 00:39:21 +08:00
|
|
|
stage: target_test
|
2020-09-27 11:20:53 +08:00
|
|
|
needs:
|
2019-06-29 00:39:21 +08:00
|
|
|
- assign_test
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- $LOG_PATH
|
|
|
|
expire_in: 1 week
|
|
|
|
reports:
|
2020-09-27 11:20:53 +08:00
|
|
|
junit: $LOG_PATH/*/XUNIT_RESULT.xml
|
2019-06-29 00:39:21 +08:00
|
|
|
variables:
|
2020-09-27 11:20:53 +08:00
|
|
|
TEST_FW_PATH: "$CI_PROJECT_DIR/tools/tiny-test-fw"
|
2019-06-29 00:39:21 +08:00
|
|
|
LOG_PATH: "$CI_PROJECT_DIR/TEST_LOGS"
|
|
|
|
ENV_FILE: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/EnvConfig.yml"
|
2019-11-28 17:08:25 +08:00
|
|
|
SUBMODULES_TO_FETCH: "components/esptool_py/esptool"
|
2019-06-29 00:39:21 +08:00
|
|
|
script:
|
|
|
|
- *define_config_file_name
|
|
|
|
# first test if config file exists, if not exist, exit 0
|
|
|
|
- test -e $CONFIG_FILE || exit 0
|
|
|
|
# clone test env configs
|
2020-09-27 11:20:53 +08:00
|
|
|
- retry_failed git clone $TEST_ENV_CONFIG_REPO
|
2019-06-29 00:39:21 +08:00
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
2021-01-25 17:27:16 +08:00
|
|
|
# git clone the known failure cases repo, run test
|
|
|
|
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
|
2019-06-29 00:39:21 +08:00
|
|
|
# run test
|
2021-01-25 17:27:16 +08:00
|
|
|
- cd tools/ci/python_packages/tiny_test_fw/bin
|
|
|
|
- run_cmd python Runner.py $TEST_CASE_PATH -c $CONFIG_FILE -e $ENV_FILE --known_failure_cases_file $CI_PROJECT_DIR/known_failure_cases/known_failure_cases.txt
|
2019-11-27 17:04:13 +08:00
|
|
|
|
2020-09-27 11:20:53 +08:00
|
|
|
.example_test_template:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .target_test_job_template
|
2019-11-26 13:16:25 +08:00
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/examples"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/examples/test_configs"
|
2019-06-29 00:39:21 +08:00
|
|
|
|
2020-09-27 11:20:53 +08:00
|
|
|
.example_debug_template:
|
2020-11-12 17:58:24 +08:00
|
|
|
extends:
|
2021-02-09 12:31:38 +08:00
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
variables:
|
|
|
|
SUBMODULES_TO_FETCH: "all"
|
2019-06-29 00:39:21 +08:00
|
|
|
|
|
|
|
test_weekend_mqtt:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends:
|
|
|
|
- .example_test_template
|
2021-02-09 12:31:38 +08:00
|
|
|
- .rules:labels:weekend_test
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
variables:
|
|
|
|
ENV_FILE: "$CI_PROJECT_DIR/components/mqtt/weekend_test/env.yml"
|
2020-09-27 11:20:53 +08:00
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/components/mqtt/weekend_test"
|
2019-09-27 14:44:55 +02:00
|
|
|
CONFIG_FILE_PATH: "$CI_PROJECT_DIR/components/mqtt/weekend_test"
|
2019-06-29 00:39:21 +08:00
|
|
|
|
|
|
|
test_weekend_network:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends:
|
|
|
|
- .example_test_template
|
2021-02-09 12:31:38 +08:00
|
|
|
- .rules:labels:weekend_test
|
2019-06-29 00:39:21 +08:00
|
|
|
image: $CI_DOCKER_REGISTRY/rpi-net-suite$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
variables:
|
|
|
|
ENV_FILE: "$CI_PROJECT_DIR/components/lwip/weekend_test/env.yml"
|
2020-09-27 11:20:53 +08:00
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/components/lwip/weekend_test"
|
2019-09-27 14:44:55 +02:00
|
|
|
CONFIG_FILE_PATH: "$CI_PROJECT_DIR/components/lwip/weekend_test"
|
2019-06-29 00:39:21 +08:00
|
|
|
|
2021-02-09 12:31:38 +08:00
|
|
|
.example_test_esp32_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
|
2019-12-26 15:08:56 +05:30
|
|
|
example_test_001A:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2020-06-11 14:22:05 +08:00
|
|
|
parallel: 4
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
|
2019-12-26 15:08:56 +05:30
|
|
|
example_test_001B:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-12-26 15:08:56 +05:30
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_EthKitV1
|
|
|
|
|
2020-06-11 14:22:05 +08:00
|
|
|
example_test_001C:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2020-07-21 16:00:05 +08:00
|
|
|
parallel: 3
|
2020-06-11 14:22:05 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2020-10-23 21:52:51 +05:30
|
|
|
example_test_001D:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2020-10-23 21:52:51 +05:30
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_8Mflash_Ethernet
|
|
|
|
|
2019-06-29 00:39:21 +08:00
|
|
|
example_test_002:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
image: $CI_DOCKER_REGISTRY/ubuntu-test-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ShieldBox_Basic
|
|
|
|
|
|
|
|
.example_test_003:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_SDIO
|
|
|
|
|
2019-10-25 14:10:06 +08:00
|
|
|
example_test_004A:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-03-11 17:45:02 +01:00
|
|
|
- Example_TWAI1
|
2019-10-25 14:10:06 +08:00
|
|
|
|
|
|
|
example_test_004B:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-10-25 14:10:06 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-03-11 17:45:02 +01:00
|
|
|
- Example_TWAI2
|
2019-06-29 00:39:21 +08:00
|
|
|
|
|
|
|
example_test_005:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI_BT
|
|
|
|
|
|
|
|
example_test_006:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends:
|
2021-02-09 12:31:38 +08:00
|
|
|
- .example_test_esp32_template
|
|
|
|
- .rules:labels:iperf_stress_test
|
2019-06-29 00:39:21 +08:00
|
|
|
image: $CI_DOCKER_REGISTRY/ubuntu-test-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ShieldBox
|
|
|
|
|
|
|
|
example_test_007:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_I2C_CCS811_SENSOR
|
|
|
|
|
2020-06-30 18:28:37 +05:30
|
|
|
example_test_008A:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-08-23 12:37:55 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Flash_Encryption
|
|
|
|
|
2020-06-30 18:28:37 +05:30
|
|
|
example_test_008B:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2020-06-30 18:28:37 +05:30
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Flash_Encryption_OTA
|
|
|
|
|
2019-07-22 16:04:03 +02:00
|
|
|
example_test_009:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-07-22 16:04:03 +02:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- test_jtag_arm
|
|
|
|
artifacts:
|
2020-09-27 11:20:53 +08:00
|
|
|
paths:
|
|
|
|
- $CI_PROJECT_DIR/examples/*/*/*.log
|
2019-07-22 16:04:03 +02:00
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
2020-05-19 14:27:31 +02:00
|
|
|
PYTHON_VER: 3
|
2019-07-22 16:04:03 +02:00
|
|
|
|
2019-09-30 16:26:34 +02:00
|
|
|
example_test_010:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-09-30 16:26:34 +02:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ExtFlash
|
|
|
|
|
2019-11-26 13:16:25 +08:00
|
|
|
example_test_011:
|
|
|
|
extends: .example_debug_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-10-19 16:17:19 +08:00
|
|
|
- Example_T2_RS485
|
2019-11-26 13:16:25 +08:00
|
|
|
artifacts:
|
2020-09-27 11:20:53 +08:00
|
|
|
paths:
|
|
|
|
- $CI_PROJECT_DIR/examples/protocols/modbus/serial/*.log
|
|
|
|
- $LOG_PATH
|
2019-11-26 13:16:25 +08:00
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
|
|
|
|
2019-11-27 17:04:13 +08:00
|
|
|
example_test_012:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2019-11-27 17:04:13 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_RMT_IR_PROTOCOLS
|
|
|
|
|
2020-03-30 16:26:21 +02:00
|
|
|
example_test_013:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2020-03-30 16:26:21 +02:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
|
2020-05-13 08:11:39 +02:00
|
|
|
example_test_014:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2020-05-13 08:11:39 +02:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- 8Mpsram
|
|
|
|
|
2020-05-07 12:47:46 +02:00
|
|
|
example_test_015:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2020-05-07 12:47:46 +02:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_PPP
|
|
|
|
artifacts:
|
2020-09-27 11:20:53 +08:00
|
|
|
paths:
|
|
|
|
- $CI_PROJECT_DIR/examples/*/*/*.log
|
|
|
|
- $LOG_PATH
|
2020-05-07 12:47:46 +02:00
|
|
|
|
2020-07-22 00:34:04 +08:00
|
|
|
example_test_016:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .example_test_esp32_template
|
2020-07-22 00:34:04 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Modbus_TCP
|
|
|
|
artifacts:
|
2020-09-27 11:20:53 +08:00
|
|
|
paths:
|
|
|
|
- $CI_PROJECT_DIR/examples/*/*/*.log
|
|
|
|
- $LOG_PATH
|
2020-07-22 00:34:04 +08:00
|
|
|
|
2021-02-09 12:31:38 +08:00
|
|
|
.test_app_template:
|
|
|
|
extends: .target_test_job_template
|
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/tools/test_apps"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/tools/test_apps/test_configs"
|
|
|
|
|
|
|
|
.test_app_esp32_template:
|
|
|
|
extends:
|
|
|
|
- .test_app_template
|
|
|
|
- .rules:test:custom_test-esp32
|
|
|
|
|
|
|
|
.test_app_esp32s2_template:
|
|
|
|
extends:
|
|
|
|
- .test_app_template
|
|
|
|
- .rules:test:custom_test-esp32s2
|
|
|
|
|
2020-05-07 12:47:46 +02:00
|
|
|
test_app_test_001:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .test_app_esp32_template
|
2020-05-07 12:47:46 +02:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- test_jtag_arm
|
|
|
|
artifacts:
|
2020-09-27 11:20:53 +08:00
|
|
|
paths:
|
|
|
|
- $CI_PROJECT_DIR/tools/test_apps/system/*/*.log
|
2020-05-07 12:47:46 +02:00
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
|
|
|
|
|
|
|
test_app_test_002:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .test_app_esp32_template
|
2020-05-07 12:47:46 +02:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
|
|
|
|
test_app_test_003:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .test_app_esp32_template
|
2020-05-07 12:47:46 +02:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_PPP
|
|
|
|
|
2020-10-08 11:19:23 +08:00
|
|
|
test_app_test_004:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .test_app_esp32s2_template
|
2020-12-03 17:53:27 +08:00
|
|
|
tags:
|
|
|
|
- ESP32S2
|
|
|
|
- Example_GENERIC
|
|
|
|
|
|
|
|
test_app_test_esp32_generic:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .test_app_esp32_template
|
2020-06-16 21:06:36 +02:00
|
|
|
parallel: 4
|
2020-10-08 11:19:23 +08:00
|
|
|
tags:
|
2020-06-16 21:06:36 +02:00
|
|
|
- ESP32
|
2020-10-08 11:19:23 +08:00
|
|
|
- Example_GENERIC
|
2020-06-16 21:06:36 +02:00
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
2020-10-08 11:19:23 +08:00
|
|
|
|
2021-02-09 12:31:38 +08:00
|
|
|
.component_ut_template:
|
|
|
|
extends: .target_test_job_template
|
|
|
|
variables:
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/component_ut/test_configs"
|
|
|
|
script:
|
|
|
|
- *define_config_file_name
|
|
|
|
# first test if config file exists, if not exist, exit 0
|
|
|
|
- test -e $CONFIG_FILE || exit 0
|
|
|
|
- set_component_ut_vars
|
|
|
|
# clone test env configs
|
|
|
|
- retry_failed git clone $TEST_ENV_CONFIG_REPO
|
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
|
|
|
# git clone the known failure cases repo, run test
|
|
|
|
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
|
|
|
|
# run test
|
|
|
|
- cd tools/ci/python_packages/tiny_test_fw/bin
|
|
|
|
- run_cmd python Runner.py $COMPONENT_UT_DIRS -c $CONFIG_FILE -e $ENV_FILE --known_failure_cases_file $CI_PROJECT_DIR/known_failure_cases/known_failure_cases.txt
|
|
|
|
|
|
|
|
.component_ut_esp32_template:
|
|
|
|
extends:
|
|
|
|
- .component_ut_template
|
|
|
|
- .rules:test:component_ut-esp32
|
|
|
|
|
2020-08-25 16:42:36 +08:00
|
|
|
component_ut_test_001:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .component_ut_esp32_template
|
2020-08-25 16:42:36 +08:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- COMPONENT_UT_GENERIC
|
|
|
|
|
2021-02-09 12:31:38 +08:00
|
|
|
.unit_test_template:
|
|
|
|
extends: .target_test_job_template
|
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/tools/unit-test-app"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/components/idf_test/unit_test/CIConfigs"
|
|
|
|
|
|
|
|
.unit_test_esp32_template:
|
|
|
|
extends:
|
|
|
|
- .unit_test_template
|
|
|
|
- .rules:test:unit_test-esp32
|
|
|
|
|
|
|
|
.unit_test_esp32s2_template:
|
|
|
|
extends:
|
|
|
|
- .unit_test_template
|
|
|
|
- .rules:test:unit_test-esp32s2
|
|
|
|
|
|
|
|
.unit_test_esp32c3_template:
|
|
|
|
extends:
|
|
|
|
- .unit_test_template
|
|
|
|
- .rules:test:unit_test-esp32c3
|
|
|
|
|
2019-06-29 00:39:21 +08:00
|
|
|
UT_001:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2021-02-05 15:03:16 +08:00
|
|
|
parallel: 48
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2019-07-10 14:19:13 +02:00
|
|
|
# Max. allowed value of 'parallel' is 50.
|
|
|
|
|
2019-06-29 00:39:21 +08:00
|
|
|
UT_002:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2020-08-20 12:22:36 +08:00
|
|
|
parallel: 13
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_003:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2020-08-31 17:57:30 -03:00
|
|
|
parallel: 2
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
|
|
|
|
UT_004:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
|
|
|
UT_005:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_006:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_008:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_GPIO
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_012:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_LEDC
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_014:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_RS485
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_015:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_RMT
|
|
|
|
|
|
|
|
UT_016:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_RMT
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_017:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- EMMC
|
|
|
|
|
|
|
|
UT_018:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2020-09-15 23:14:31 +08:00
|
|
|
parallel: 2
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
- 8Mpsram
|
|
|
|
|
|
|
|
UT_020:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
- psram
|
|
|
|
|
2021-01-27 17:11:33 +08:00
|
|
|
UT_021:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2021-01-27 17:11:33 +08:00
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- psram
|
|
|
|
- UT_T1_FlashEncryption
|
|
|
|
|
2019-06-29 00:39:21 +08:00
|
|
|
UT_022:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_I2C
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_023:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-11-08 02:47:00 +08:00
|
|
|
parallel: 2
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_MCPWM
|
|
|
|
|
|
|
|
UT_024:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_MCPWM
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_028:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_1
|
|
|
|
- psram
|
|
|
|
|
2019-08-18 13:22:50 +08:00
|
|
|
UT_031:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-08-23 12:37:55 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_FlashEncryption
|
|
|
|
|
2019-09-19 11:27:42 +08:00
|
|
|
UT_033:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-09-19 11:27:42 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_Ethernet
|
|
|
|
- psram
|
|
|
|
|
2019-10-16 15:16:46 +11:00
|
|
|
UT_034:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2021-01-18 07:12:21 +08:00
|
|
|
parallel: 3
|
2019-09-04 21:09:30 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2020-01-22 12:05:33 +08:00
|
|
|
UT_035:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32s2_template
|
2021-02-05 15:03:16 +08:00
|
|
|
parallel: 50
|
2019-10-16 15:16:46 +11:00
|
|
|
tags:
|
2020-01-17 11:47:08 +08:00
|
|
|
- ESP32S2_IDF
|
2019-10-16 15:16:46 +11:00
|
|
|
- UT_T1_1
|
|
|
|
|
2019-10-31 12:00:46 +08:00
|
|
|
UT_036:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-10-31 12:00:46 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_PSRAMV0
|
|
|
|
- psram
|
|
|
|
|
2020-01-17 11:47:08 +08:00
|
|
|
# ToDo: re-enable this job when ESP32-S2 LEDC runner installed
|
|
|
|
# UT_037:
|
2021-02-09 12:31:38 +08:00
|
|
|
# extends: .unit_test_esp32s2_template
|
2020-01-17 11:47:08 +08:00
|
|
|
# tags:
|
|
|
|
# - ESP32S2_IDF
|
|
|
|
# - UT_T1_LEDC
|
2019-10-22 16:34:13 +08:00
|
|
|
|
2020-04-03 23:52:07 +08:00
|
|
|
UT_038:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32s2_template
|
2021-01-18 07:12:21 +08:00
|
|
|
parallel: 3
|
2020-04-03 23:52:07 +08:00
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2019-11-14 11:11:12 +08:00
|
|
|
UT_041:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-11-14 11:11:12 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_no32kXTAL
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_043:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-11-14 11:11:12 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_32kXTAL
|
|
|
|
- psram
|
2019-10-31 12:00:46 +08:00
|
|
|
|
2019-09-28 16:49:23 +08:00
|
|
|
UT_044:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-09-28 16:49:23 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_SDIO
|
|
|
|
|
|
|
|
UT_045:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2019-09-28 16:49:23 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_SDIO
|
|
|
|
- psram
|
2020-09-27 11:20:53 +08:00
|
|
|
|
2020-09-15 23:14:31 +08:00
|
|
|
UT_046:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32_template
|
2020-09-15 23:14:31 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_GPIO
|
2019-09-28 16:49:23 +08:00
|
|
|
|
2021-02-25 05:21:05 +08:00
|
|
|
UT_047:
|
|
|
|
extends: .unit_test_esp32s2_template
|
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2020-12-30 16:10:37 +08:00
|
|
|
UT_C3:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32c3_template
|
2021-02-25 05:21:05 +08:00
|
|
|
parallel: 30
|
2020-12-30 16:10:37 +08:00
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2021-01-22 18:04:27 +08:00
|
|
|
UT_C3_FLASH:
|
2021-02-09 12:31:38 +08:00
|
|
|
extends: .unit_test_esp32c3_template
|
2021-01-22 18:04:27 +08:00
|
|
|
parallel: 3
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2021-02-09 12:31:38 +08:00
|
|
|
.integration_test_template:
|
|
|
|
extends:
|
|
|
|
- .target_test_job_template
|
|
|
|
- .rules:test:integration_test
|
|
|
|
needs:
|
|
|
|
- assign_test
|
|
|
|
- build_ssc_esp32
|
|
|
|
variables:
|
|
|
|
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32_IDF"
|
|
|
|
LOG_PATH: "${CI_PROJECT_DIR}/${CI_COMMIT_SHA}"
|
|
|
|
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/auto_test_script/TestCaseFiles"
|
|
|
|
MODULE_UPDATE_FILE: "$CI_PROJECT_DIR/components/idf_test/ModuleDefinition.yml"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/components/idf_test/integration_test/CIConfigs"
|
|
|
|
KNOWN_ISSUE_FILE: "${CI_PROJECT_DIR}/components/idf_test/integration_test/KnownIssues"
|
|
|
|
CI_RUNNER_SCRIPT: "${CI_PROJECT_DIR}/auto_test_script/bin/CIRunner.py"
|
|
|
|
PYTHONPATH: ${CI_PROJECT_DIR}/auto_test_script/packages
|
|
|
|
# auto_test_script only supports python 3.7.x
|
|
|
|
PYTHON_VER: 3.7.7
|
|
|
|
script:
|
|
|
|
- *define_config_file_name
|
|
|
|
# first test if config file exists, if not exist, exit 0
|
|
|
|
- test -e $CONFIG_FILE || exit 0
|
|
|
|
# clone local test env configs
|
|
|
|
- retry_failed git clone $TEST_ENV_CONFIG_REPO
|
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
|
|
|
# clone test bench
|
|
|
|
# can not retry if downing git lfs files failed, so using empty_branch first.
|
|
|
|
- retry_failed git clone ${CI_AUTO_TEST_SCRIPT_REPO_URL} -b empty_branch
|
|
|
|
- retry_failed git -C auto_test_script checkout -f ${CI_AUTO_TEST_SCRIPT_REPO_BRANCH}
|
|
|
|
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script --customized_only
|
|
|
|
- cat ${KNOWN_ISSUE_FILE} >> ${TEST_CASE_FILE_PATH}/KnownIssues
|
|
|
|
# run test
|
|
|
|
- python ${CI_RUNNER_SCRIPT} -l "$LOG_PATH/$JOB_FULL_NAME" -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH
|
|
|
|
|
2019-06-29 00:39:21 +08:00
|
|
|
nvs_compatible_test:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- $LOG_PATH
|
|
|
|
- nvs_wifi.bin
|
|
|
|
expire_in: 1 mos
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- NVS_Compatible
|
|
|
|
script:
|
|
|
|
- *define_config_file_name
|
|
|
|
# first test if config file exists, if not exist, exit 0
|
|
|
|
- test -e $CONFIG_FILE || exit 0
|
|
|
|
# clone local test env configs
|
2020-09-28 14:27:10 +08:00
|
|
|
- retry_failed git clone $TEST_ENV_CONFIG_REPO
|
2019-06-29 00:39:21 +08:00
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
|
|
|
# clone test bench
|
2020-10-24 09:21:17 +08:00
|
|
|
# can not retry if downing git lfs files failed, so using empty_branch first.
|
2020-09-28 14:27:10 +08:00
|
|
|
- retry_failed git clone ${CI_AUTO_TEST_SCRIPT_REPO_URL} -b empty_branch
|
|
|
|
- retry_failed git -C auto_test_script checkout -f ${CI_AUTO_TEST_SCRIPT_REPO_BRANCH}
|
2020-10-30 14:39:42 +08:00
|
|
|
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script --customized_only
|
2019-06-29 00:39:21 +08:00
|
|
|
# prepare nvs bins
|
2020-10-24 09:21:17 +08:00
|
|
|
- cd auto_test_script
|
|
|
|
- ./tools/prepare_nvs_bin.sh
|
2019-06-29 00:39:21 +08:00
|
|
|
# run test
|
2020-10-24 09:21:17 +08:00
|
|
|
- python ${CI_RUNNER_SCRIPT} -l "$LOG_PATH/$JOB_FULL_NAME" -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH
|
2019-06-29 00:39:21 +08:00
|
|
|
|
|
|
|
IT_001:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
parallel: 3
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_4
|
|
|
|
|
|
|
|
IT_002:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_2
|
|
|
|
|
|
|
|
IT_003:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2020-10-24 09:21:17 +08:00
|
|
|
parallel: 14
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_5
|
|
|
|
|
|
|
|
IT_004:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_APC
|
|
|
|
|
|
|
|
IT_005:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2020-10-24 09:21:17 +08:00
|
|
|
parallel: 2
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_5
|
|
|
|
|
|
|
|
IT_006:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2020-10-24 09:21:17 +08:00
|
|
|
parallel: 12
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_6
|
|
|
|
|
|
|
|
IT_007:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
parallel: 3
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_7
|
|
|
|
|
|
|
|
IT_008:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_8
|
|
|
|
|
|
|
|
IT_009:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_3
|
|
|
|
|
|
|
|
IT_011:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_MESH1
|
|
|
|
|
|
|
|
IT_012:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_MESH1
|
|
|
|
|
|
|
|
IT_013:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T3_MESH1
|
|
|
|
|
|
|
|
IT_014:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T6_MESH1
|
|
|
|
|
|
|
|
IT_015:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T12_MESH1
|
|
|
|
|
|
|
|
IT_016:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2020-07-16 16:27:33 +08:00
|
|
|
allow_failure: true
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T50_MESH1
|
|
|
|
|
|
|
|
IT_017:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_MESH2
|
|
|
|
|
|
|
|
IT_018:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_9
|
|
|
|
|
|
|
|
IT_019:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_2
|
|
|
|
|
|
|
|
IT_020:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_3
|
|
|
|
|
|
|
|
IT_021:
|
2020-09-27 11:20:53 +08:00
|
|
|
extends: .integration_test_template
|
2019-06-29 00:39:21 +08:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_4
|