pytest_esp_ringbuf.py 827 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # SPDX-FileCopyrightText: 2022-2023 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.nightly_run
  10. @pytest.mark.parametrize(
  11. 'config',
  12. [
  13. 'default',
  14. 'ringbuf_flash'
  15. ]
  16. )
  17. def test_esp_ringbuf(dut: Dut) -> None:
  18. dut.run_all_single_board_cases()
  19. @pytest.mark.esp32
  20. @pytest.mark.esp32c3
  21. @pytest.mark.host_test
  22. @pytest.mark.qemu
  23. @pytest.mark.parametrize(
  24. 'config',
  25. [
  26. 'default',
  27. 'ringbuf_flash'
  28. ]
  29. )
  30. def test_esp_ringbuf_qemu(dut: Dut) -> None:
  31. for case in dut.test_menu:
  32. if 'qemu-ignore' not in case.groups and not case.is_ignored and case.type == 'normal':
  33. dut._run_normal_case(case)