ci(esp_tee): Enable the TEE examples for ESP32-C5

This commit is contained in:
Laukik Hase
2025-10-07 17:36:45 +05:30
parent 052f380262
commit 3f82eaed0f
9 changed files with 17 additions and 17 deletions
+4 -4
View File
@@ -38,7 +38,7 @@ examples/security/security_features_app:
examples/security/tee/tee_attestation:
disable:
- if: IDF_TARGET not in ["esp32c6"]
- if: IDF_TARGET not in ["esp32c6", "esp32c5"]
depends_components:
- esp_tee
depends_filepatterns:
@@ -46,7 +46,7 @@ examples/security/tee/tee_attestation:
examples/security/tee/tee_basic:
disable:
- if: IDF_TARGET not in ["esp32c6"]
- if: IDF_TARGET not in ["esp32c6", "esp32c5"]
depends_components:
- esp_tee
depends_filepatterns:
@@ -54,7 +54,7 @@ examples/security/tee/tee_basic:
examples/security/tee/tee_secure_ota:
disable:
- if: IDF_TARGET not in ["esp32c6"]
- if: IDF_TARGET not in ["esp32c6", "esp32c5"]
depends_components:
- esp_tee
depends_filepatterns:
@@ -62,7 +62,7 @@ examples/security/tee/tee_secure_ota:
examples/security/tee/tee_secure_storage:
disable:
- if: IDF_TARGET not in ["esp32c6"]
- if: IDF_TARGET not in ["esp32c6", "esp32c5"]
depends_components:
- esp_tee
depends_filepatterns:
@@ -1,5 +1,5 @@
| Supported Targets | ESP32-C6 |
| ----------------- | -------- |
| Supported Targets | ESP32-C5 | ESP32-C6 |
| ----------------- | -------- | -------- |
# TEE: Attestation example
@@ -46,7 +46,7 @@ def verify_att_token_signature(att_tk: str) -> Any:
@pytest.mark.generic
@idf_parametrize('target', ['esp32c6'], indirect=['target'])
@idf_parametrize('target', ['supported_targets'], indirect=['target'])
def test_example_tee_attestation(dut: Dut) -> None:
# Erase the TEE secure_storage partition
dut.serial.erase_partition('secure_storage')
+2 -2
View File
@@ -1,5 +1,5 @@
| Supported Targets | ESP32-C6 |
| ----------------- | -------- |
| Supported Targets | ESP32-C5 | ESP32-C6 |
| ----------------- | -------- | -------- |
# Basic TEE example
@@ -9,7 +9,7 @@ from pytest_embedded_idf.utils import idf_parametrize
@pytest.mark.generic
@idf_parametrize('target', ['esp32c6'], indirect=['target'])
@idf_parametrize('target', ['supported_targets'], indirect=['target'])
def test_example_tee_basic(dut: Dut) -> None:
# Logging example binary details
binary_files = [
@@ -19,7 +19,7 @@ def test_example_tee_basic(dut: Dut) -> None:
for file_name, log_label in binary_files:
binary_file = os.path.join(dut.app.binary_path, file_name)
bin_size = os.path.getsize(binary_file)
logging.info('{}: {}KB'.format(log_label, bin_size // 1024))
logging.info(f'{log_label}: {bin_size // 1024}KB')
# Start test
dut.expect('AES-256-CBC operations in TEE', timeout=30)
@@ -1,5 +1,5 @@
| Supported Targets | ESP32-C6 |
| ----------------- | -------- |
| Supported Targets | ESP32-C5 | ESP32-C6 |
| ----------------- | -------- | -------- |
# TEE: Secure OTA example
@@ -32,7 +32,7 @@ def start_https_server(ota_image_dir: str, server_ip: str, server_port: int) ->
@pytest.mark.wifi_high_traffic
@idf_parametrize('target', ['esp32c6'], indirect=['target'])
@idf_parametrize('target', ['supported_targets'], indirect=['target'])
def test_examples_tee_secure_ota_example(dut: Dut) -> None:
"""
This is a positive test case, which downloads complete binary file multiple number of times.
@@ -1,5 +1,5 @@
| Supported Targets | ESP32-C6 |
| ----------------- | -------- |
| Supported Targets | ESP32-C5 | ESP32-C6 |
| ----------------- | -------- | -------- |
# TEE: Secure Storage example
@@ -6,7 +6,7 @@ from pytest_embedded_idf.utils import idf_parametrize
@pytest.mark.generic
@idf_parametrize('target', ['esp32c6'], indirect=['target'])
@idf_parametrize('target', ['supported_targets'], indirect=['target'])
def test_example_tee_secure_storage(dut: Dut) -> None:
# Start test
dut.expect('TEE Secure Storage', timeout=30)