2022-01-06 10:21:21 -05:00
|
|
|
.assign_test_template:
|
2022-01-31 01:20:59 -05:00
|
|
|
image: $TARGET_TEST_ENV_IMAGE
|
2019-06-28 12:39:21 -04:00
|
|
|
stage: assign_test
|
2022-01-06 10:21:21 -05:00
|
|
|
tags:
|
|
|
|
- assign_test
|
2022-04-28 06:36:58 -04:00
|
|
|
variables:
|
|
|
|
SUBMODULES_TO_FETCH: "none"
|
2022-01-06 10:21:21 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- ${TEST_DIR}/test_configs
|
|
|
|
- ${BUILD_DIR}/artifact_index.json
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
script:
|
|
|
|
- python tools/ci/python_packages/ttfw_idf/IDFAssignTest.py $TEST_TYPE $TEST_DIR -c $CI_TARGET_TEST_CONFIG_FILE -o $TEST_DIR/test_configs
|
|
|
|
|
|
|
|
assign_example_test:
|
|
|
|
extends:
|
|
|
|
- .assign_test_template
|
|
|
|
- .rules:build:example_test
|
|
|
|
needs:
|
|
|
|
- job: build_examples_cmake_esp32
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
|
|
|
- job: build_examples_cmake_esp32s2
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
2022-05-19 14:42:46 -04:00
|
|
|
- job: build_examples_cmake_esp32c2
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
2022-01-06 10:21:21 -05:00
|
|
|
- job: build_examples_cmake_esp32c3
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
|
|
|
- job: build_examples_cmake_esp32s3
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
|
|
|
variables:
|
|
|
|
TEST_TYPE: example_test
|
|
|
|
TEST_DIR: ${CI_PROJECT_DIR}/examples
|
|
|
|
BUILD_DIR: ${CI_PROJECT_DIR}/build_examples
|
|
|
|
|
|
|
|
assign_custom_test:
|
|
|
|
extends:
|
|
|
|
- .assign_test_template
|
|
|
|
- .rules:build:custom_test
|
|
|
|
needs:
|
|
|
|
- job: build_test_apps_esp32
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
|
|
|
- job: build_test_apps_esp32s2
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
2022-05-19 14:42:46 -04:00
|
|
|
- job: build_test_apps_esp32c2
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
2022-01-06 10:21:21 -05:00
|
|
|
- job: build_test_apps_esp32c3
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
|
|
|
- job: build_test_apps_esp32s3
|
|
|
|
artifacts: false
|
|
|
|
optional: true
|
|
|
|
variables:
|
|
|
|
TEST_TYPE: custom_test
|
|
|
|
TEST_DIR: ${CI_PROJECT_DIR}/tools/test_apps
|
|
|
|
BUILD_DIR: ${CI_PROJECT_DIR}/build_test_apps
|
|
|
|
|
|
|
|
assign_unit_test:
|
|
|
|
extends:
|
|
|
|
- .assign_test_template
|
|
|
|
- .rules:build:unit_test
|
|
|
|
needs:
|
|
|
|
- job: build_esp_idf_tests_cmake_esp32
|
|
|
|
optional: true
|
|
|
|
- job: build_esp_idf_tests_cmake_esp32s2
|
|
|
|
optional: true
|
2022-05-19 14:42:46 -04:00
|
|
|
- job: build_esp_idf_tests_cmake_esp32c2
|
|
|
|
optional: true
|
2022-01-06 10:21:21 -05:00
|
|
|
- job: build_esp_idf_tests_cmake_esp32c3
|
|
|
|
optional: true
|
|
|
|
- job: build_esp_idf_tests_cmake_esp32s3
|
|
|
|
optional: true
|
|
|
|
variables:
|
|
|
|
TEST_TYPE: unit_test
|
|
|
|
TEST_DIR: ${CI_PROJECT_DIR}/components/idf_test/unit_test
|
|
|
|
BUILD_DIR: ${CI_PROJECT_DIR}/tools/unit-test-app/builds
|
|
|
|
script:
|
|
|
|
- python tools/ci/python_packages/ttfw_idf/IDFAssignTest.py $TEST_TYPE $TEST_DIR -c $CI_TARGET_TEST_CONFIG_FILE -o $TEST_DIR/test_configs
|
|
|
|
|
|
|
|
assign_integration_test:
|
|
|
|
extends:
|
|
|
|
- .assign_test_template
|
|
|
|
- .rules:test:integration_test
|
|
|
|
needs:
|
2019-12-19 21:52:33 -05:00
|
|
|
- build_ssc_esp32
|
2022-01-06 10:42:48 -05:00
|
|
|
- build_ssc_esp32c3
|
2022-01-06 10:21:21 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- $TEST_DIR/test_configs
|
2022-02-09 05:00:54 -05:00
|
|
|
expire_in: 1 week
|
2019-06-28 12:39:21 -04:00
|
|
|
variables:
|
2022-01-06 10:29:08 -05:00
|
|
|
TEST_DIR: ${CI_PROJECT_DIR}/tools/ci/integration_test
|
2022-01-06 10:21:21 -05:00
|
|
|
BUILD_DIR: ${CI_PROJECT_DIR}/SSC/ssc_bin
|
2020-10-23 21:21:17 -04:00
|
|
|
INTEGRATION_TEST_CASE_PATH: "${CI_PROJECT_DIR}/auto_test_script/TestCaseFiles"
|
|
|
|
ASSIGN_TEST_CASE_SCRIPT: "${CI_PROJECT_DIR}/auto_test_script/bin/CIAssignTestCases.py"
|
|
|
|
PYTHONPATH: ${CI_PROJECT_DIR}/auto_test_script/packages
|
|
|
|
PYTHON_VER: 3.7.7
|
2019-06-28 12:39:21 -04:00
|
|
|
script:
|
|
|
|
# clone test script to assign tests
|
2020-10-23 21:21:17 -04:00
|
|
|
# can not retry if downing git lfs files failed, so using empty_branch first.
|
2020-09-26 23:20:53 -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
|
2020-08-25 04:42:36 -04:00
|
|
|
# assign integration test cases
|
2022-01-06 10:21:21 -05:00
|
|
|
- python ${ASSIGN_TEST_CASE_SCRIPT} -t ${INTEGRATION_TEST_CASE_PATH} -c $CI_TARGET_TEST_CONFIG_FILE -b ${BUILD_DIR} -o $TEST_DIR/test_configs
|