2019-06-28 16:39:21 +00: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 03:20:53 +00: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-28 16:39:21 +00:00
|
|
|
|
2020-09-27 03:20:53 +00:00
|
|
|
.target_test_job_template:
|
2019-06-28 16:39:21 +00:00
|
|
|
stage: target_test
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
2021-06-03 02:34:51 +00:00
|
|
|
- "**/*.log"
|
2019-06-28 16:39:21 +00:00
|
|
|
- $LOG_PATH
|
2022-01-20 12:56:38 +00:00
|
|
|
exclude:
|
|
|
|
- .git/**/*
|
2019-06-28 16:39:21 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
reports:
|
2020-09-27 03:20:53 +00:00
|
|
|
junit: $LOG_PATH/*/XUNIT_RESULT.xml
|
2019-06-28 16:39:21 +00:00
|
|
|
variables:
|
2020-09-27 03:20:53 +00:00
|
|
|
TEST_FW_PATH: "$CI_PROJECT_DIR/tools/tiny-test-fw"
|
2019-06-28 16:39:21 +00: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 09:08:25 +00:00
|
|
|
SUBMODULES_TO_FETCH: "components/esptool_py/esptool"
|
2019-06-28 16:39:21 +00:00
|
|
|
script:
|
|
|
|
- *define_config_file_name
|
|
|
|
# first test if config file exists, if not exist, exit 0
|
2021-04-09 09:14:58 +00:00
|
|
|
- |
|
|
|
|
{ [[ -e $CONFIG_FILE ]]; } || { echo 'No config file found. Consider decreasing the parallel count of this job in ".gitlab/ci/target-test.yml"'; exit 0; }
|
2019-06-28 16:39:21 +00:00
|
|
|
# clone test env configs
|
2020-09-27 03:20:53 +00:00
|
|
|
- retry_failed git clone $TEST_ENV_CONFIG_REPO
|
2019-06-28 16:39:21 +00:00
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
2021-01-25 09:27:16 +00:00
|
|
|
# git clone the known failure cases repo, run test
|
2023-12-06 06:10:41 +00:00
|
|
|
- pip install minio
|
|
|
|
- python tools/ci/get_known_failure_cases_file.py
|
2019-06-28 16:39:21 +00:00
|
|
|
# run test
|
2021-01-25 09:27:16 +00:00
|
|
|
- cd tools/ci/python_packages/tiny_test_fw/bin
|
2023-12-06 06:10:41 +00:00
|
|
|
- run_cmd python Runner.py $TEST_CASE_PATH -c $CONFIG_FILE -e $ENV_FILE --known_failure_cases_file $CI_PROJECT_DIR/${KNOWN_FAILURE_CASES_FILE_NAME}
|
2019-11-27 09:04:13 +00:00
|
|
|
|
2020-09-27 03:20:53 +00:00
|
|
|
.example_test_template:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .target_test_job_template
|
2022-01-06 15:21:21 +00:00
|
|
|
needs:
|
|
|
|
- assign_example_test
|
2019-11-26 05:16:25 +00:00
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/examples"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/examples/test_configs"
|
2019-06-28 16:39:21 +00:00
|
|
|
|
2020-09-27 03:20:53 +00:00
|
|
|
.example_debug_template:
|
2020-11-12 09:58:24 +00:00
|
|
|
extends:
|
2021-02-09 04:31:38 +00:00
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32
|
2021-09-16 03:16:52 +00:00
|
|
|
variables:
|
2021-02-09 04:31:38 +00:00
|
|
|
SUBMODULES_TO_FETCH: "all"
|
2019-06-28 16:39:21 +00:00
|
|
|
|
|
|
|
test_weekend_mqtt:
|
2020-09-27 03:20:53 +00:00
|
|
|
extends:
|
2021-06-10 07:10:16 +00:00
|
|
|
- .test_app_esp32_template
|
2021-02-09 04:31:38 +00:00
|
|
|
- .rules:labels:weekend_test
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
2022-01-26 15:38:31 +00:00
|
|
|
- Example_EthKitV1
|
2021-06-10 14:46:12 +00:00
|
|
|
script:
|
|
|
|
- export MQTT_PUBLISH_TEST=1
|
|
|
|
- export TEST_PATH=$CI_PROJECT_DIR/tools/test_apps/protocols/mqtt/publish_connect_test
|
|
|
|
- cd $IDF_PATH/tools/ci/python_packages/tiny_test_fw/bin
|
2021-07-26 07:53:26 +00:00
|
|
|
- run_cmd python Runner.py $TEST_PATH -c $TEST_PATH/publish_connect_mqtt_.yml
|
2019-06-28 16:39:21 +00:00
|
|
|
|
2021-02-09 04:31:38 +00:00
|
|
|
.example_test_esp32_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
|
2021-02-17 12:45:49 +00:00
|
|
|
.example_test_esp32s2_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32s2
|
|
|
|
|
2021-03-12 06:05:17 +00:00
|
|
|
.example_test_esp32c3_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
2021-10-22 07:19:19 +00:00
|
|
|
- .rules:test:example_test-esp32c3
|
2021-03-12 06:05:17 +00:00
|
|
|
|
2021-08-31 18:09:21 +00:00
|
|
|
.example_test_esp32s3_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32s3
|
|
|
|
|
2019-12-26 09:38:56 +00:00
|
|
|
example_test_001A:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
|
2019-12-26 09:38:56 +00:00
|
|
|
example_test_001B:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-12-26 09:38:56 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_EthKitV1
|
|
|
|
|
2023-07-18 04:38:03 +00:00
|
|
|
example_test_httpbin:
|
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- httpbin
|
|
|
|
|
2021-03-15 15:59:56 +00:00
|
|
|
example_test_001B_V3:
|
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_EthKitV12
|
|
|
|
|
2020-06-11 06:22:05 +00:00
|
|
|
example_test_001C:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2021-08-03 06:35:29 +00:00
|
|
|
parallel: 4
|
2020-06-11 06:22:05 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2020-10-23 16:22:51 +00:00
|
|
|
example_test_001D:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2020-10-23 16:22:51 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_8Mflash_Ethernet
|
|
|
|
|
2021-03-25 09:50:30 +00:00
|
|
|
example_test_OTA:
|
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
2021-11-15 08:23:52 +00:00
|
|
|
- EXAMPLE_ETH_OTA
|
2021-03-25 09:50:30 +00:00
|
|
|
|
|
|
|
example_test_protocols:
|
|
|
|
extends: .example_test_esp32_template
|
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI_Protocols
|
|
|
|
|
2021-11-15 08:23:52 +00:00
|
|
|
# This job is only triggered by env var `NIGHTLY_RUN`, please do NOT remove
|
|
|
|
example_test_esp32_WIFI_OTA:
|
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI_OTA
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
example_test_002:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
image: $CI_DOCKER_REGISTRY/ubuntu-test-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ShieldBox_Basic
|
|
|
|
|
2021-08-25 05:31:34 +00:00
|
|
|
example_test_ethernet:
|
2021-07-28 01:39:02 +00:00
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Ethernet
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
.example_test_003:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_SDIO
|
|
|
|
|
2019-10-25 06:10:06 +00:00
|
|
|
example_test_004A:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-03-11 16:45:02 +00:00
|
|
|
- Example_TWAI1
|
2019-10-25 06:10:06 +00:00
|
|
|
|
|
|
|
example_test_004B:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-10-25 06:10:06 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-03-11 16:45:02 +00:00
|
|
|
- Example_TWAI2
|
2019-06-28 16:39:21 +00:00
|
|
|
|
|
|
|
example_test_005:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI_BT
|
|
|
|
|
|
|
|
example_test_006:
|
2020-09-27 03:20:53 +00:00
|
|
|
extends:
|
2021-02-09 04:31:38 +00:00
|
|
|
- .example_test_esp32_template
|
|
|
|
- .rules:labels:iperf_stress_test
|
2019-06-28 16:39:21 +00:00
|
|
|
image: $CI_DOCKER_REGISTRY/ubuntu-test-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ShieldBox
|
|
|
|
|
|
|
|
example_test_007:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_I2C_CCS811_SENSOR
|
|
|
|
|
2020-06-30 12:58:37 +00:00
|
|
|
example_test_008A:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-08-23 04:37:55 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Flash_Encryption
|
|
|
|
|
2020-06-30 12:58:37 +00:00
|
|
|
example_test_008B:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2020-06-30 12:58:37 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Flash_Encryption_OTA
|
|
|
|
|
2019-07-22 14:04:03 +00:00
|
|
|
example_test_009:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-07-22 14:04:03 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- test_jtag_arm
|
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
2020-05-19 12:27:31 +00:00
|
|
|
PYTHON_VER: 3
|
2019-07-22 14:04:03 +00:00
|
|
|
|
2019-09-30 14:26:34 +00:00
|
|
|
example_test_010:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-09-30 14:26:34 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ExtFlash
|
|
|
|
|
2019-11-26 05:16:25 +00:00
|
|
|
example_test_011:
|
|
|
|
extends: .example_debug_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-10-19 08:17:19 +00:00
|
|
|
- Example_T2_RS485
|
2019-11-26 05:16:25 +00:00
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
|
|
|
|
2019-11-27 09:04:13 +00:00
|
|
|
example_test_012:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2019-11-27 09:04:13 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_RMT_IR_PROTOCOLS
|
|
|
|
|
2020-03-30 14:26:21 +00:00
|
|
|
example_test_013:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2020-03-30 14:26:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
|
2020-05-13 06:11:39 +00:00
|
|
|
example_test_014:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2020-05-13 06:11:39 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- 8Mpsram
|
|
|
|
|
2020-05-07 10:47:46 +00:00
|
|
|
example_test_015:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2020-05-07 10:47:46 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_PPP
|
|
|
|
|
2020-07-21 16:34:04 +00:00
|
|
|
example_test_016:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .example_test_esp32_template
|
2020-07-21 16:34:04 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Modbus_TCP
|
|
|
|
|
2021-02-17 12:45:49 +00:00
|
|
|
example_test_017:
|
|
|
|
extends: .example_test_esp32s2_template
|
|
|
|
tags:
|
|
|
|
- ESP32S2
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-03-12 06:05:17 +00:00
|
|
|
example_test_C3_GENERIC:
|
|
|
|
extends: .example_test_esp32c3_template
|
|
|
|
parallel: 3
|
|
|
|
tags:
|
|
|
|
- ESP32C3
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-03-17 08:11:03 +00:00
|
|
|
example_test_C3_FLASH_ENC:
|
|
|
|
extends: .example_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3
|
|
|
|
- Example_Flash_Encryption
|
|
|
|
|
|
|
|
example_test_C3_FLASH_ENC_OTA:
|
|
|
|
extends: .example_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3
|
|
|
|
- Example_Flash_Encryption_OTA_WiFi
|
|
|
|
|
2021-03-14 20:32:20 +00:00
|
|
|
example_test_ESP32_SDSPI:
|
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
2021-08-31 18:09:21 +00:00
|
|
|
example_test_S3_GENERIC:
|
|
|
|
extends: .example_test_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-09-23 02:57:05 +00:00
|
|
|
example_test_ESP32S2_SDSPI:
|
|
|
|
extends: .example_test_esp32s2_template
|
|
|
|
tags:
|
|
|
|
- ESP32S2
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
|
|
|
example_test_ESP32C3_SDSPI:
|
|
|
|
extends: .example_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3
|
|
|
|
- UT_T1_SPIMODE
|
2021-03-12 06:05:17 +00:00
|
|
|
|
2021-02-09 04:31:38 +00:00
|
|
|
.test_app_template:
|
|
|
|
extends: .target_test_job_template
|
2022-01-06 15:21:21 +00:00
|
|
|
needs:
|
|
|
|
- assign_custom_test
|
2021-02-09 04:31:38 +00:00
|
|
|
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
|
|
|
|
|
2021-01-27 21:03:07 +00:00
|
|
|
.test_app_esp32c3_template:
|
|
|
|
extends:
|
|
|
|
- .test_app_template
|
|
|
|
- .rules:test:custom_test-esp32c3
|
|
|
|
|
2021-09-09 07:50:42 +00:00
|
|
|
.test_app_esp32s3_template:
|
|
|
|
extends:
|
|
|
|
- .test_app_template
|
|
|
|
- .rules:test:custom_test-esp32s3
|
|
|
|
|
2020-05-07 10:47:46 +00:00
|
|
|
test_app_test_001:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .test_app_esp32_template
|
2020-05-07 10:47:46 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- test_jtag_arm
|
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
|
|
|
|
|
|
|
test_app_test_002:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .test_app_esp32_template
|
2020-05-07 10:47:46 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
|
2022-01-12 09:42:37 +00:00
|
|
|
test_app_test_eth:
|
|
|
|
extends: .test_app_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_EthKitV1
|
|
|
|
|
2020-05-07 10:47:46 +00:00
|
|
|
test_app_test_003:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .test_app_esp32_template
|
2020-05-07 10:47:46 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_PPP
|
|
|
|
|
2020-10-08 03:19:23 +00:00
|
|
|
test_app_test_004:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .test_app_esp32s2_template
|
2020-12-03 09:53:27 +00:00
|
|
|
tags:
|
|
|
|
- ESP32S2
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-01-27 21:03:07 +00:00
|
|
|
test_app_test_005:
|
|
|
|
extends: .test_app_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2023-05-01 07:08:23 +00:00
|
|
|
test_app_test_006:
|
|
|
|
extends: .test_app_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2020-12-03 09:53:27 +00:00
|
|
|
test_app_test_esp32_generic:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .test_app_esp32_template
|
2020-12-24 03:14:04 +00:00
|
|
|
parallel: 5
|
2020-10-08 03:19:23 +00:00
|
|
|
tags:
|
2020-06-16 19:06:36 +00:00
|
|
|
- ESP32
|
2020-10-08 03:19:23 +00:00
|
|
|
- Example_GENERIC
|
2020-06-16 19:06:36 +00:00
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
2020-10-08 03:19:23 +00:00
|
|
|
|
2021-09-09 07:50:42 +00:00
|
|
|
test_app_test_flash_psram_f4r4:
|
|
|
|
extends: .test_app_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3
|
|
|
|
- MSPI_F4R4
|
|
|
|
|
|
|
|
test_app_test_flash_psram_f4r8:
|
|
|
|
extends: .test_app_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3
|
|
|
|
- MSPI_F4R8
|
|
|
|
|
2022-02-07 07:39:25 +00:00
|
|
|
test_app_test_flash_psram_f8r8:
|
2021-09-09 07:50:42 +00:00
|
|
|
extends: .test_app_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3
|
|
|
|
- MSPI_F8R8
|
|
|
|
|
2023-07-03 08:08:59 +00:00
|
|
|
test_app_test_flash_psram_esp32:
|
|
|
|
extends: .test_app_esp32_template
|
2022-12-19 11:19:17 +00:00
|
|
|
tags:
|
2023-07-03 08:08:59 +00:00
|
|
|
- ESP32
|
|
|
|
- psram
|
2022-12-19 11:19:17 +00:00
|
|
|
|
2021-02-09 04:31:38 +00:00
|
|
|
.component_ut_template:
|
|
|
|
extends: .target_test_job_template
|
2022-01-06 15:21:21 +00:00
|
|
|
needs: # the assign already needs all the build jobs
|
|
|
|
- assign_component_ut
|
2021-02-09 04:31:38 +00:00
|
|
|
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
|
2023-12-06 06:10:41 +00:00
|
|
|
- pip install minio
|
|
|
|
- python tools/ci/get_known_failure_cases_file.py
|
2021-02-09 04:31:38 +00:00
|
|
|
# run test
|
|
|
|
- cd tools/ci/python_packages/tiny_test_fw/bin
|
2023-12-06 06:10:41 +00:00
|
|
|
- run_cmd python Runner.py $COMPONENT_UT_DIRS -c $CONFIG_FILE -e $ENV_FILE --known_failure_cases_file $CI_PROJECT_DIR/${KNOWN_FAILURE_CASES_FILE_NAME}
|
2021-02-09 04:31:38 +00:00
|
|
|
|
|
|
|
.component_ut_esp32_template:
|
|
|
|
extends:
|
|
|
|
- .component_ut_template
|
|
|
|
- .rules:test:component_ut-esp32
|
|
|
|
|
2021-05-10 19:23:04 +00:00
|
|
|
.component_ut_esp32s2_template:
|
|
|
|
extends:
|
|
|
|
- .component_ut_template
|
|
|
|
- .rules:test:component_ut-esp32s2
|
|
|
|
|
2021-06-07 10:17:13 +00:00
|
|
|
.component_ut_esp32s3_template:
|
|
|
|
extends:
|
|
|
|
- .component_ut_template
|
|
|
|
- .rules:test:component_ut-esp32s3
|
|
|
|
|
2021-05-10 19:23:04 +00:00
|
|
|
.component_ut_esp32c3_template:
|
|
|
|
extends:
|
|
|
|
- .component_ut_template
|
|
|
|
- .rules:test:component_ut-esp32c3
|
|
|
|
|
2020-08-25 08:42:36 +00:00
|
|
|
component_ut_test_001:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .component_ut_esp32_template
|
2020-08-25 08:42:36 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- COMPONENT_UT_GENERIC
|
2021-05-10 19:23:04 +00:00
|
|
|
|
|
|
|
component_ut_test_esp32s2:
|
|
|
|
extends: .component_ut_esp32s2_template
|
|
|
|
tags:
|
|
|
|
- ESP32S2
|
|
|
|
- COMPONENT_UT_GENERIC
|
|
|
|
|
2021-06-07 10:17:13 +00:00
|
|
|
component_ut_test_esp32s3:
|
|
|
|
extends: .component_ut_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3
|
|
|
|
- COMPONENT_UT_GENERIC
|
|
|
|
|
2021-05-10 19:23:04 +00:00
|
|
|
component_ut_test_esp32c3:
|
|
|
|
extends: .component_ut_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3
|
|
|
|
- COMPONENT_UT_GENERIC
|
2020-08-25 08:42:36 +00:00
|
|
|
|
2021-02-09 04:31:38 +00:00
|
|
|
.unit_test_template:
|
|
|
|
extends: .target_test_job_template
|
2022-01-06 15:21:21 +00:00
|
|
|
needs: # the assign already needs all the build jobs
|
|
|
|
- assign_unit_test
|
2021-02-09 04:31:38 +00:00
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/tools/unit-test-app"
|
2022-01-06 15:21:21 +00:00
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/components/idf_test/unit_test/test_configs"
|
2021-02-09 04:31:38 +00:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
2021-06-07 10:17:13 +00:00
|
|
|
.unit_test_esp32s3_template:
|
|
|
|
extends:
|
|
|
|
- .unit_test_template
|
|
|
|
- .rules:test:unit_test-esp32s3
|
|
|
|
|
2021-02-09 04:31:38 +00:00
|
|
|
.unit_test_esp32c3_template:
|
|
|
|
extends:
|
|
|
|
- .unit_test_template
|
|
|
|
- .rules:test:unit_test-esp32c3
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
UT_001:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2021-01-07 09:39:40 +00:00
|
|
|
parallel: 50
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2019-07-10 12:19:13 +00:00
|
|
|
# Max. allowed value of 'parallel' is 50.
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
UT_002:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2022-06-28 03:19:58 +00:00
|
|
|
parallel: 16
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_003:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2020-08-31 20:57:30 +00:00
|
|
|
parallel: 2
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
|
|
|
|
UT_004:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
|
|
|
UT_005:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_006:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
- psram
|
|
|
|
|
2021-06-18 03:52:47 +00:00
|
|
|
UT_007:
|
|
|
|
extends: .unit_test_esp32_template
|
2023-04-12 07:48:18 +00:00
|
|
|
parallel: 8
|
2021-06-18 03:52:47 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
UT_008:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_GPIO
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_012:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_LEDC
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_014:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_RS485
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_017:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- EMMC
|
|
|
|
|
|
|
|
UT_018:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2020-09-15 15:14:31 +00:00
|
|
|
parallel: 2
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
- 8Mpsram
|
|
|
|
|
|
|
|
UT_020:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
- psram
|
|
|
|
|
2021-01-27 09:11:33 +00:00
|
|
|
UT_021:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2021-01-27 09:11:33 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- psram
|
|
|
|
- UT_T1_FlashEncryption
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
UT_022:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_I2C
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_028:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_1
|
|
|
|
- psram
|
|
|
|
|
2019-08-18 05:22:50 +00:00
|
|
|
UT_031:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-08-23 04:37:55 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_FlashEncryption
|
|
|
|
|
2019-09-19 03:27:42 +00:00
|
|
|
UT_033:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-09-19 03:27:42 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_Ethernet
|
|
|
|
- psram
|
|
|
|
|
2019-10-16 04:16:46 +00:00
|
|
|
UT_034:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2021-08-23 02:03:09 +00:00
|
|
|
parallel: 2
|
2019-09-04 13:09:30 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2020-01-22 04:05:33 +00:00
|
|
|
UT_035:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32s2_template
|
2021-02-05 07:03:16 +00:00
|
|
|
parallel: 50
|
2019-10-16 04:16:46 +00:00
|
|
|
tags:
|
2020-01-17 03:47:08 +00:00
|
|
|
- ESP32S2_IDF
|
2019-10-16 04:16:46 +00:00
|
|
|
- UT_T1_1
|
|
|
|
|
2019-10-31 04:00:46 +00:00
|
|
|
UT_036:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-10-31 04:00:46 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_PSRAMV0
|
|
|
|
- psram
|
|
|
|
|
2020-01-17 03:47:08 +00:00
|
|
|
# ToDo: re-enable this job when ESP32-S2 LEDC runner installed
|
|
|
|
# UT_037:
|
2021-02-09 04:31:38 +00:00
|
|
|
# extends: .unit_test_esp32s2_template
|
2020-01-17 03:47:08 +00:00
|
|
|
# tags:
|
|
|
|
# - ESP32S2_IDF
|
|
|
|
# - UT_T1_LEDC
|
2019-10-22 08:34:13 +00:00
|
|
|
|
2020-04-03 15:52:07 +00:00
|
|
|
UT_038:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32s2_template
|
2021-08-23 02:03:09 +00:00
|
|
|
parallel: 2
|
2020-04-03 15:52:07 +00:00
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2019-11-14 03:11:12 +00:00
|
|
|
UT_041:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-11-14 03:11:12 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_no32kXTAL
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_043:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-11-14 03:11:12 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_32kXTAL
|
|
|
|
- psram
|
2019-10-31 04:00:46 +00:00
|
|
|
|
2019-09-28 08:49:23 +00:00
|
|
|
UT_044:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-09-28 08:49:23 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_SDIO
|
|
|
|
|
|
|
|
UT_045:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2019-09-28 08:49:23 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_SDIO
|
|
|
|
- psram
|
2020-09-27 03:20:53 +00:00
|
|
|
|
2020-09-15 15:14:31 +00:00
|
|
|
UT_046:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32_template
|
2020-09-15 15:14:31 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_GPIO
|
2019-09-28 08:49:23 +00:00
|
|
|
|
2021-02-24 21:21:05 +00:00
|
|
|
UT_047:
|
|
|
|
extends: .unit_test_esp32s2_template
|
2023-12-05 18:39:11 +00:00
|
|
|
parallel: 8
|
2021-02-24 21:21:05 +00:00
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2021-07-01 01:32:25 +00:00
|
|
|
UT_S2_SPI_DUAL:
|
|
|
|
extends: .unit_test_esp32s2_template
|
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
|
2021-09-23 02:57:05 +00:00
|
|
|
UT_S2_SDSPI:
|
|
|
|
extends: .unit_test_esp32s2_template
|
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
2020-12-30 08:10:37 +00:00
|
|
|
UT_C3:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32c3_template
|
2022-06-28 03:19:58 +00:00
|
|
|
parallel: 36
|
2020-12-30 08:10:37 +00:00
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2021-01-22 10:04:27 +00:00
|
|
|
UT_C3_FLASH:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .unit_test_esp32c3_template
|
2021-02-23 07:52:04 +00:00
|
|
|
parallel: 2
|
2021-01-22 10:04:27 +00:00
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2021-03-16 07:56:15 +00:00
|
|
|
UT_C3_SPI_DUAL:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
|
2021-03-17 08:11:03 +00:00
|
|
|
UT_C3_FLASH_ENC:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_FlashEncryption
|
|
|
|
|
2021-02-23 07:52:04 +00:00
|
|
|
UT_C3_I2C:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T2_I2C
|
|
|
|
|
2021-04-12 09:35:59 +00:00
|
|
|
UT_C3_FLASH_SUSPEND:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_Flash_Suspend
|
|
|
|
|
2021-09-23 02:57:05 +00:00
|
|
|
UT_C3_SDSPI:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
2021-06-07 10:17:13 +00:00
|
|
|
UT_S3:
|
|
|
|
extends: .unit_test_esp32s3_template
|
2022-12-19 11:19:17 +00:00
|
|
|
parallel: 33
|
2021-06-07 10:17:13 +00:00
|
|
|
tags:
|
|
|
|
- ESP32S3_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2021-07-01 01:32:25 +00:00
|
|
|
UT_S3_SPI_DUAL:
|
|
|
|
extends: .unit_test_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
|
2021-06-21 11:43:51 +00:00
|
|
|
UT_S3_FLASH:
|
|
|
|
extends: .unit_test_esp32s3_template
|
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32S3_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2024-01-22 09:45:59 +00:00
|
|
|
component_ut_test_ip101:
|
|
|
|
extends: .component_ut_esp32_template
|
|
|
|
image: $CI_DOCKER_REGISTRY/ubuntu-test-env
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- eth_ip101
|
|
|
|
|
2021-07-14 07:37:47 +00:00
|
|
|
component_ut_test_lan8720:
|
|
|
|
extends: .component_ut_esp32_template
|
2024-01-22 09:45:59 +00:00
|
|
|
image: $CI_DOCKER_REGISTRY/ubuntu-test-env
|
2021-07-14 07:37:47 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
2024-01-22 09:45:59 +00:00
|
|
|
- eth_lan8720
|