2025-02-24 10:18:03 +08:00
|
|
|
# SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
2024-02-01 09:19:46 +08:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
import pytest
|
|
|
|
from pytest_embedded import Dut
|
2025-02-24 10:18:03 +08:00
|
|
|
from pytest_embedded_idf.utils import idf_parametrize
|
2024-02-01 09:19:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.generic
|
2025-02-24 10:18:03 +08:00
|
|
|
@idf_parametrize('target', ['supported_targets'], indirect=['target'])
|
2024-02-01 09:19:46 +08:00
|
|
|
def test_rt_mqueue_example(dut: Dut) -> None:
|
|
|
|
dut.expect_exact('sending: 0')
|
|
|
|
dut.expect_exact('received: 0')
|
|
|
|
dut.expect_exact('sending: 1')
|
|
|
|
dut.expect_exact('received: 1')
|