Sfoglia il codice sorgente

feat(mbedtls): add new option CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL for mbedtls pytest

Jiang Guang Ming 2 anni fa
parent
commit
e882782f0d

+ 13 - 0
components/mbedtls/test_apps/pytest_mbedtls_ut.py

@@ -74,3 +74,16 @@ def test_mbedtls_psram_esp32(dut: Dut) -> None:
 @pytest.mark.parametrize('config', ['ecdsa_sign',], indirect=True)
 def test_mbedtls_ecdsa_sign(dut: Dut) -> None:
     dut.run_all_single_board_cases(group='efuse_key')
+
+
+@pytest.mark.esp32c2
+@pytest.mark.generic
+@pytest.mark.parametrize(
+    'config',
+    [
+        'rom_impl',
+    ],
+    indirect=True,
+)
+def test_mbedtls_rom_impl_esp32c2(dut: Dut) -> None:
+    dut.run_all_single_board_cases()

+ 3 - 0
components/mbedtls/test_apps/sdkconfig.ci.rom_impl

@@ -0,0 +1,3 @@
+CONFIG_IDF_TARGET="esp32c2"
+CONFIG_IDF_EXPERIMENTAL_FEATURES=y
+CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL=y