Merge branch 'feature/qemu-console' into 'master'

console: Enable tests on QEMU

Closes IDF-7324 and IDF-7338

See merge request espressif/esp-idf!21414
This commit is contained in:
Zim Kalinowski
2023-06-20 17:33:37 +08:00
2 changed files with 24 additions and 2 deletions
@@ -7,12 +7,14 @@ from pytest_embedded import Dut
@pytest.mark.generic
@pytest.mark.supported_targets
@pytest.mark.nightly_run
def test_console(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pytest.mark.generic
@pytest.mark.supported_targets
@pytest.mark.nightly_run
def test_console_repl(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('"esp console repl test"')
@@ -21,4 +23,21 @@ def test_console_repl(dut: Dut) -> None:
dut.write('quit')
dut.expect_exact('ByeBye')
@pytest.mark.host_test
@pytest.mark.qemu
@pytest.mark.esp32
@pytest.mark.esp32c3
def test_console_qemu(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pytest.mark.host_test
@pytest.mark.qemu
@pytest.mark.esp32
def test_console_repl_qemu(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.confirm_write('"esp console repl test"', expect_pattern='esp>')
dut.confirm_write('quit', expect_pattern='ByeBye')
dut.expect_unity_test_output()