2024-03-13 04:48:04 -04:00
|
|
|
# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
2022-10-04 07:19:07 -04:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
import pytest
|
|
|
|
from pytest_embedded import Dut
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.generic
|
2024-09-16 03:44:52 -04:00
|
|
|
@pytest.mark.parametrize('target', [
|
|
|
|
'esp32',
|
|
|
|
'esp32s2',
|
|
|
|
])
|
2024-03-13 04:48:04 -04:00
|
|
|
@pytest.mark.parametrize('config', [
|
|
|
|
'default',
|
|
|
|
'ringbuf_flash',
|
|
|
|
])
|
2022-10-04 07:19:07 -04:00
|
|
|
def test_esp_ringbuf(dut: Dut) -> None:
|
2023-01-31 23:12:57 -05:00
|
|
|
dut.run_all_single_board_cases()
|
2023-06-20 07:57:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.host_test
|
|
|
|
@pytest.mark.qemu
|
2024-03-13 04:48:04 -04:00
|
|
|
@pytest.mark.parametrize('target', [
|
|
|
|
'esp32',
|
|
|
|
'esp32c3',
|
|
|
|
])
|
|
|
|
@pytest.mark.parametrize('config', [
|
|
|
|
'default',
|
|
|
|
'ringbuf_flash',
|
|
|
|
])
|
2023-06-20 07:57:08 -04:00
|
|
|
def test_esp_ringbuf_qemu(dut: Dut) -> None:
|
|
|
|
for case in dut.test_menu:
|
|
|
|
if 'qemu-ignore' not in case.groups and not case.is_ignored and case.type == 'normal':
|
|
|
|
dut._run_normal_case(case)
|
2024-03-04 03:29:56 -05:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.linux
|
|
|
|
@pytest.mark.host_test
|
|
|
|
def test_esp_ringbuf_posix_simulator(dut: Dut) -> None:
|
|
|
|
dut.run_all_single_board_cases(group='linux')
|