kopia lustrzana https://github.com/espressif/esp-idf
31 wiersze
908 B
Python
31 wiersze
908 B
Python
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||
|
# SPDX-License-Identifier: CC0-1.0
|
||
|
|
||
|
import pytest
|
||
|
from pytest_embedded_idf.dut import IdfDut
|
||
|
|
||
|
|
||
|
@pytest.mark.esp32
|
||
|
@pytest.mark.esp32c2
|
||
|
@pytest.mark.esp32c3
|
||
|
@pytest.mark.esp32c6
|
||
|
@pytest.mark.esp32s2
|
||
|
@pytest.mark.esp32s3
|
||
|
@pytest.mark.generic
|
||
|
@pytest.mark.parametrize('config', ['pure_ram',], indirect=True,)
|
||
|
def test_pure_ram_loadable_app(dut: IdfDut) -> None:
|
||
|
dut.expect('app_start: Starting scheduler', timeout=10)
|
||
|
dut.expect('Time since boot: 3 seconds...', timeout=10)
|
||
|
|
||
|
|
||
|
@pytest.mark.esp32c2
|
||
|
@pytest.mark.esp32c3
|
||
|
@pytest.mark.esp32c6
|
||
|
@pytest.mark.esp32s2
|
||
|
@pytest.mark.esp32s3
|
||
|
@pytest.mark.generic
|
||
|
@pytest.mark.parametrize('config', ['defaults',], indirect=True,)
|
||
|
def test_ram_loadable_app(dut: IdfDut) -> None:
|
||
|
dut.expect('spi_flash: detected chip', timeout=10)
|
||
|
dut.expect('Time since boot: 3 seconds...', timeout=10)
|