2021-11-19 03:11:47 -05:00
|
|
|
.pytest_template:
|
2022-01-31 01:20:59 -05:00
|
|
|
image: $TARGET_TEST_ENV_IMAGE
|
2021-11-19 03:11:47 -05:00
|
|
|
stage: target_test
|
2022-02-09 05:00:54 -05:00
|
|
|
timeout: 1 hour
|
2021-11-19 03:11:47 -05:00
|
|
|
extends: .before_script_pytest
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- XUNIT_RESULT.xml
|
2022-04-02 04:47:58 -04:00
|
|
|
- pytest_embedded_log/
|
2021-11-19 03:11:47 -05:00
|
|
|
reports:
|
|
|
|
junit: XUNIT_RESULT.xml
|
2022-02-09 05:00:54 -05:00
|
|
|
expire_in: 1 week
|
2021-11-19 03:11:47 -05:00
|
|
|
script:
|
2022-03-14 03:33:14 -04:00
|
|
|
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
|
2022-05-21 12:38:17 -04:00
|
|
|
# using runner tags as markers to filter the test cases
|
|
|
|
# Runner tags are comma separated, replace the comma with " and " for markers
|
|
|
|
- job_tags=$(python tools/ci/python_packages/gitlab_api.py get_job_tags $CI_PROJECT_ID --job_id $CI_JOB_ID)
|
|
|
|
- markers=$(echo $job_tags | sed -e "s/,/ and /g")
|
|
|
|
- run_cmd pytest $TEST_DIR -m \"${markers}\" --junitxml=XUNIT_RESULT.xml --known-failure-cases-file known_failure_cases/known_failure_cases.txt
|
2021-11-19 03:11:47 -05:00
|
|
|
|
|
|
|
.pytest_examples_dir_template:
|
|
|
|
extends: .pytest_template
|
|
|
|
variables:
|
|
|
|
TEST_DIR: examples
|
|
|
|
|
|
|
|
example_test_pytest_esp32_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
2022-01-18 03:37:27 -05:00
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, generic ]
|
2021-11-19 03:11:47 -05:00
|
|
|
|
2022-04-07 01:10:57 -04:00
|
|
|
example_test_pytest_esp32_ir_transceiver:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, ir_transceiver ]
|
2022-04-07 01:10:57 -04:00
|
|
|
|
2021-11-30 22:32:50 -05:00
|
|
|
example_test_pytest_esp32s2_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32s2
|
|
|
|
needs:
|
2022-01-18 03:37:27 -05:00
|
|
|
- build_pytest_examples_esp32s2
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32s2, generic ]
|
2021-11-30 22:32:50 -05:00
|
|
|
|
2022-03-25 00:24:51 -04:00
|
|
|
example_test_pytest_esp32s3_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32s3
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32s3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32s3, generic ]
|
2022-01-18 23:12:15 -05:00
|
|
|
|
2022-05-19 14:42:46 -04:00
|
|
|
example_test_pytest_esp32c2_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32c2
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32c2
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32c2, generic ]
|
2022-05-19 14:42:46 -04:00
|
|
|
|
2021-11-19 03:11:47 -05:00
|
|
|
example_test_pytest_esp32c3_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32c3
|
|
|
|
needs:
|
2022-01-18 03:37:27 -05:00
|
|
|
- build_pytest_examples_esp32c3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32c3, generic ]
|
2021-11-19 03:11:47 -05:00
|
|
|
|
2022-01-05 04:05:57 -05:00
|
|
|
example_test_pytest_esp32c3_flash_suspend:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32c3
|
|
|
|
needs:
|
2022-01-18 03:37:27 -05:00
|
|
|
- build_pytest_examples_esp32c3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32c3, flash_suspend ]
|
2022-01-05 04:05:57 -05:00
|
|
|
|
2022-03-24 00:20:24 -04:00
|
|
|
example_test_pytest_esp32_ethernet_ota:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, ethernet_ota ]
|
2022-03-24 00:20:24 -04:00
|
|
|
|
2022-04-22 05:28:53 -04:00
|
|
|
example_test_pytest_esp32_wifi_ota:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, wifi_ota ]
|
2022-04-22 05:28:53 -04:00
|
|
|
|
|
|
|
example_test_pytest_esp32_flash_encryption_ota:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, flash_encryption_ota ]
|
2022-04-22 05:28:53 -04:00
|
|
|
|
|
|
|
example_test_pytest_esp32c3_flash_encryption_wifi_ota:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32c3
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32c3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32c3, flash_encryption_wifi_ota ]
|
2022-04-22 05:28:53 -04:00
|
|
|
|
|
|
|
example_test_pytest_esp32_ethernet:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, ethernet]
|
2022-04-22 05:28:53 -04:00
|
|
|
|
|
|
|
example_test_pytest_esp32_8mb_flash:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, ethernet_flash_8m ]
|
2022-04-22 05:28:53 -04:00
|
|
|
|
2022-05-10 05:31:03 -04:00
|
|
|
example_test_pytest_esp32_wifi:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, wifi ]
|
2022-05-10 05:31:03 -04:00
|
|
|
|
2022-05-10 05:42:17 -04:00
|
|
|
example_test_pytest_esp32_wifi_bt:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, wifi_bt ]
|
2022-05-10 05:42:17 -04:00
|
|
|
|
2022-03-31 08:52:27 -04:00
|
|
|
example_test_pytest_esp32_ethernet_ip101:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, ip101 ]
|
2022-03-31 08:52:27 -04:00
|
|
|
|
2022-04-14 00:54:04 -04:00
|
|
|
example_test_pytest_esp32_flash_encryption:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, flash_encryption ]
|
2022-04-14 00:54:04 -04:00
|
|
|
|
2022-05-07 00:18:56 -04:00
|
|
|
example_test_pytest_esp32_multi_dut_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, multi_dut_generic ]
|
2022-05-07 00:18:56 -04:00
|
|
|
|
2022-04-14 00:54:04 -04:00
|
|
|
example_test_pytest_esp32c3_flash_encryption:
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32c3
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32c3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32c3, flash_encryption ]
|
2022-04-14 00:54:04 -04:00
|
|
|
|
2022-05-25 23:30:31 -04:00
|
|
|
example_test_pytest_esp32s2_deepsleep: # Temp tag, will be removed IDF-5213
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32s2
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32s2
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32s2, deepsleep_temp_tag ]
|
2022-05-25 23:30:31 -04:00
|
|
|
|
|
|
|
example_test_pytest_esp32s3_deepsleep: # Temp tag, will be removed IDF-5213
|
|
|
|
extends:
|
|
|
|
- .pytest_examples_dir_template
|
|
|
|
- .rules:test:example_test-esp32s3
|
|
|
|
needs:
|
|
|
|
- build_pytest_examples_esp32s3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [esp32s3, deepsleep_temp_tag ]
|
2022-05-25 23:30:31 -04:00
|
|
|
|
2022-01-18 23:12:15 -05:00
|
|
|
.pytest_components_dir_template:
|
|
|
|
extends: .pytest_template
|
|
|
|
variables:
|
|
|
|
TEST_DIR: components
|
|
|
|
|
|
|
|
component_ut_pytest_esp32_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_components_dir_template
|
|
|
|
- .rules:test:component_ut-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_components_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, generic ]
|
2022-01-18 23:12:15 -05:00
|
|
|
|
|
|
|
component_ut_pytest_esp32_ip101:
|
|
|
|
extends:
|
|
|
|
- .pytest_components_dir_template
|
|
|
|
- .rules:test:component_ut-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_components_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, ip101 ]
|
2022-01-18 23:12:15 -05:00
|
|
|
|
|
|
|
component_ut_pytest_esp32_lan8720:
|
|
|
|
extends:
|
|
|
|
- .pytest_components_dir_template
|
2022-03-29 23:47:50 -04:00
|
|
|
- .rules:labels-protected:lan8720 # FIXME: IDFCI-1176
|
2022-01-18 23:12:15 -05:00
|
|
|
needs:
|
|
|
|
- build_pytest_components_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, lan8720 ]
|
2022-01-18 23:12:15 -05:00
|
|
|
|
|
|
|
component_ut_pytest_esp32s2_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_components_dir_template
|
|
|
|
- .rules:test:component_ut-esp32s2
|
|
|
|
needs:
|
|
|
|
- build_pytest_components_esp32s2
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32s2, generic ]
|
2022-01-18 23:12:15 -05:00
|
|
|
|
2022-03-25 00:24:51 -04:00
|
|
|
component_ut_pytest_esp32s3_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_components_dir_template
|
|
|
|
- .rules:test:component_ut-esp32s3
|
|
|
|
needs:
|
|
|
|
- build_pytest_components_esp32s3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32s3, generic ]
|
2022-01-18 23:12:15 -05:00
|
|
|
|
2021-09-23 00:06:13 -04:00
|
|
|
component_ut_pytest_esp32s3_octal_psram:
|
|
|
|
extends:
|
|
|
|
- .pytest_components_dir_template
|
|
|
|
- .rules:test:component_ut-esp32s3
|
|
|
|
needs:
|
|
|
|
- build_pytest_components_esp32s3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32s3, octal_psram ]
|
2021-09-23 00:06:13 -04:00
|
|
|
|
2022-05-19 14:42:46 -04:00
|
|
|
component_ut_pytest_esp32c2_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_components_dir_template
|
|
|
|
- .rules:test:component_ut-esp32c2
|
|
|
|
needs:
|
|
|
|
- build_pytest_components_esp32c2
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32c2, generic ]
|
2022-05-19 14:42:46 -04:00
|
|
|
|
2022-01-18 23:12:15 -05:00
|
|
|
component_ut_pytest_esp32c3_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_components_dir_template
|
|
|
|
- .rules:test:component_ut-esp32c3
|
|
|
|
needs:
|
|
|
|
- build_pytest_components_esp32c3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32c3, generic ]
|
2022-01-18 23:12:15 -05:00
|
|
|
|
2022-02-11 02:47:32 -05:00
|
|
|
.pytest_test_apps_dir_template:
|
|
|
|
extends: .pytest_template
|
|
|
|
variables:
|
|
|
|
TEST_DIR: tools/test_apps
|
|
|
|
|
|
|
|
test_app_test_pytest_esp32_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_test_apps_dir_template
|
|
|
|
- .rules:test:custom_test-esp32
|
|
|
|
needs:
|
|
|
|
- build_pytest_test_apps_esp32
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32, generic ]
|
2022-02-11 02:47:32 -05:00
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1" # need gdb
|
|
|
|
|
|
|
|
test_app_test_pytest_esp32s2_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_test_apps_dir_template
|
|
|
|
- .rules:test:custom_test-esp32s2
|
|
|
|
needs:
|
|
|
|
- build_pytest_test_apps_esp32s2
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32s2, generic ]
|
2022-02-11 02:47:32 -05:00
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1" # need gdb
|
2022-03-07 22:36:57 -05:00
|
|
|
|
2022-03-25 00:24:51 -04:00
|
|
|
test_app_test_pytest_esp32s3_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_test_apps_dir_template
|
|
|
|
- .rules:test:custom_test-esp32s3
|
|
|
|
needs:
|
|
|
|
- build_pytest_test_apps_esp32s3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32s3, generic ]
|
2022-03-07 22:36:57 -05:00
|
|
|
|
2022-05-19 14:42:46 -04:00
|
|
|
test_app_test_pytest_esp32c2_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_test_apps_dir_template
|
|
|
|
- .rules:test:custom_test-esp32c2
|
|
|
|
needs:
|
|
|
|
- build_pytest_test_apps_esp32c2
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32c2, generic ]
|
2022-05-19 14:42:46 -04:00
|
|
|
|
2022-03-07 22:36:57 -05:00
|
|
|
test_app_test_pytest_esp32c3_generic:
|
|
|
|
extends:
|
|
|
|
- .pytest_test_apps_dir_template
|
|
|
|
- .rules:test:custom_test-esp32c3
|
|
|
|
needs:
|
|
|
|
- build_pytest_test_apps_esp32c3
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32c3, generic ]
|
2022-02-11 02:47:32 -05:00
|
|
|
|
2022-02-10 05:16:53 -05:00
|
|
|
test_app_test_pytest_esp32s2_usb_host:
|
|
|
|
extends:
|
|
|
|
- .pytest_test_apps_dir_template
|
|
|
|
- .rules:test:custom_test-esp32s2
|
|
|
|
needs:
|
|
|
|
- build_pytest_test_apps_esp32s2
|
2022-05-21 12:38:17 -04:00
|
|
|
tags: [ esp32s2, usb_host ]
|
2022-02-10 05:16:53 -05:00
|
|
|
|
2019-06-28 12:39:21 -04: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-26 23:20:53 -04: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 12:39:21 -04:00
|
|
|
|
2020-09-26 23:20:53 -04:00
|
|
|
.target_test_job_template:
|
2019-06-28 12:39:21 -04:00
|
|
|
stage: target_test
|
2022-02-09 05:00:54 -05:00
|
|
|
timeout: 1 hour
|
2022-01-31 01:20:59 -05:00
|
|
|
image: $TARGET_TEST_ENV_IMAGE
|
2019-06-28 12:39:21 -04:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
2021-06-02 22:34:51 -04:00
|
|
|
- "**/*.log"
|
2019-06-28 12:39:21 -04:00
|
|
|
- $LOG_PATH
|
2022-01-20 07:56:38 -05:00
|
|
|
exclude:
|
|
|
|
- .git/**/*
|
2019-06-28 12:39:21 -04:00
|
|
|
reports:
|
2020-09-26 23:20:53 -04:00
|
|
|
junit: $LOG_PATH/*/XUNIT_RESULT.xml
|
2022-02-09 05:00:54 -05:00
|
|
|
expire_in: 1 week
|
2019-06-28 12:39:21 -04:00
|
|
|
variables:
|
2020-09-26 23:20:53 -04:00
|
|
|
TEST_FW_PATH: "$CI_PROJECT_DIR/tools/tiny-test-fw"
|
2019-06-28 12:39:21 -04:00
|
|
|
LOG_PATH: "$CI_PROJECT_DIR/TEST_LOGS"
|
|
|
|
ENV_FILE: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/EnvConfig.yml"
|
2022-04-28 06:36:58 -04:00
|
|
|
SUBMODULES_TO_FETCH: "none"
|
2019-06-28 12:39:21 -04:00
|
|
|
script:
|
|
|
|
- *define_config_file_name
|
|
|
|
# first test if config file exists, if not exist, exit 0
|
2021-04-09 05:14:58 -04: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 12:39:21 -04:00
|
|
|
# clone test env configs
|
2020-09-26 23:20:53 -04:00
|
|
|
- retry_failed git clone $TEST_ENV_CONFIG_REPO
|
2019-06-28 12:39:21 -04:00
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
2021-01-25 04:27:16 -05:00
|
|
|
# git clone the known failure cases repo, run test
|
|
|
|
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
|
2019-06-28 12:39:21 -04:00
|
|
|
# run test
|
2021-01-25 04:27:16 -05: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 04:04:13 -05:00
|
|
|
|
2020-09-26 23:20:53 -04:00
|
|
|
.example_test_template:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .target_test_job_template
|
2022-01-06 10:21:21 -05:00
|
|
|
needs:
|
|
|
|
- assign_example_test
|
2019-11-26 00:16:25 -05:00
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/examples"
|
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/examples/test_configs"
|
2019-06-28 12:39:21 -04:00
|
|
|
|
2020-09-26 23:20:53 -04:00
|
|
|
.example_debug_template:
|
2020-11-12 04:58:24 -05:00
|
|
|
extends:
|
2021-02-08 23:31:38 -05:00
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32
|
2021-09-15 23:16:52 -04:00
|
|
|
variables:
|
2021-02-08 23:31:38 -05:00
|
|
|
SUBMODULES_TO_FETCH: "all"
|
2019-06-28 12:39:21 -04:00
|
|
|
|
|
|
|
test_weekend_mqtt:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends:
|
2021-06-10 03:10:16 -04:00
|
|
|
- .test_app_esp32_template
|
2021-02-08 23:31:38 -05:00
|
|
|
- .rules:labels:weekend_test
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
2022-01-26 10:38:31 -05:00
|
|
|
- Example_EthKitV1
|
2021-06-10 10:46:12 -04: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 03:53:26 -04:00
|
|
|
- run_cmd python Runner.py $TEST_PATH -c $TEST_PATH/publish_connect_mqtt_.yml
|
2019-06-28 12:39:21 -04:00
|
|
|
|
2021-02-08 23:31:38 -05:00
|
|
|
.example_test_esp32_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32
|
|
|
|
|
2021-02-17 07:45:49 -05:00
|
|
|
.example_test_esp32s2_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32s2
|
|
|
|
|
2022-05-19 14:42:46 -04:00
|
|
|
.example_test_esp32c2_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32c2
|
|
|
|
|
2021-03-12 01:05:17 -05:00
|
|
|
.example_test_esp32c3_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
2021-10-22 03:19:19 -04:00
|
|
|
- .rules:test:example_test-esp32c3
|
2021-03-12 01:05:17 -05:00
|
|
|
|
2021-08-31 14:09:21 -04:00
|
|
|
.example_test_esp32s3_template:
|
|
|
|
extends:
|
|
|
|
- .example_test_template
|
|
|
|
- .rules:test:example_test-esp32s3
|
|
|
|
|
2019-12-26 04:38:56 -05:00
|
|
|
example_test_001B:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2019-12-26 04:38:56 -05:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_EthKitV1
|
|
|
|
|
2021-03-15 11:59:56 -04:00
|
|
|
example_test_001B_V3:
|
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_EthKitV12
|
|
|
|
|
2020-06-11 02:22:05 -04:00
|
|
|
example_test_001C:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2022-03-25 00:57:15 -04:00
|
|
|
parallel: 2
|
2020-06-11 02:22:05 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-03-25 05:50:30 -04:00
|
|
|
example_test_protocols:
|
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI_Protocols
|
|
|
|
|
2019-06-28 12:39:21 -04:00
|
|
|
example_test_002:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ShieldBox_Basic
|
|
|
|
|
2021-08-25 01:31:34 -04:00
|
|
|
example_test_ethernet:
|
2021-07-27 21:39:02 -04:00
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Ethernet
|
|
|
|
|
2019-06-28 12:39:21 -04:00
|
|
|
.example_test_003:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_SDIO
|
|
|
|
|
2019-10-25 02:10:06 -04:00
|
|
|
example_test_004A:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-03-11 12:45:02 -04:00
|
|
|
- Example_TWAI1
|
2019-10-25 02:10:06 -04:00
|
|
|
|
|
|
|
example_test_004B:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2019-10-25 02:10:06 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-03-11 12:45:02 -04:00
|
|
|
- Example_TWAI2
|
2019-06-28 12:39:21 -04:00
|
|
|
|
|
|
|
example_test_005:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI_BT
|
|
|
|
|
|
|
|
example_test_006:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends:
|
2021-02-08 23:31:38 -05:00
|
|
|
- .example_test_esp32_template
|
|
|
|
- .rules:labels:iperf_stress_test
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ShieldBox
|
|
|
|
|
|
|
|
example_test_007:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_I2C_CCS811_SENSOR
|
|
|
|
|
2019-07-22 10:04:03 -04:00
|
|
|
example_test_009:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2019-07-22 10:04:03 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- test_jtag_arm
|
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
2020-05-19 08:27:31 -04:00
|
|
|
PYTHON_VER: 3
|
2019-07-22 10:04:03 -04:00
|
|
|
|
2019-09-30 10:26:34 -04:00
|
|
|
example_test_010:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2019-09-30 10:26:34 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_ExtFlash
|
|
|
|
|
2019-11-26 00:16:25 -05:00
|
|
|
example_test_011:
|
|
|
|
extends: .example_debug_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
2020-10-19 04:17:19 -04:00
|
|
|
- Example_T2_RS485
|
2019-11-26 00:16:25 -05:00
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
|
|
|
|
2020-03-30 10:26:21 -04:00
|
|
|
example_test_013:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2020-03-30 10:26:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
|
2020-07-21 12:34:04 -04:00
|
|
|
example_test_016:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .example_test_esp32_template
|
2020-07-21 12:34:04 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_Modbus_TCP
|
|
|
|
|
2021-02-17 07:45:49 -05:00
|
|
|
example_test_017:
|
|
|
|
extends: .example_test_esp32s2_template
|
|
|
|
tags:
|
|
|
|
- ESP32S2
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-03-12 01:05:17 -05:00
|
|
|
example_test_C3_GENERIC:
|
|
|
|
extends: .example_test_esp32c3_template
|
2022-03-25 00:57:15 -04:00
|
|
|
parallel: 2
|
2021-03-12 01:05:17 -05:00
|
|
|
tags:
|
|
|
|
- ESP32C3
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-03-14 16:32:20 -04:00
|
|
|
example_test_ESP32_SDSPI:
|
|
|
|
extends: .example_test_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
2021-09-22 22:57:05 -04: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 01:05:17 -05:00
|
|
|
|
2021-02-08 23:31:38 -05:00
|
|
|
.test_app_template:
|
|
|
|
extends: .target_test_job_template
|
2022-01-06 10:21:21 -05:00
|
|
|
needs:
|
|
|
|
- assign_custom_test
|
2021-02-08 23:31:38 -05: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
|
|
|
|
|
2022-05-19 14:42:46 -04:00
|
|
|
.test_app_esp32c2_template:
|
|
|
|
extends:
|
|
|
|
- .test_app_template
|
|
|
|
- .rules:test:custom_test-esp32c2
|
|
|
|
|
2021-01-27 16:03:07 -05:00
|
|
|
.test_app_esp32c3_template:
|
|
|
|
extends:
|
|
|
|
- .test_app_template
|
|
|
|
- .rules:test:custom_test-esp32c3
|
|
|
|
|
2021-09-09 03:50:42 -04:00
|
|
|
.test_app_esp32s3_template:
|
|
|
|
extends:
|
|
|
|
- .test_app_template
|
|
|
|
- .rules:test:custom_test-esp32s3
|
|
|
|
|
2020-05-07 06:47:46 -04:00
|
|
|
test_app_test_001:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .test_app_esp32_template
|
2020-05-07 06:47:46 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- test_jtag_arm
|
|
|
|
variables:
|
|
|
|
SETUP_TOOLS: "1"
|
|
|
|
|
|
|
|
test_app_test_002:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .test_app_esp32_template
|
2020-05-07 06:47:46 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_WIFI
|
|
|
|
|
2022-01-12 04:42:37 -05:00
|
|
|
test_app_test_eth:
|
|
|
|
extends: .test_app_esp32_template
|
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_EthKitV1
|
|
|
|
|
2020-05-07 06:47:46 -04:00
|
|
|
test_app_test_003:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .test_app_esp32_template
|
2020-05-07 06:47:46 -04:00
|
|
|
tags:
|
|
|
|
- ESP32
|
|
|
|
- Example_PPP
|
|
|
|
|
2020-10-07 23:19:23 -04:00
|
|
|
test_app_test_004:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .test_app_esp32s2_template
|
2020-12-03 04:53:27 -05:00
|
|
|
tags:
|
|
|
|
- ESP32S2
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2022-05-19 14:42:46 -04:00
|
|
|
test_app_test_esp32c2_generic:
|
|
|
|
extends: .test_app_esp32c2_template
|
|
|
|
tags:
|
|
|
|
- ESP32C2
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-01-27 16:03:07 -05:00
|
|
|
test_app_test_005:
|
|
|
|
extends: .test_app_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-12-22 01:25:59 -05:00
|
|
|
test_app_test_006:
|
|
|
|
extends: .test_app_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3
|
|
|
|
- Example_GENERIC
|
|
|
|
|
2020-12-03 04:53:27 -05:00
|
|
|
test_app_test_esp32_generic:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .test_app_esp32_template
|
2020-10-07 23:19:23 -04:00
|
|
|
tags:
|
2020-06-16 15:06:36 -04:00
|
|
|
- ESP32
|
2020-10-07 23:19:23 -04:00
|
|
|
- Example_GENERIC
|
|
|
|
|
2021-09-09 03:50:42 -04: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-06 21:18:08 -05:00
|
|
|
test_app_test_flash_psram_f8r8:
|
2021-09-09 03:50:42 -04:00
|
|
|
extends: .test_app_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3
|
|
|
|
- MSPI_F8R8
|
|
|
|
|
2021-02-08 23:31:38 -05:00
|
|
|
.unit_test_template:
|
|
|
|
extends: .target_test_job_template
|
2022-01-06 10:21:21 -05:00
|
|
|
needs: # the assign already needs all the build jobs
|
|
|
|
- assign_unit_test
|
2021-02-08 23:31:38 -05:00
|
|
|
variables:
|
|
|
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/tools/unit-test-app"
|
2022-01-06 10:21:21 -05:00
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/components/idf_test/unit_test/test_configs"
|
2021-02-08 23:31:38 -05: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 06:17:13 -04:00
|
|
|
.unit_test_esp32s3_template:
|
|
|
|
extends:
|
|
|
|
- .unit_test_template
|
|
|
|
- .rules:test:unit_test-esp32s3
|
|
|
|
|
2022-05-19 14:42:46 -04:00
|
|
|
.unit_test_esp32c2_template:
|
|
|
|
extends:
|
|
|
|
- .unit_test_template
|
|
|
|
- .rules:test:unit_test-esp32c2
|
|
|
|
|
2021-02-08 23:31:38 -05:00
|
|
|
.unit_test_esp32c3_template:
|
|
|
|
extends:
|
|
|
|
- .unit_test_template
|
|
|
|
- .rules:test:unit_test-esp32c3
|
|
|
|
|
2019-06-28 12:39:21 -04:00
|
|
|
UT_001:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2021-01-07 04:39:40 -05:00
|
|
|
parallel: 50
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2019-07-10 08:19:13 -04:00
|
|
|
# Max. allowed value of 'parallel' is 50.
|
|
|
|
|
2019-06-28 12:39:21 -04:00
|
|
|
UT_002:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2022-01-27 06:59:19 -05:00
|
|
|
parallel: 21
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_003:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2020-08-31 16:57:30 -04:00
|
|
|
parallel: 2
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
|
|
|
|
UT_004:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
|
|
|
UT_005:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SDMODE
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_006:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
- psram
|
|
|
|
|
2021-06-17 23:52:47 -04:00
|
|
|
UT_007:
|
|
|
|
extends: .unit_test_esp32_template
|
2022-05-19 14:42:46 -04:00
|
|
|
parallel: 2
|
2021-06-17 23:52:47 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2019-06-28 12:39:21 -04:00
|
|
|
UT_008:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_GPIO
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_014:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_RS485
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_017:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- EMMC
|
|
|
|
|
|
|
|
UT_018:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2020-09-15 11:14:31 -04:00
|
|
|
parallel: 2
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
- 8Mpsram
|
|
|
|
|
|
|
|
UT_020:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
- psram
|
|
|
|
|
2021-01-27 04:11:33 -05:00
|
|
|
UT_021:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2021-01-27 04:11:33 -05:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- psram
|
|
|
|
- UT_T1_FlashEncryption
|
|
|
|
|
2019-06-28 12:39:21 -04:00
|
|
|
UT_022:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_I2C
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_028:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_1
|
|
|
|
- psram
|
|
|
|
|
2019-08-18 01:22:50 -04:00
|
|
|
UT_031:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-08-23 00:37:55 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_FlashEncryption
|
|
|
|
|
2019-09-18 23:27:42 -04:00
|
|
|
UT_033:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-09-18 23:27:42 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T2_Ethernet
|
|
|
|
- psram
|
|
|
|
|
2019-10-16 00:16:46 -04:00
|
|
|
UT_034:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2021-08-22 22:03:09 -04:00
|
|
|
parallel: 2
|
2019-09-04 09:09:30 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2020-01-21 23:05:33 -05:00
|
|
|
UT_035:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32s2_template
|
2021-02-05 02:03:16 -05:00
|
|
|
parallel: 50
|
2019-10-16 00:16:46 -04:00
|
|
|
tags:
|
2020-01-16 22:47:08 -05:00
|
|
|
- ESP32S2_IDF
|
2019-10-16 00:16:46 -04:00
|
|
|
- UT_T1_1
|
|
|
|
|
2019-10-31 00:00:46 -04:00
|
|
|
UT_036:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-10-31 00:00:46 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_PSRAMV0
|
|
|
|
- psram
|
|
|
|
|
2020-04-03 11:52:07 -04:00
|
|
|
UT_038:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32s2_template
|
2021-08-22 22:03:09 -04:00
|
|
|
parallel: 2
|
2020-04-03 11:52:07 -04:00
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2019-11-13 22:11:12 -05:00
|
|
|
UT_041:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-11-13 22:11:12 -05:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_no32kXTAL
|
|
|
|
- psram
|
|
|
|
|
|
|
|
UT_043:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-11-13 22:11:12 -05:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_32kXTAL
|
|
|
|
- psram
|
2019-10-31 00:00:46 -04:00
|
|
|
|
2019-09-28 04:49:23 -04:00
|
|
|
UT_044:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-09-28 04:49:23 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_SDIO
|
|
|
|
|
|
|
|
UT_045:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2019-09-28 04:49:23 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_SDIO
|
|
|
|
- psram
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-09-15 11:14:31 -04:00
|
|
|
UT_046:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32_template
|
2020-09-15 11:14:31 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- UT_T1_GPIO
|
2019-09-28 04:49:23 -04:00
|
|
|
|
2021-02-24 16:21:05 -05:00
|
|
|
UT_047:
|
|
|
|
extends: .unit_test_esp32s2_template
|
2022-06-03 04:42:14 -04:00
|
|
|
parallel: 6
|
2021-02-24 16:21:05 -05:00
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2021-06-30 21:32:25 -04:00
|
|
|
UT_S2_SPI_DUAL:
|
|
|
|
extends: .unit_test_esp32s2_template
|
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
|
2021-09-22 22:57:05 -04:00
|
|
|
UT_S2_SDSPI:
|
|
|
|
extends: .unit_test_esp32s2_template
|
|
|
|
tags:
|
|
|
|
- ESP32S2_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
2022-05-19 14:42:46 -04:00
|
|
|
UT_C2:
|
|
|
|
extends: .unit_test_esp32c2_template
|
2022-06-03 04:42:14 -04:00
|
|
|
parallel: 20
|
2022-05-19 14:42:46 -04:00
|
|
|
tags:
|
|
|
|
- ESP32C2_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2020-12-30 03:10:37 -05:00
|
|
|
UT_C3:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32c3_template
|
2022-05-19 14:42:46 -04:00
|
|
|
parallel: 31
|
2020-12-30 03:10:37 -05:00
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
|
2021-01-22 05:04:27 -05:00
|
|
|
UT_C3_FLASH:
|
2021-02-08 23:31:38 -05:00
|
|
|
extends: .unit_test_esp32c3_template
|
2021-02-23 02:52:04 -05:00
|
|
|
parallel: 2
|
2021-01-22 05:04:27 -05:00
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2021-03-16 03:56:15 -04:00
|
|
|
UT_C3_SPI_DUAL:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
|
2021-03-17 04:11:03 -04:00
|
|
|
UT_C3_FLASH_ENC:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_FlashEncryption
|
|
|
|
|
2021-02-23 02:52:04 -05:00
|
|
|
UT_C3_I2C:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T2_I2C
|
|
|
|
|
2021-04-12 05:35:59 -04:00
|
|
|
UT_C3_FLASH_SUSPEND:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_Flash_Suspend
|
|
|
|
|
2021-09-22 22:57:05 -04:00
|
|
|
UT_C3_SDSPI:
|
|
|
|
extends: .unit_test_esp32c3_template
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- UT_T1_SPIMODE
|
|
|
|
|
2022-03-25 00:24:51 -04:00
|
|
|
UT_S3:
|
|
|
|
extends: .unit_test_esp32s3_template
|
2022-06-27 03:24:07 -04:00
|
|
|
parallel: 29
|
2022-03-25 00:24:51 -04:00
|
|
|
tags:
|
|
|
|
- ESP32S3_IDF
|
|
|
|
- UT_T1_1
|
2021-06-07 06:17:13 -04:00
|
|
|
|
2022-05-12 09:36:44 -04:00
|
|
|
UT_S3_QUAD_PSRAM:
|
|
|
|
extends: .unit_test_esp32s3_template
|
2022-05-19 14:42:46 -04:00
|
|
|
parallel: 4
|
2022-05-12 09:36:44 -04:00
|
|
|
tags:
|
|
|
|
- ESP32S3_IDF
|
|
|
|
- UT_T1_1
|
|
|
|
- quad_psram
|
|
|
|
|
2021-06-30 21:32:25 -04:00
|
|
|
UT_S3_SPI_DUAL:
|
|
|
|
extends: .unit_test_esp32s3_template
|
|
|
|
tags:
|
|
|
|
- ESP32S3_IDF
|
|
|
|
- Example_SPI_Multi_device
|
|
|
|
|
2021-06-21 07:43:51 -04:00
|
|
|
UT_S3_FLASH:
|
|
|
|
extends: .unit_test_esp32s3_template
|
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32S3_IDF
|
|
|
|
- UT_T1_ESP_FLASH
|
|
|
|
|
2021-02-08 23:31:38 -05:00
|
|
|
.integration_test_template:
|
|
|
|
extends:
|
|
|
|
- .target_test_job_template
|
|
|
|
- .rules:test:integration_test
|
2022-01-19 22:59:32 -05:00
|
|
|
# needn't install idf python env
|
2022-04-27 01:58:50 -04:00
|
|
|
- .before_script_integration_test
|
2022-01-06 10:42:48 -05:00
|
|
|
needs: # the assign already needs all the build jobs
|
2022-01-06 10:21:21 -05:00
|
|
|
- assign_integration_test
|
2021-02-08 23:31:38 -05:00
|
|
|
variables:
|
|
|
|
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32_IDF"
|
2021-07-20 22:02:52 -04:00
|
|
|
LOG_PATH: "${CI_PROJECT_DIR}/TEST_LOGS"
|
2021-02-08 23:31:38 -05:00
|
|
|
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/auto_test_script/TestCaseFiles"
|
2022-01-06 10:29:08 -05:00
|
|
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/tools/ci/integration_test/test_configs"
|
|
|
|
KNOWN_ISSUE_FILE: "${CI_PROJECT_DIR}/tools/ci/integration_test/KnownIssues"
|
2021-02-08 23:31:38 -05:00
|
|
|
CI_RUNNER_SCRIPT: "${CI_PROJECT_DIR}/auto_test_script/bin/CIRunner.py"
|
2022-01-06 10:42:48 -05:00
|
|
|
PREPARE_TEST_BIN_SCRIPT: "${CI_PROJECT_DIR}/tools/ci/integration_test/prepare_test_bins.py"
|
|
|
|
PYTHONPATH: "${CI_PROJECT_DIR}/auto_test_script/packages:${PYTHONPATH}"
|
|
|
|
INITIAL_CONDITION_RETRY_COUNT: "1"
|
2021-02-08 23:31:38 -05:00
|
|
|
# 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
|
2022-01-06 10:33:08 -05:00
|
|
|
- python ${PREPARE_TEST_BIN_SCRIPT} $CONFIG_FILE
|
2021-02-08 23:31:38 -05:00
|
|
|
- python ${CI_RUNNER_SCRIPT} -l "$LOG_PATH/$JOB_FULL_NAME" -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH
|
|
|
|
|
2022-01-06 10:42:48 -05:00
|
|
|
.integration_test_esp32c3_template:
|
|
|
|
extends:
|
|
|
|
- .integration_test_template
|
|
|
|
variables:
|
|
|
|
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32C3_IDF"
|
|
|
|
|
2019-06-28 12:39:21 -04:00
|
|
|
nvs_compatible_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04: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
|
2022-01-19 22:59:32 -05:00
|
|
|
# prepare test utilities
|
|
|
|
- source tools/ci/setup_python.sh
|
|
|
|
- add_gitlab_ssh_keys
|
|
|
|
- fetch_submodules
|
2019-06-28 12:39:21 -04:00
|
|
|
# clone local test env configs
|
2020-09-28 02:27:10 -04:00
|
|
|
- retry_failed git clone $TEST_ENV_CONFIG_REPO
|
2019-06-28 12:39:21 -04:00
|
|
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
|
|
|
# clone test bench
|
2020-10-23 21:21:17 -04:00
|
|
|
# can not retry if downing git lfs files failed, so using empty_branch first.
|
2020-09-28 02:27:10 -04: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 02:39:42 -04:00
|
|
|
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script --customized_only
|
2019-06-28 12:39:21 -04:00
|
|
|
# prepare nvs bins
|
2020-10-23 21:21:17 -04:00
|
|
|
- cd auto_test_script
|
|
|
|
- ./tools/prepare_nvs_bin.sh
|
2019-06-28 12:39:21 -04:00
|
|
|
# run test
|
2022-01-06 10:33:08 -05:00
|
|
|
- python ${PREPARE_TEST_BIN_SCRIPT} $CONFIG_FILE
|
2020-10-23 21:21:17 -04: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-28 12:39:21 -04:00
|
|
|
|
|
|
|
IT_001:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2021-07-21 23:24:11 -04:00
|
|
|
parallel: 2
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_4
|
|
|
|
|
|
|
|
IT_002:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_2
|
|
|
|
|
|
|
|
IT_003:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2021-07-21 23:24:11 -04:00
|
|
|
parallel: 9
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_5
|
|
|
|
|
|
|
|
IT_005:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_5
|
|
|
|
|
|
|
|
IT_006:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2021-07-21 23:24:11 -04:00
|
|
|
parallel: 5
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_6
|
|
|
|
|
|
|
|
IT_007:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_7
|
|
|
|
|
|
|
|
IT_008:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_8
|
|
|
|
|
|
|
|
IT_011:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_MESH1
|
|
|
|
|
|
|
|
IT_012:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
parallel: 2
|
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_MESH1
|
|
|
|
|
|
|
|
IT_013:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T3_MESH1
|
|
|
|
|
|
|
|
IT_014:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T6_MESH1
|
|
|
|
|
|
|
|
IT_015:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T12_MESH1
|
|
|
|
|
|
|
|
IT_016:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2020-07-16 04:27:33 -04:00
|
|
|
allow_failure: true
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T50_MESH1
|
|
|
|
|
|
|
|
IT_017:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_MESH2
|
|
|
|
|
|
|
|
IT_018:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T1_9
|
|
|
|
|
|
|
|
IT_019:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_2
|
|
|
|
|
|
|
|
IT_020:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
|
|
|
- SSC_T2_3
|
|
|
|
|
2021-07-21 23:24:11 -04:00
|
|
|
IT_022:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .integration_test_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- ESP32_IDF
|
2021-07-21 23:24:11 -04:00
|
|
|
- SSC_T3_2
|
2022-01-06 10:42:48 -05:00
|
|
|
|
|
|
|
IT_C3_001:
|
|
|
|
extends: .integration_test_esp32c3_template
|
|
|
|
parallel: 6
|
|
|
|
tags:
|
|
|
|
- ESP32C3_IDF
|
|
|
|
- SSC_T2_5
|