From 60a93311fdb6aa8bfe394104004f415c76535260 Mon Sep 17 00:00:00 2001 From: yiwenxiu Date: Thu, 6 Aug 2026 17:52:13 +0800 Subject: [PATCH] ci: add openthread s31 ci case --- examples/openthread/.build-test-rules.yml | 2 +- .../ot_sleepy_device/light_sleep/README.md | 4 ++-- examples/openthread/pytest_otbr.py | 12 +++++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/examples/openthread/.build-test-rules.yml b/examples/openthread/.build-test-rules.yml index 00dbdeb3078..23d8d824d00 100644 --- a/examples/openthread/.build-test-rules.yml +++ b/examples/openthread/.build-test-rules.yml @@ -72,7 +72,7 @@ examples/openthread/ot_sleepy_device/light_sleep: enable: - if: SOC_IEEE802154_SUPPORTED == 1 disable: - - if: IDF_TARGET in ["esp32h4", "esp32s31", "esp32h21"] + - if: IDF_TARGET in ["esp32h4", "esp32h21"] temporary: true reason: Not supported yet <<: [*openthread_dependencies, *openthread_sleep_dependencies] diff --git a/examples/openthread/ot_sleepy_device/light_sleep/README.md b/examples/openthread/ot_sleepy_device/light_sleep/README.md index 6eea2789b6c..c2ddd186162 100644 --- a/examples/openthread/ot_sleepy_device/light_sleep/README.md +++ b/examples/openthread/ot_sleepy_device/light_sleep/README.md @@ -1,5 +1,5 @@ -| Supported Targets | ESP32-C5 | ESP32-C6 | ESP32-H2 | -| ----------------- | -------- | -------- | -------- | +| Supported Targets | ESP32-C5 | ESP32-C6 | ESP32-H2 | ESP32-S31 | +| ----------------- | -------- | -------- | -------- | --------- | # OpenThread Sleepy Device Example The example demonstrates the Thread Sleepy End Device (SED), the device will enter [Light Sleep mode](https://docs.espressif.com/projects/esp-idf/en/latest/esp32h2/api-reference/system/sleep_modes.html#sleep-modes) during idle state. diff --git a/examples/openthread/pytest_otbr.py b/examples/openthread/pytest_otbr.py index c0429b97539..2651a9e0c67 100644 --- a/examples/openthread/pytest_otbr.py +++ b/examples/openthread/pytest_otbr.py @@ -100,8 +100,9 @@ PORT_MAPPING = { 'ESPPORT2': 'esp32s3', 'ESPPORT3': 'esp32c6', 'ESPPORT4': 'esp32c5', + 'ESPPORT5': 'esp32s31', } -ESPPORT1, ESPPORT2, ESPPORT3, ESPPORT4 = (os.getenv(name) for name in PORT_MAPPING) +ESPPORT1, ESPPORT2, ESPPORT3, ESPPORT4, ESPPORT5 = (os.getenv(name) for name in PORT_MAPPING) _RUNNER_CHANNEL = os.getenv('CHANNEL', '12') _RUNNER_NETWORKKEY = os.getenv('NETWORKKEY', '99112233445566778899aabbccddeeff') @@ -777,6 +778,15 @@ def test_TCP_NAT64(Init_interface: bool, dut: tuple[IdfDut, IdfDut, IdfDut]) -> f'{ESPPORT1}|{ESPPORT4}', id='h2-c5', ), + pytest.param( + 'cli|sleepy', + 2, + f'{os.path.join(os.path.dirname(__file__), "ot_cli")}' + f'|{os.path.join(os.path.dirname(__file__), "ot_sleepy_device/light_sleep")}', + 'esp32h2|esp32s31', + f'{ESPPORT1}|{ESPPORT5}', + id='h2-s31', + ), ], indirect=True, )