pytest_esp_ringbuf.py 479 B

12345678910111213141516171819202122
  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.esp32s2
  7. @pytest.mark.esp32c3
  8. @pytest.mark.generic
  9. @pytest.mark.parametrize(
  10. 'config',
  11. [
  12. 'default',
  13. 'ringbuf_flash'
  14. ]
  15. )
  16. def test_esp_ringbuf(dut: Dut) -> None:
  17. dut.expect('Press ENTER to see the list of tests')
  18. dut.write('*')
  19. dut.expect_unity_test_output()