pytest_flash_encrypted.py 890 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # SPDX-FileCopyrightText: 2022-2023 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.run_all_single_board_cases()
  17. @pytest.mark.esp32s3
  18. @pytest.mark.flash_encryption_f4r8
  19. @pytest.mark.parametrize(
  20. 'config',
  21. [
  22. 'release_f4r8',
  23. ],
  24. indirect=True,
  25. )
  26. def test_flash_encryption_f4r8(dut: Dut) -> None:
  27. dut.run_all_single_board_cases()
  28. @pytest.mark.esp32s3
  29. @pytest.mark.flash_encryption_f8r8
  30. @pytest.mark.parametrize(
  31. 'config',
  32. [
  33. 'release_f8r8',
  34. ],
  35. indirect=True,
  36. )
  37. def test_flash_encryption_f8r8(dut: Dut) -> None:
  38. dut.run_all_single_board_cases()