forked from espressif/esp-idf
console: enable qemu tests
This commit is contained in:
@@ -309,14 +309,17 @@ test_pytest_qemu:
|
|||||||
reports:
|
reports:
|
||||||
junit: XUNIT_RESULT.xml
|
junit: XUNIT_RESULT.xml
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- IDF_TARGET: [esp32, esp32c3]
|
||||||
script:
|
script:
|
||||||
- run_cmd python tools/ci/ci_build_apps.py . -vv
|
- run_cmd python tools/ci/ci_build_apps.py . -vv
|
||||||
--target esp32
|
--target $IDF_TARGET
|
||||||
--pytest-apps
|
--pytest-apps
|
||||||
-m qemu
|
-m qemu
|
||||||
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
|
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
|
||||||
- pytest
|
- pytest
|
||||||
--target esp32
|
--target $IDF_TARGET
|
||||||
-m qemu
|
-m qemu
|
||||||
--embedded-services idf,qemu
|
--embedded-services idf,qemu
|
||||||
--junitxml=XUNIT_RESULT.xml
|
--junitxml=XUNIT_RESULT.xml
|
||||||
|
@@ -7,12 +7,14 @@ from pytest_embedded import Dut
|
|||||||
|
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
|
@pytest.mark.nightly_run
|
||||||
def test_console(dut: Dut) -> None:
|
def test_console(dut: Dut) -> None:
|
||||||
dut.run_all_single_board_cases()
|
dut.run_all_single_board_cases()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
|
@pytest.mark.nightly_run
|
||||||
def test_console_repl(dut: Dut) -> None:
|
def test_console_repl(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.expect_exact('Press ENTER to see the list of tests')
|
||||||
dut.write('"esp console repl test"')
|
dut.write('"esp console repl test"')
|
||||||
@@ -21,4 +23,21 @@ def test_console_repl(dut: Dut) -> None:
|
|||||||
dut.write('quit')
|
dut.write('quit')
|
||||||
|
|
||||||
dut.expect_exact('ByeBye')
|
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()
|
dut.expect_unity_test_output()
|
||||||
|
Reference in New Issue
Block a user