forked from espressif/esp-idf
ci: update intergration test to support esp32c3
This commit is contained in:
@ -110,6 +110,7 @@ assign_integration_test:
|
|||||||
- .rules:test:integration_test
|
- .rules:test:integration_test
|
||||||
needs:
|
needs:
|
||||||
- build_ssc_esp32
|
- build_ssc_esp32
|
||||||
|
- build_ssc_esp32c3
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- $TEST_DIR/test_configs
|
- $TEST_DIR/test_configs
|
||||||
@ -149,7 +150,7 @@ update_test_cases:
|
|||||||
SUBMODULES_TO_FETCH: "components/esptool_py/esptool"
|
SUBMODULES_TO_FETCH: "components/esptool_py/esptool"
|
||||||
UNIT_TEST_DIR: "${CI_PROJECT_DIR}/components/idf_test/unit_test"
|
UNIT_TEST_DIR: "${CI_PROJECT_DIR}/components/idf_test/unit_test"
|
||||||
BOT_ACCOUNT_CONFIG_FILE: "${CI_PROJECT_DIR}/test-management/Config/Account.local.yml"
|
BOT_ACCOUNT_CONFIG_FILE: "${CI_PROJECT_DIR}/test-management/Config/Account.local.yml"
|
||||||
AUTO_TEST_SCRIPT_PATH: "${CI_PROJECT_DIR}/auto_test_script"
|
PYTHONPATH: ${CI_PROJECT_DIR}/auto_test_script/packages
|
||||||
PYTHON_VER: 3.7.7
|
PYTHON_VER: 3.7.7
|
||||||
script:
|
script:
|
||||||
- export GIT_SHA=$(echo ${PIPELINE_COMMIT_SHA} | cut -c 1-8)
|
- export GIT_SHA=$(echo ${PIPELINE_COMMIT_SHA} | cut -c 1-8)
|
||||||
|
@ -767,18 +767,18 @@ component_ut_test_lan8720:
|
|||||||
extends:
|
extends:
|
||||||
- .target_test_job_template
|
- .target_test_job_template
|
||||||
- .rules:test:integration_test
|
- .rules:test:integration_test
|
||||||
needs:
|
needs: # the assign already needs all the build jobs
|
||||||
- assign_integration_test
|
- assign_integration_test
|
||||||
variables:
|
variables:
|
||||||
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32_IDF"
|
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32_IDF"
|
||||||
LOG_PATH: "${CI_PROJECT_DIR}/TEST_LOGS"
|
LOG_PATH: "${CI_PROJECT_DIR}/TEST_LOGS"
|
||||||
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/auto_test_script/TestCaseFiles"
|
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/auto_test_script/TestCaseFiles"
|
||||||
MODULE_UPDATE_FILE: "$CI_PROJECT_DIR/components/idf_test/ModuleDefinition.yml"
|
|
||||||
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/tools/ci/integration_test/test_configs"
|
CONFIG_FILE_PATH: "${CI_PROJECT_DIR}/tools/ci/integration_test/test_configs"
|
||||||
KNOWN_ISSUE_FILE: "${CI_PROJECT_DIR}/tools/ci/integration_test/KnownIssues"
|
KNOWN_ISSUE_FILE: "${CI_PROJECT_DIR}/tools/ci/integration_test/KnownIssues"
|
||||||
PREPARE_TEST_BIN_SCRIPT: "${CI_PROJECT_DIR}/tools/ci/integration_test/prepare_test_bins.py"
|
|
||||||
CI_RUNNER_SCRIPT: "${CI_PROJECT_DIR}/auto_test_script/bin/CIRunner.py"
|
CI_RUNNER_SCRIPT: "${CI_PROJECT_DIR}/auto_test_script/bin/CIRunner.py"
|
||||||
PYTHONPATH: ${CI_PROJECT_DIR}/auto_test_script/packages
|
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"
|
||||||
# auto_test_script only supports python 3.7.x
|
# auto_test_script only supports python 3.7.x
|
||||||
PYTHON_VER: 3.7.7
|
PYTHON_VER: 3.7.7
|
||||||
script:
|
script:
|
||||||
@ -798,6 +798,12 @@ component_ut_test_lan8720:
|
|||||||
- python ${PREPARE_TEST_BIN_SCRIPT} $CONFIG_FILE
|
- python ${PREPARE_TEST_BIN_SCRIPT} $CONFIG_FILE
|
||||||
- python ${CI_RUNNER_SCRIPT} -l "$LOG_PATH/$JOB_FULL_NAME" -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH
|
- python ${CI_RUNNER_SCRIPT} -l "$LOG_PATH/$JOB_FULL_NAME" -c $CONFIG_FILE -e $LOCAL_ENV_CONFIG_PATH -t $TEST_CASE_FILE_PATH
|
||||||
|
|
||||||
|
.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"
|
||||||
|
|
||||||
nvs_compatible_test:
|
nvs_compatible_test:
|
||||||
extends: .integration_test_template
|
extends: .integration_test_template
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -940,3 +946,10 @@ IT_022:
|
|||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- SSC_T3_2
|
- SSC_T3_2
|
||||||
|
|
||||||
|
IT_C3_001:
|
||||||
|
extends: .integration_test_esp32c3_template
|
||||||
|
parallel: 6
|
||||||
|
tags:
|
||||||
|
- ESP32C3_IDF
|
||||||
|
- SSC_T2_5
|
||||||
|
@ -84,11 +84,13 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
ref_to_use = ''
|
ref_to_use = ''
|
||||||
for candidate in candidate_branches:
|
for candidate in candidate_branches:
|
||||||
# check if candidate branch exists
|
# check if the branch, tag or commit exists
|
||||||
branch_match = subprocess.check_output(['git', 'branch', '-a', '--list', 'origin/' + candidate])
|
try:
|
||||||
if branch_match:
|
subprocess.check_call(['git', 'cat-file', '-t', candidate], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
ref_to_use = candidate
|
ref_to_use = candidate
|
||||||
break
|
break
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
continue
|
||||||
|
|
||||||
if ref_to_use:
|
if ref_to_use:
|
||||||
for _ in range(RETRY_COUNT):
|
for _ in range(RETRY_COUNT):
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
# MESH
|
# MESH
|
||||||
ESP32.MESH_EST_2109
|
ESP32.MESH_EST_2109
|
||||||
|
|
||||||
|
ESP32C3.NIMBLE_GAP_14009
|
||||||
|
21
tools/ci/integration_test/README.md
Normal file
21
tools/ci/integration_test/README.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Integration Test Description
|
||||||
|
|
||||||
|
## Case Lists
|
||||||
|
- WiFi Standard cases for only esp32.
|
||||||
|
- BLE Standard cases for esp32 and esp32c3.
|
||||||
|
|
||||||
|
## Trigger
|
||||||
|
- By labels:
|
||||||
|
- `integration_test`
|
||||||
|
- By file changes:
|
||||||
|
- integration test related files
|
||||||
|
- By bot:
|
||||||
|
- `@bot test with label: integration_test`
|
||||||
|
|
||||||
|
## Advanced
|
||||||
|
- There are labels can be used to run less integration test cases.
|
||||||
|
- These labels only take effect when the integration test has been triggered.
|
||||||
|
- label: `integration::wifi_only`
|
||||||
|
- Only run WiFi cases.
|
||||||
|
- label: `integration::ble_only`
|
||||||
|
- Only run BLE cases.
|
Reference in New Issue
Block a user