feat(console): Added ping command to console component

This commit is contained in:
Abhik Roy
2023-10-18 10:57:05 +02:00
parent 7faa97450b
commit 7babdeb970
15 changed files with 618 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
# -*- coding: utf-8 -*-
import pytest
@pytest.mark.esp32
def test_examples_ping_command(dut):
dut.expect('esp>', timeout=30)
dut.write('ping 127.0.0.1')
dut.expect('5 packets transmitted, 5 received, 0% packet loss, time 0ms', timeout=30)
pass