pytest_psram.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: CC0-1.0
  3. import pytest
  4. from pytest_embedded import Dut
  5. @pytest.mark.esp32
  6. @pytest.mark.generic
  7. @pytest.mark.parametrize(
  8. 'config',
  9. [
  10. 'esp32_release',
  11. ],
  12. indirect=True,
  13. )
  14. def test_psram_esp32(dut: Dut) -> None:
  15. dut.expect_exact('Press ENTER to see the list of tests')
  16. dut.write('*')
  17. dut.expect_unity_test_output()
  18. @pytest.mark.esp32s2
  19. @pytest.mark.generic
  20. @pytest.mark.parametrize(
  21. 'config',
  22. [
  23. 'esp32s2_release',
  24. 'esp32s2_advanced',
  25. ],
  26. indirect=True,
  27. )
  28. def test_psram_esp32s2(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.generic
  34. @pytest.mark.parametrize(
  35. 'config',
  36. [
  37. 'esp32s3_quad_release',
  38. 'esp32s3_quad_advanced',
  39. ],
  40. indirect=True,
  41. )
  42. def test_psram_esp32s3(dut: Dut) -> None:
  43. dut.expect_exact('Press ENTER to see the list of tests')
  44. dut.write('*')
  45. dut.expect_unity_test_output()
  46. @pytest.mark.esp32s3
  47. @pytest.mark.octal_psram
  48. @pytest.mark.parametrize(
  49. 'config',
  50. [
  51. 'esp32s3_octal_release',
  52. 'esp32s3_octal_advanced',
  53. ],
  54. indirect=True,
  55. )
  56. def test_psram_esp32s3_octal(dut: Dut) -> None:
  57. dut.expect_exact('Press ENTER to see the list of tests')
  58. dut.write('*')
  59. dut.expect_unity_test_output()