mbedtls: Add test config with CONFIG_COMPILER_OPTIMIZATION_PERF

This commit is contained in:
Laukik Hase 2023-01-04 10:52:12 +05:30
parent 45df5b56d5
commit 9f0435faa4
No known key found for this signature in database
GPG Key ID: 11C571361F51A199
2 changed files with 18 additions and 12 deletions

View File

@ -8,9 +8,20 @@ from pytest_embedded import Dut
@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()

View File

@ -0,0 +1 @@
CONFIG_COMPILER_OPTIMIZATION_PERF=y