Skip to content

Commit

Permalink
mbedtls: Add test config with CONFIG_COMPILER_OPTIMIZATION_PERF
Browse files Browse the repository at this point in the history
  • Loading branch information
laukik-hase committed Feb 21, 2023
1 parent 45df5b5 commit 9f0435f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
29 changes: 17 additions & 12 deletions components/mbedtls/test_apps/pytest_mbedtls_ut.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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()
1 change: 1 addition & 0 deletions components/mbedtls/test_apps/sdkconfig.ci.perf_esp32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_COMPILER_OPTIMIZATION_PERF=y

0 comments on commit 9f0435f

Please sign in to comment.