pytest_spiffs.py 880 B

123456789101112131415161718192021222324252627282930313233
  1. # SPDX-FileCopyrightText: 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.esp32c3
  7. @pytest.mark.generic
  8. @pytest.mark.parametrize('config', [
  9. 'default',
  10. 'release',
  11. ], indirect=True)
  12. def test_spiffs_generic(dut: Dut) -> None:
  13. dut.expect_exact('Press ENTER to see the list of tests')
  14. dut.write('')
  15. dut.expect_exact('Enter test for running.')
  16. dut.write('*')
  17. dut.expect_unity_test_output(timeout=120)
  18. @pytest.mark.esp32s3
  19. @pytest.mark.quad_psram
  20. @pytest.mark.parametrize('config', [
  21. 'psram',
  22. ], indirect=True)
  23. def test_spiffs_psram(dut: Dut) -> None:
  24. dut.expect_exact('Press ENTER to see the list of tests')
  25. dut.write('')
  26. dut.expect_exact('Enter test for running.')
  27. dut.write('*')
  28. dut.expect_unity_test_output(timeout=120)