2023-01-31 23:12:57 -05:00
|
|
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
2022-10-24 08:35:32 -04:00
|
|
|
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
from pytest_embedded import Dut
|
|
|
|
|
|
|
|
CONFIGS = [
|
2023-01-31 23:12:57 -05:00
|
|
|
pytest.param('general', marks=[pytest.mark.supported_targets]),
|
|
|
|
pytest.param('release', marks=[pytest.mark.supported_targets]),
|
2022-10-24 08:35:32 -04:00
|
|
|
pytest.param('single_core', marks=[pytest.mark.esp32]),
|
|
|
|
pytest.param('freertos_compliance', marks=[pytest.mark.esp32]),
|
|
|
|
pytest.param('isr_dispatch_esp32', marks=[pytest.mark.esp32]),
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.generic
|
|
|
|
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
|
|
|
|
def test_esp_timer(dut: Dut) -> None:
|
2023-01-31 23:12:57 -05:00
|
|
|
dut.run_all_single_board_cases(timeout=120)
|
2022-10-24 08:35:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.esp32
|
|
|
|
@pytest.mark.quad_psram
|
|
|
|
@pytest.mark.parametrize('config', [
|
|
|
|
'psram',
|
|
|
|
], indirect=True)
|
|
|
|
def test_esp_timer_psram(dut: Dut) -> None:
|
2023-01-31 23:12:57 -05:00
|
|
|
dut.run_all_single_board_cases(timeout=120)
|
2022-11-08 21:48:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.esp32c2
|
2022-12-20 08:11:17 -05:00
|
|
|
@pytest.mark.generic
|
2022-11-08 21:48:04 -05:00
|
|
|
@pytest.mark.xtal_26mhz
|
|
|
|
@pytest.mark.parametrize(
|
|
|
|
'config, baud',
|
|
|
|
[
|
|
|
|
('26mhz_esp32c2', '74880'),
|
|
|
|
],
|
|
|
|
indirect=True,
|
|
|
|
)
|
|
|
|
def test_esp_timer_esp32c2_xtal_26mhz(dut: Dut) -> None:
|
2023-01-31 23:12:57 -05:00
|
|
|
dut.run_all_single_board_cases(timeout=120)
|