CI: Migrate socket example tests to pytest

This commit is contained in:
Chen Yudong
2022-12-14 17:12:37 +08:00
parent df92048180
commit 2d006d488c
10 changed files with 368 additions and 437 deletions

View File

@@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_examples_non_block_socket_localhost(dut: Dut) -> None:
dut.expect(r'nonblocking-socket-client: Received: GET / HTTP/1.1', timeout=30)