mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
23 lines
627 B
Python
23 lines
627 B
Python
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
from typing import Callable
|
|
|
|
import pytest
|
|
from pytest_embedded_idf.dut import IdfDut
|
|
from pytest_embedded_qemu.dut import QemuDut
|
|
|
|
|
|
@pytest.mark.supported_targets
|
|
@pytest.mark.generic
|
|
def test_hello_world(dut: IdfDut, log_minimum_free_heap_size: Callable[..., None]) -> None:
|
|
dut.expect('Hello world!')
|
|
log_minimum_free_heap_size()
|
|
|
|
|
|
@pytest.mark.esp32 # we only support qemu on esp32 for now
|
|
@pytest.mark.host_test
|
|
@pytest.mark.qemu
|
|
def test_hello_world_host(dut: QemuDut) -> None:
|
|
dut.expect('Hello world!')
|