tools/ci : Added the support to execute python certification tests in CI.

- Added the support of the certification tests in CI for esp32c6.
- Added pytest_cert_helper script to execute certification tests.
- Added the json file to maintain and modify a list of tests to be run in the CI.
- Added the PICS file for extended_color_light for wifi for the certification tests.
- Added the support to post the test results on gitlab MR.
- Added the support to use certification test json file as an argument to pytests.
- Added support to use gitlab environment variables like ssid and password in pytests.
This commit is contained in:
shripad621git
2024-11-13 21:46:31 +05:30
parent 235570933c
commit 61d3c363a0
9 changed files with 932 additions and 7 deletions
+11 -1
View File
@@ -525,9 +525,19 @@ pytest_esp32c6_esp_matter_dut:
- cd ${ESP_MATTER_PATH}
- rm -rf connectedhomeip/connectedhomeip
- ln -s ${CHIP_SUBMODULE_PATH} connectedhomeip/connectedhomeip
- cd connectedhomeip/connectedhomeip
- source out/py-env/bin/activate
- cd ${ESP_MATTER_PATH}
- cp ${ESP_MATTER_PATH}/tools/ci/extended_color_light_wifi_pics_code.txt $ESP_MATTER_PATH/connectedhomeip/connectedhomeip/src/python_testing/
- pip install -r tools/ci/requirements-pytest.txt
- pytest examples/ --target esp32c6 -m esp_matter_dut --junitxml=XUNIT_RESULT.xml
- python3 -c "import os; os.environ['TEST_CHUNK'] = '$TEST_CHUNK'"
- pytest examples/ --target esp32c6 -m esp_matter_dut --junitxml=XUNIT_RESULT.xml --certification-json=$ESP_MATTER_PATH/tools/ci/certification_test_commands.json
tags: ["esp32c6", "esp_matter_dut"]
parallel:
matrix:
- TEST_CHUNK:
- "1"
- "2"
pytest_esp32c2_esp_matter_dut:
stage: target_test