| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- .assign_test_template:
- image: $TARGET_TEST_ENV_IMAGE
- stage: assign_test
- tags:
- - assign_test
- variables:
- SUBMODULES_TO_FETCH: "none"
- artifacts:
- paths:
- - ${TEST_DIR}/test_configs/
- - artifact_index.json
- when: always
- expire_in: 1 week
- script:
- - run_cmd 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
- - job: build_examples_cmake_esp32c2
- artifacts: false
- optional: true
- - 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: 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
- - job: build_test_apps_esp32c2
- artifacts: false
- optional: true
- - 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: tools/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
- - job: build_esp_idf_tests_cmake_esp32c2
- optional: true
- - 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: components/idf_test/unit_test
- assign_integration_test:
- extends:
- - .assign_test_template
- - .rules:test:integration_test
- - .before_script_minimal
- image: ${CI_INTEGRATION_TEST_ENV_IMAGE}
- needs:
- - build_ssc_esp32
- - build_ssc_esp32c3
- artifacts:
- paths:
- - $TEST_DIR/test_configs
- expire_in: 1 week
- variables:
- TEST_DIR: ${CI_PROJECT_DIR}/tools/ci/integration_test
- BUILD_DIR: ${CI_PROJECT_DIR}/SSC/ssc_bin
- 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
- script:
- - add_gitlab_ssh_keys
- # clone test script to assign tests
- # 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
- # assign integration test cases
- - python ${ASSIGN_TEST_CASE_SCRIPT} -t ${INTEGRATION_TEST_CASE_PATH} -c $CI_TARGET_TEST_CONFIG_FILE -b ${BUILD_DIR} -o $TEST_DIR/test_configs
|