pytest_esp_ringbuf.py 802 B

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