pytest_flash_encrypted.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: Apache-2.0
  3. import pytest
  4. from pytest_embedded import Dut
  5. @pytest.mark.esp32
  6. @pytest.mark.esp32c3
  7. @pytest.mark.flash_encryption
  8. @pytest.mark.parametrize(
  9. 'config',
  10. [
  11. 'release',
  12. ],
  13. indirect=True,
  14. )
  15. def test_flash_encryption(dut: Dut) -> None:
  16. dut.expect_exact('Press ENTER to see the list of tests')
  17. dut.write('*')
  18. dut.expect_unity_test_output()
  19. @pytest.mark.esp32s3
  20. @pytest.mark.flash_encryption_f4r8
  21. @pytest.mark.parametrize(
  22. 'config',
  23. [
  24. 'release_f4r8',
  25. ],
  26. indirect=True,
  27. )
  28. def test_flash_encryption_f4r8(dut: Dut) -> None:
  29. dut.expect_exact('Press ENTER to see the list of tests')
  30. dut.write('*')
  31. dut.expect_unity_test_output()
  32. @pytest.mark.esp32s3
  33. @pytest.mark.flash_encryption_f8r8
  34. @pytest.mark.parametrize(
  35. 'config',
  36. [
  37. 'release_f8r8',
  38. ],
  39. indirect=True,
  40. )
  41. def test_flash_encryption_f8r8(dut: Dut) -> None:
  42. dut.expect_exact('Press ENTER to see the list of tests')
  43. dut.write('*')
  44. dut.expect_unity_test_output()