diff --git a/components/mbedtls/test_apps/pytest_mbedtls_ut.py b/components/mbedtls/test_apps/pytest_mbedtls_ut.py index bc3a22263cf5..beb6cc7fcc27 100644 --- a/components/mbedtls/test_apps/pytest_mbedtls_ut.py +++ b/components/mbedtls/test_apps/pytest_mbedtls_ut.py @@ -8,9 +8,20 @@ @pytest.mark.supported_targets @pytest.mark.generic def test_mbedtls(dut: Dut) -> None: - dut.expect_exact('Press ENTER to see the list of tests') - dut.write('*') - dut.expect_unity_test_output(timeout=120) + dut.run_all_single_board_cases() + + +@pytest.mark.esp32 +@pytest.mark.generic +@pytest.mark.parametrize( + 'config', + [ + 'perf_esp32', + ], + indirect=True, +) +def test_mbedtls_esp32_compiler_perf_opt(dut: Dut) -> None: + dut.run_all_single_board_cases() @pytest.mark.esp32 @@ -26,9 +37,7 @@ def test_mbedtls(dut: Dut) -> None: indirect=True, ) def test_mbedtls_aes_no_hw(dut: Dut) -> None: - dut.expect_exact('Press ENTER to see the list of tests') - dut.write('*') - dut.expect_unity_test_output(timeout=120) + dut.run_all_single_board_cases() @pytest.mark.esp32 @@ -43,9 +52,7 @@ def test_mbedtls_aes_no_hw(dut: Dut) -> None: indirect=True, ) def test_mbedtls_psram(dut: Dut) -> None: - dut.expect_exact('Press ENTER to see the list of tests') - dut.write('*') - dut.expect_unity_test_output(timeout=120) + dut.run_all_single_board_cases() @pytest.mark.esp32 @@ -59,6 +66,4 @@ def test_mbedtls_psram(dut: Dut) -> None: indirect=True, ) def test_mbedtls_psram_esp32(dut: Dut) -> None: - dut.expect_exact('Press ENTER to see the list of tests') - dut.write('*') - dut.expect_unity_test_output(timeout=120) + dut.run_all_single_board_cases() diff --git a/components/mbedtls/test_apps/sdkconfig.ci.perf_esp32 b/components/mbedtls/test_apps/sdkconfig.ci.perf_esp32 new file mode 100644 index 000000000000..3c5a0fabea2d --- /dev/null +++ b/components/mbedtls/test_apps/sdkconfig.ci.perf_esp32 @@ -0,0 +1 @@ +CONFIG_COMPILER_OPTIMIZATION_PERF=y