pytest_esp_flash.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.esp32s2
  7. @pytest.mark.esp32s3
  8. @pytest.mark.esp32c3
  9. @pytest.mark.esp32c2
  10. @pytest.mark.generic
  11. @pytest.mark.parametrize(
  12. 'config',
  13. [
  14. 'release',
  15. 'flash_qio',
  16. 'verify',
  17. ],
  18. indirect=True,
  19. )
  20. def test_esp_flash(dut: Dut) -> None:
  21. dut.run_all_single_board_cases(group='esp_flash')
  22. @pytest.mark.esp32s3
  23. @pytest.mark.esp32c3
  24. @pytest.mark.esp32c2
  25. @pytest.mark.generic
  26. @pytest.mark.parametrize(
  27. 'config',
  28. [
  29. 'rom_impl',
  30. ],
  31. indirect=True,
  32. )
  33. def test_esp_flash_rom(dut: Dut) -> None:
  34. dut.run_all_single_board_cases(group='esp_flash')
  35. @pytest.mark.esp32
  36. @pytest.mark.esp32s2
  37. @pytest.mark.esp32s3
  38. @pytest.mark.esp32c3
  39. @pytest.mark.esp32c2
  40. @pytest.mark.flash_multi
  41. @pytest.mark.parametrize(
  42. 'config',
  43. [
  44. 'release',
  45. ],
  46. indirect=True,
  47. )
  48. def test_esp_flash_multi(dut: Dut) -> None:
  49. dut.run_all_single_board_cases(group='esp_flash_multi', timeout=120)