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 |
|
|
|
|
JOB_NAME_PREFIX=$(echo ${CI_JOB_NAME} | awk '{print $1}')
|
2019-08-18 05:22:50 +00:00
|
|
|
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
|
|
|
|
|
|
|
.example_test_template:
|
|
|
|
stage: target_test
|
|
|
|
when: on_success
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- triggers
|
|
|
|
- schedules
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_EXAMPLE_TEST
|
|
|
|
dependencies:
|
|
|
|
- assign_test
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- $LOG_PATH
|
|
|
|
expire_in: 1 week
|
|
|
|
reports:
|
|
|
|
junit: $LOG_PATH/*/XUNIT_RESULT.xml
|
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/examples"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/examples/test_configs"
|
|
|
|
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
|
|
|
|
- test -e $CONFIG_FILE || exit 0
|
|
|
|
# clone test env configs
|
|
|
|
- git clone $TEST_ENV_CONFIG_REPOSITORY
|
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
2019-11-27 03:58:07 +00:00
|
|
|
- cd tools/ci/python_packages/tiny_test_fw/bin
|
2019-06-28 16:39:21 +00:00
|
|
|
# run test
|
|
|
|
- python Runner.py $TEST_CASE_PATH -c $CONFIG_FILE -e $ENV_FILE
|
2019-11-27 09:04:13 +00:00
|
|
|
|
2019-11-26 05:16:25 +00:00
|
|
|
.example_debug_template:
|
|
|
|
stage: target_test
|
|
|
|
when: on_success
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- triggers
|
|
|
|
- schedules
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_EXAMPLE_TEST
|
|
|
|
dependencies:
|
|
|
|
- assign_test
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- $LOG_PATH
|
|
|
|
expire_in: 1 week
|
|
|
|
reports:
|
|
|
|
junit: $LOG_PATH/*/XUNIT_RESULT.xml
|
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/examples"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/examples/test_configs"
|
|
|
|
LOG_PATH: "$CI_PROJECT_DIR/TEST_LOGS"
|
|
|
|
ENV_FILE: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/EnvConfig.yml"
|
|
|
|
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
|
|
|
|
- git clone $TEST_ENV_CONFIG_REPOSITORY
|
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
2019-11-27 03:58:07 +00:00
|
|
|
- cd tools/ci/python_packages/tiny_test_fw/bin
|
2019-11-26 05:16:25 +00:00
|
|
|
# run test
|
|
|
|
- python Runner.py $TEST_CASE_PATH -c $CONFIG_FILE -e $ENV_FILE
|
2019-06-28 16:39:21 +00:00
|
|
|
|
2019-10-20 18:55:11 +00:00
|
|
|
.test_app_template:
|
|
|
|
extends: .example_test_template
|
2020-01-27 11:12:49 +00:00
|
|
|
stage: target_test
|
2019-10-20 18:55:11 +00:00
|
|
|
dependencies:
|
|
|
|
- assign_test
|
2020-01-27 11:12:49 +00:00
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- triggers
|
|
|
|
- schedules
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_CUSTOM_TEST
|
2019-10-20 18:55:11 +00:00
|
|
|
variables:
|
|
|
|
TEST_FW_PATH: "$CI_PROJECT_DIR/tools/tiny-test-fw"
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/tools/test_apps"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/tools/test_apps/test_configs"
|
|
|
|
LOG_PATH: "$CI_PROJECT_DIR/TEST_LOGS"
|
|
|
|
ENV_FILE: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/EnvConfig.yml"
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
.unit_test_template:
|
|
|
|
extends: .example_test_template
|
|
|
|
stage: target_test
|
|
|
|
dependencies:
|
|
|
|
- assign_test
|
2020-04-29 02:38:05 +00:00
|
|
|
- build_esp_idf_tests_cmake_esp32
|
2019-06-28 16:39:21 +00:00
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- triggers
|
|
|
|
- schedules
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_UNIT_TEST
|
|
|
|
variables:
|
|
|
|
TEST_FW_PATH: "$CI_PROJECT_DIR/tools/tiny-test-fw"
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/tools/unit-test-app"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/components/idf_test/unit_test/CIConfigs"
|
|
|
|
LOG_PATH: "$CI_PROJECT_DIR/TEST_LOGS"
|
|
|
|
ENV_FILE: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/EnvConfig.yml"
|
2019-12-27 11:25:14 +00:00
|
|
|
PYTHON_VER: 3
|
2019-06-28 16:39:21 +00:00
|
|
|
|
|
|
|
.test_template:
|
|
|
|
stage: target_test
|
|
|
|
when: on_success
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- triggers
|
|
|
|
- schedules
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
|
|
|
- $BOT_LABEL_INTEGRATION_TEST
|
|
|
|
dependencies:
|
|
|
|
- assign_test
|
2019-12-20 02:52:33 +00:00
|
|
|
- build_ssc_esp32
|
2019-06-28 16:39:21 +00:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
reports:
|
|
|
|
junit: $LOG_PATH/*/XUNIT_RESULT.xml
|
|
|
|
paths:
|
|
|
|
- $LOG_PATH
|
|
|
|
expire_in: 1 week
|
|
|
|
variables:
|
2019-11-28 09:08:25 +00:00
|
|
|
SUBMODULES_TO_FETCH: "components/esptool_py/esptool"
|
2019-06-28 16:39:21 +00:00
|
|
|
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/components/idf_test/integration_test"
|
|
|
|
MODULE_UPDATE_FILE: "$CI_PROJECT_DIR/components/idf_test/ModuleDefinition.yml"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/components/idf_test/integration_test/CIConfigs"
|
|
|
|
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
|
|
|
|
- git clone $TEST_ENV_CONFIG_REPOSITORY
|
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
|
|
|
# clone test bench
|
|
|
|
- git clone $TEST_SCRIPT_REPOSITORY
|
|
|
|
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
|
|
|
|
- cd auto_test_script
|
|
|
|
# run test
|
2019-08-18 05:22:50 +00:00
|
|
|
- python CIRunner.py -l "$LOG_PATH/$JOB_FULL_NAME" -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH
|
2019-06-28 16:39:21 +00:00
|
|
|
|
|
|
|
test_weekend_mqtt:
|
|
|
|
extends: .example_test_template
|
|
|
|
stage: target_test
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_LABEL_WEEKEND_TEST
|
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/components/mqtt/weekend_test"
|
|
|
|
LOG_PATH: "$CI_PROJECT_DIR/TEST_LOGS"
|
|
|
|
ENV_FILE: "$CI_PROJECT_DIR/components/mqtt/weekend_test/env.yml"
|
2019-09-27 12:44:55 +00:00
|
|
|
CONFIG_FILE_PATH: "$CI_PROJECT_DIR/components/mqtt/weekend_test"
|
2019-06-28 16:39:21 +00:00
|
|
|
|
|
|
|
test_weekend_network:
|
|
|
|
extends: .example_test_template
|
|
|
|
stage: target_test
|
|
|
|
image: $CI_DOCKER_REGISTRY/rpi-net-suite$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_LABEL_WEEKEND_TEST
|
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/components/lwip/weekend_test"
|
|
|
|
LOG_PATH: "$CI_PROJECT_DIR/TEST_LOGS"
|
|
|
|
ENV_FILE: "$CI_PROJECT_DIR/components/lwip/weekend_test/env.yml"
|
2019-09-27 12:44:55 +00:00
|
|
|
CONFIG_FILE_PATH: "$CI_PROJECT_DIR/components/lwip/weekend_test"
|
2019-06-28 16:39:21 +00:00
|
|
|
|
2019-12-26 09:38:56 +00:00
|
|
|
example_test_001A:
|
2019-06-28 16:39:21 +00:00
|
|
|
extends: .example_test_template
|
2020-06-11 06:22:05 +00:00
|
|
|
parallel: 4
|
2020-05-07 10:47:46 +00:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- $CI_PROJECT_DIR/examples/*/*/*.log
|
|
|
|
expire_in: 1 week
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
|
2019-12-26 09:38:56 +00:00
|
|
|
example_test_001B:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_EthKitV1
|
|
|
|
|
2020-06-11 06:22:05 +00:00
|
|
|
example_test_001C:
|
|
|
|
extends: .example_test_template
|
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
example_test_002:
|
|
|
|
extends: .example_test_template
|
|
|
|
image: $CI_DOCKER_REGISTRY/ubuntu-test-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ShieldBox_Basic
|
2019-11-19 03:18:59 +00: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
|
|
|
|
- git clone $TEST_ENV_CONFIG_REPOSITORY
|
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
2019-11-27 03:58:07 +00:00
|
|
|
- cd tools/ci/python_packages/tiny_test_fw/bin
|
2019-11-19 03:18:59 +00:00
|
|
|
# run test
|
|
|
|
- python Runner.py $TEST_CASE_PATH -c $CONFIG_FILE -e $ENV_FILE
|
2019-11-21 10:05:55 +00:00
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
|
|
|
|
.example_test_003:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_SDIO
|
|
|
|
|
2019-10-25 06:10:06 +00:00
|
|
|
example_test_004A:
|
2019-06-28 16:39:21 +00:00
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-03-11 16:45:02 +00:00
|
|
|
- Example_TWAI1
|
2019-10-25 06:10:06 +00:00
|
|
|
|
|
|
|
example_test_004B:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-03-11 16:45:02 +00:00
|
|
|
- Example_TWAI2
|
2019-06-28 16:39:21 +00:00
|
|
|
|
|
|
|
example_test_005:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI_BT
|
|
|
|
|
|
|
|
example_test_006:
|
|
|
|
extends: .example_test_template
|
|
|
|
image: $CI_DOCKER_REGISTRY/ubuntu-test-env$BOT_DOCKER_IMAGE_TAG
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $BOT_LABEL_IPERF_STRESS_TEST
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ShieldBox
|
|
|
|
|
|
|
|
example_test_007:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_I2C_CCS811_SENSOR
|
|
|
|
|
2019-08-23 04:37:55 +00:00
|
|
|
example_test_008:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Flash_Encryption
|
|
|
|
|
2019-07-22 14:04:03 +00:00
|
|
|
example_test_009:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- test_jtag_arm
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
2020-04-17 09:51:00 +00:00
|
|
|
- $CI_PROJECT_DIR/examples/*/*/*.log
|
2019-07-22 14:04:03 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
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:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ExtFlash
|
|
|
|
|
2019-11-26 05:16:25 +00:00
|
|
|
example_test_011:
|
|
|
|
extends: .example_debug_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
2019-12-10 06:27:09 +00:00
|
|
|
- UT_T2_RS485
|
2019-11-26 05:16:25 +00:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- $CI_PROJECT_DIR/examples/protocols/modbus/serial/*.log
|
|
|
|
- $LOG_PATH
|
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
|
|
|
|
2019-11-27 09:04:13 +00:00
|
|
|
example_test_012:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_RMT_IR_PROTOCOLS
|
|
|
|
|
2020-03-30 14:26:21 +00:00
|
|
|
example_test_013:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
|
2020-05-13 06:11:39 +00:00
|
|
|
example_test_014:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- 8Mpsram
|
|
|
|
|
2020-05-07 10:47:46 +00:00
|
|
|
example_test_015:
|
|
|
|
extends: .example_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_PPP
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- $CI_PROJECT_DIR/examples/*/*/*.log
|
|
|
|
- $LOG_PATH
|
|
|
|
|
|
|
|
test_app_test_001:
|
|
|
|
extends: .test_app_template
|
2020-06-23 03:02:48 +00:00
|
|
|
parallel: 2
|
2020-05-07 10:47:46 +00:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- test_jtag_arm
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
2020-05-28 12:47:38 +00:00
|
|
|
- $CI_PROJECT_DIR/tools/test_apps/system/*/*.log
|
2020-05-07 10:47:46 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
2020-05-19 12:27:31 +00:00
|
|
|
PYTHON_VER: 3
|
2020-05-07 10:47:46 +00:00
|
|
|
|
|
|
|
test_app_test_002:
|
|
|
|
extends: .test_app_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
|
|
|
|
test_app_test_003:
|
|
|
|
extends: .test_app_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_PPP
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
UT_001:
|
|
|
|
extends: .unit_test_template
|
2020-06-25 17:24:46 +00:00
|
|
|
parallel: 39
|
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:
|
|
|
|
extends: .unit_test_template
|
2020-04-29 09:24:01 +00:00
|
|
|
parallel: 15
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_003:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
|
|
|
|
UT_004:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
|
|
|
UT_005:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_006:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_008:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_GPIO
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_012:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_LEDC
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_014:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_RS485
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_015:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_RMT
|
|
|
|
|
|
|
|
UT_016:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_RMT
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_017:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- EMMC
|
|
|
|
|
|
|
|
UT_018:
|
|
|
|
extends: .unit_test_template
|
2020-04-29 09:24:01 +00:00
|
|
|
parallel: 5
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
- 8Mpsram
|
|
|
|
|
|
|
|
UT_020:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_022:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_I2C
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_023:
|
|
|
|
extends: .unit_test_template
|
2019-11-07 18:47:00 +00:00
|
|
|
parallel: 2
|
2019-06-28 16:39:21 +00:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_MCPWM
|
|
|
|
|
|
|
|
UT_024:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_MCPWM
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_028:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_1
|
|
|
|
- psram
|
|
|
|
|
2019-08-18 05:22:50 +00:00
|
|
|
UT_031:
|
|
|
|
extends: .unit_test_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:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_Ethernet
|
|
|
|
- psram
|
|
|
|
|
2019-10-16 04:16:46 +00:00
|
|
|
UT_034:
|
2019-09-04 13:09:30 +00:00
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2020-01-22 04:05:33 +00:00
|
|
|
.unit_test_s2_template:
|
2019-10-16 04:16:46 +00:00
|
|
|
extends: .unit_test_template
|
2020-04-29 02:38:05 +00:00
|
|
|
dependencies:
|
|
|
|
- assign_test
|
|
|
|
- build_esp_idf_tests_cmake_esp32s2
|
2020-01-22 04:05:33 +00:00
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
# Due to lack of runners, the tests are only done by manual trigger
|
|
|
|
# - master
|
|
|
|
# - /^release\/v/
|
|
|
|
# - /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
- triggers
|
2020-02-27 03:20:08 +00:00
|
|
|
- schedules
|
2020-01-22 04:05:33 +00:00
|
|
|
variables:
|
2020-04-26 08:29:49 +00:00
|
|
|
# Due to lack of runners, S2 tests will only be triggered with label (@bot test will not trigger)
|
|
|
|
# - $BOT_TRIGGER_WITH_LABEL == null
|
2020-01-22 04:05:33 +00:00
|
|
|
- $BOT_LABEL_UNIT_TEST_S2
|
|
|
|
|
|
|
|
UT_035:
|
|
|
|
extends: .unit_test_s2_template
|
2020-04-03 09:11:39 +00:00
|
|
|
parallel: 38
|
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:
|
|
|
|
extends: .unit_test_template
|
|
|
|
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:
|
|
|
|
# extends: .unit_test_template
|
|
|
|
# tags:
|
|
|
|
# - ESP32S2_IDF
|
|
|
|
# - UT_T1_LEDC
|
2019-10-22 08:34:13 +00:00
|
|
|
|
2019-11-14 03:11:12 +00:00
|
|
|
UT_041:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_no32kXTAL
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_043:
|
|
|
|
extends: .unit_test_template
|
|
|
|
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:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_SDIO
|
|
|
|
|
|
|
|
UT_045:
|
|
|
|
extends: .unit_test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_SDIO
|
|
|
|
- psram
|
|
|
|
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
nvs_compatible_test:
|
|
|
|
extends: .test_template
|
|
|
|
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
|
|
|
|
- git clone $TEST_ENV_CONFIG_REPOSITORY
|
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
|
|
|
# clone test bench
|
|
|
|
- git clone $TEST_SCRIPT_REPOSITORY
|
|
|
|
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
|
|
|
|
- cd auto_test_script
|
|
|
|
# prepare nvs bins
|
|
|
|
- ./Tools/prepare_nvs_bin.sh
|
|
|
|
# run test
|
2019-08-18 05:22:50 +00:00
|
|
|
- python CIRunner.py -l "$LOG_PATH/$JOB_FULL_NAME" -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH
|
2019-06-28 16:39:21 +00:00
|
|
|
|
|
|
|
IT_001:
|
|
|
|
extends: .test_template
|
|
|
|
parallel: 3
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_4
|
|
|
|
|
|
|
|
IT_002:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_2
|
|
|
|
|
|
|
|
IT_003:
|
|
|
|
extends: .test_template
|
|
|
|
parallel: 13
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_5
|
|
|
|
|
|
|
|
IT_004:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_APC
|
|
|
|
|
|
|
|
IT_005:
|
|
|
|
extends: .test_template
|
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_5
|
|
|
|
|
|
|
|
IT_006:
|
|
|
|
extends: .test_template
|
|
|
|
parallel: 8
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_6
|
|
|
|
|
|
|
|
IT_007:
|
|
|
|
extends: .test_template
|
|
|
|
parallel: 3
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_7
|
|
|
|
|
|
|
|
IT_008:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_8
|
|
|
|
|
|
|
|
IT_009:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_3
|
|
|
|
|
|
|
|
IT_010:
|
|
|
|
extends: .test_template
|
|
|
|
parallel: 4
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T5_1
|
|
|
|
|
|
|
|
IT_011:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_MESH1
|
|
|
|
|
|
|
|
IT_012:
|
|
|
|
extends: .test_template
|
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_MESH1
|
|
|
|
|
|
|
|
IT_013:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T3_MESH1
|
|
|
|
|
|
|
|
IT_014:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T6_MESH1
|
|
|
|
|
|
|
|
IT_015:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T12_MESH1
|
|
|
|
|
|
|
|
IT_016:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T50_MESH1
|
|
|
|
|
|
|
|
IT_017:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_MESH2
|
|
|
|
|
|
|
|
IT_018:
|
|
|
|
extends: .test_template
|
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_9
|
|
|
|
|
|
|
|
IT_019:
|
|
|
|
extends: .test_template
|
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_2
|
|
|
|
|
|
|
|
IT_020:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_3
|
|
|
|
|
|
|
|
IT_021:
|
|
|
|
extends: .test_template
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_4
|