mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 13:14:32 +02:00
remove(pm/deep_sleep): enable CI test for esp32h2 deepsleep
This commit is contained in:
@@ -341,7 +341,6 @@ TEST_CASE("RTCIO_output_hold_test", "[rtcio]")
|
|||||||
#endif //SOC_RTCIO_HOLD_SUPPORTED
|
#endif //SOC_RTCIO_HOLD_SUPPORTED
|
||||||
#endif //SOC_RTCIO_INPUT_OUTPUT_SUPPORTED
|
#endif //SOC_RTCIO_INPUT_OUTPUT_SUPPORTED
|
||||||
|
|
||||||
#if !CONFIG_IDF_TARGET_ESP32H2 // TODO: IDF-6268
|
|
||||||
// It is not necessary to test every rtcio pin, it will take too much ci testing time for deep sleep
|
// It is not necessary to test every rtcio pin, it will take too much ci testing time for deep sleep
|
||||||
// Only tests on s_test_map[TEST_RTCIO_DEEP_SLEEP_PIN_INDEX] pin
|
// Only tests on s_test_map[TEST_RTCIO_DEEP_SLEEP_PIN_INDEX] pin
|
||||||
// (ESP32: IO25, ESP32S2, S3: IO6, C6: IO5, H2: IO12) these pads' default configuration is low level
|
// (ESP32: IO25, ESP32S2, S3: IO6, C6: IO5, H2: IO12) these pads' default configuration is low level
|
||||||
@@ -390,4 +389,3 @@ static void rtcio_deep_sleep_hold_test_second_stage(void)
|
|||||||
TEST_CASE_MULTIPLE_STAGES("RTCIO_deep_sleep_output_hold_test", "[rtcio]",
|
TEST_CASE_MULTIPLE_STAGES("RTCIO_deep_sleep_output_hold_test", "[rtcio]",
|
||||||
rtcio_deep_sleep_hold_test_first_stage,
|
rtcio_deep_sleep_hold_test_first_stage,
|
||||||
rtcio_deep_sleep_hold_test_second_stage)
|
rtcio_deep_sleep_hold_test_second_stage)
|
||||||
#endif
|
|
||||||
|
@@ -41,7 +41,6 @@
|
|||||||
|
|
||||||
__attribute__((unused)) static struct timeval tv_start, tv_stop;
|
__attribute__((unused)) static struct timeval tv_start, tv_stop;
|
||||||
|
|
||||||
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32H2)
|
|
||||||
|
|
||||||
static void check_sleep_reset(void)
|
static void check_sleep_reset(void)
|
||||||
{
|
{
|
||||||
@@ -666,4 +665,3 @@ TEST_CASE("wake up using GPIO (2 or 4 low)", "[deepsleep][ignore]")
|
|||||||
esp_deep_sleep_start();
|
esp_deep_sleep_start();
|
||||||
}
|
}
|
||||||
#endif // SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP
|
#endif // SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP
|
||||||
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32H2) TODO: IDF-6268
|
|
||||||
|
@@ -32,15 +32,9 @@ examples/system/console/basic:
|
|||||||
temporary: true
|
temporary: true
|
||||||
reason: lack of runners
|
reason: lack of runners
|
||||||
|
|
||||||
examples/system/deep_sleep:
|
|
||||||
disable:
|
|
||||||
- if: IDF_TARGET in ["esp32h2"]
|
|
||||||
temporary: true
|
|
||||||
reason: target(s) not supported yet # IDF-6268
|
|
||||||
|
|
||||||
examples/system/deep_sleep_wake_stub:
|
examples/system/deep_sleep_wake_stub:
|
||||||
disable:
|
disable:
|
||||||
- if: IDF_TARGET in ["esp32c2", "esp32h2"]
|
- if: IDF_TARGET in ["esp32c2"]
|
||||||
temporary: true
|
temporary: true
|
||||||
reason: target(s) is not supported yet
|
reason: target(s) is not supported yet
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
|
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
|
||||||
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
|
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
|
||||||
|
|
||||||
# Deep Sleep Example
|
# Deep Sleep Example
|
||||||
|
|
||||||
|
@@ -12,7 +12,18 @@ touch_wake_up_support = ['esp32', 'esp32s2']
|
|||||||
|
|
||||||
CONFIGS = [
|
CONFIGS = [
|
||||||
pytest.param('esp32_singlecore', marks=[pytest.mark.esp32]),
|
pytest.param('esp32_singlecore', marks=[pytest.mark.esp32]),
|
||||||
pytest.param('basic', marks=[pytest.mark.esp32, pytest.mark.esp32s2, pytest.mark.esp32s3, pytest.mark.esp32c3, pytest.mark.esp32c6, pytest.mark.esp32c2]),
|
pytest.param(
|
||||||
|
'basic',
|
||||||
|
marks=[
|
||||||
|
pytest.mark.esp32,
|
||||||
|
pytest.mark.esp32s2,
|
||||||
|
pytest.mark.esp32s3,
|
||||||
|
pytest.mark.esp32c3,
|
||||||
|
pytest.mark.esp32c6,
|
||||||
|
pytest.mark.esp32h2,
|
||||||
|
pytest.mark.esp32c2,
|
||||||
|
],
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@@ -23,7 +34,7 @@ def test_deep_sleep(dut: Dut) -> None:
|
|||||||
def expect_enable_deep_sleep_touch() -> None:
|
def expect_enable_deep_sleep_touch() -> None:
|
||||||
# different targets configure different wake pin(s)
|
# different targets configure different wake pin(s)
|
||||||
wake_pads = {
|
wake_pads = {
|
||||||
'esp32': [8,9],
|
'esp32': [8, 9],
|
||||||
'esp32s2': [9],
|
'esp32s2': [9],
|
||||||
}[dut.target]
|
}[dut.target]
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
|
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
|
||||||
| ----------------- | ----- | -------- | -------- | -------- | -------- |
|
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
|
||||||
|
|
||||||
# Deep Sleep Wake Stub Example
|
# Deep Sleep Wake Stub Example
|
||||||
|
|
||||||
|
@@ -13,6 +13,7 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.esp32s3
|
@pytest.mark.esp32s3
|
||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.esp32c6
|
@pytest.mark.esp32c6
|
||||||
|
@pytest.mark.esp32h2
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
@pytest.mark.parametrize('config', ['default',], indirect=True)
|
@pytest.mark.parametrize('config', ['default',], indirect=True)
|
||||||
def test_deep_sleep_wake_stub(config: str, dut: Dut) -> None:
|
def test_deep_sleep_wake_stub(config: str, dut: Dut) -> None:
|
||||||
|
Reference in New Issue
Block a user