-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/ulp_reliability_tests' into 'master'
ulp-riscv: add more test cases for deep sleep wakeup scenarios Closes IDF-6466 See merge request espressif/esp-idf!22069
- Loading branch information
Showing
4 changed files
with
89 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD | ||
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
import pytest | ||
from pytest_embedded import Dut | ||
|
||
|
||
@pytest.mark.esp32s2 | ||
@pytest.mark.esp32s3 | ||
@pytest.mark.generic | ||
def test_ulp_riscv(dut: Dut) -> None: | ||
dut.expect('Press ENTER to see the list of tests') | ||
dut.write('![ulp_deep_sleep_wakeup]') | ||
dut.expect_unity_test_output() | ||
|
||
|
||
# Run all deepsleep wakeup tests one after the other instead of running them all with the `ulp_deep_sleep_wakeup` tag. | ||
# This makes sure that all tests are run even after one test causes a system reset. | ||
@pytest.mark.esp32s2 | ||
@pytest.mark.esp32s3 | ||
@pytest.mark.generic | ||
def test_ulp_deep_sleep_wakeup(dut: Dut) -> None: | ||
dut.expect('Press ENTER to see the list of tests') | ||
dut.write('"ULP-RISC-V is able to wakeup main CPU from deep sleep"') | ||
dut.expect('rst:0x5') | ||
def test_ulp_riscv(case_tester) -> None: # type: ignore | ||
case_tester.run_all_cases() |