mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
ci: migrate examples/cxx ttfw test scripts to pytest
This commit is contained in:
20
examples/cxx/pthread/pytest_examples_cxx_pthread.py
Normal file
20
examples/cxx/pthread/pytest_examples_cxx_pthread.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
import pytest
|
||||
from pytest_embedded_idf.dut import IdfDut
|
||||
|
||||
|
||||
@pytest.mark.supported_targets
|
||||
@pytest.mark.generic
|
||||
def test_examples_cpp_pthread(dut: IdfDut) -> None:
|
||||
dut.expect(
|
||||
[
|
||||
r'pthread: This thread \(with the default name\) may run on any core.'
|
||||
r'Core id: [01], prio: 5, minimum free stack: \d+ bytes\.',
|
||||
r'Thread [12]: Core id: [01], prio: 5, minimum free stack: \d+ bytes\.',
|
||||
r'Thread [12]: This is the INHERITING thread with the same parameters as our parent, '
|
||||
r'including name. Core id: [01], prio: 5, minimum free stack: \d+ bytes\.',
|
||||
r'Thread [12]: Core id: [01], prio: 5, minimum free stack: \d+ bytes\.',
|
||||
],
|
||||
expect_all=True,
|
||||
)
|
Reference in New Issue
Block a user