Skip to content

Commit b2335eb

Browse files
author
Jiang Jiang Jian
committed
Merge branch 'fix/ci_add_supp_for_h2' into 'master'
Add supp for esp32h2 in softAP and station examples See merge request espressif/esp-idf!41246
2 parents c4a2511 + ee248d6 commit b2335eb

File tree

6 files changed

+23
-21
lines changed

6 files changed

+23
-21
lines changed

examples/wifi/.build-test-rules.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ examples/wifi/ftm:
3636
examples/wifi/getting_started:
3737
<<: *wifi_depends_default
3838
enable:
39-
- if: INCLUDE_DEFAULT == 1 || IDF_TARGET == "esp32h2"
39+
- if: INCLUDE_DEFAULT == 1
4040
disable:
41-
- if: (SOC_WIFI_SUPPORTED != 1) and (SOC_WIRELESS_HOST_SUPPORTED != 1)
41+
- if: (SOC_WIFI_SUPPORTED != 1) and (SOC_WIRELESS_HOST_SUPPORTED != 1) and (IDF_TARGET != "esp32h2")
4242
disable_test:
43-
- if: IDF_TARGET == "esp32p4"
43+
- if: IDF_TARGET in ["esp32p4", "esp32h2"]
4444
temporary: true
4545
reason: lack of runners
4646
depends_filepatterns:
4747
- examples/wifi/getting_started/**/*
4848

4949
examples/wifi/iperf:
5050
enable:
51-
- if: INCLUDE_DEFAULT == 1 || IDF_TARGET == "esp32h2"
51+
- if: INCLUDE_DEFAULT == 1
5252
disable:
53-
- if: (SOC_WIFI_SUPPORTED != 1) and (SOC_WIRELESS_HOST_SUPPORTED != 1)
54-
- if: (IDF_TARGET == "esp32p4") and CONFIG_NAME in ["defaults", "99"]
53+
- if: (SOC_WIFI_SUPPORTED != 1) and (SOC_WIRELESS_HOST_SUPPORTED != 1) and (IDF_TARGET != "esp32h2")
54+
- if: IDF_TARGET in ["esp32p4"] and CONFIG_NAME in ["defaults", "99"]
5555
disable_test:
5656
- if: IDF_TARGET not in ["esp32"]
5757
temporary: true

examples/wifi/getting_started/pytest_wifi_getting_started.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
22
# SPDX-License-Identifier: CC0-1.0
33
import os.path
4-
from typing import Tuple
54

65
import pytest
76
from pytest_embedded_idf.dut import IdfDut
87
from pytest_embedded_idf.utils import idf_parametrize
8+
99
# @pytest.mark.supported_targets
1010
# This test should support all targets, even between different target types
1111
# For now our CI only support multi dut with esp32
@@ -32,9 +32,11 @@
3232
indirect=True,
3333
)
3434
@idf_parametrize(
35-
'target', ['esp32', 'esp32c3', 'esp32s2', 'esp32s3', 'esp32c5', 'esp32c6', 'esp32c61'], indirect=['target']
35+
'target',
36+
['esp32', 'esp32c3', 'esp32s2', 'esp32s3', 'esp32c5', 'esp32c6', 'esp32c61'],
37+
indirect=['target'],
3638
)
37-
def test_wifi_getting_started(dut: Tuple[IdfDut, IdfDut]) -> None:
39+
def test_wifi_getting_started(dut: tuple[IdfDut, IdfDut]) -> None:
3840
softap = dut[0]
3941
station = dut[1]
4042

@@ -64,7 +66,7 @@ def test_wifi_getting_started(dut: Tuple[IdfDut, IdfDut]) -> None:
6466
indirect=True,
6567
)
6668
@idf_parametrize('target', ['esp32c2'], indirect=['target'])
67-
def test_wifi_getting_started_esp32c2_xtal_26mhz(dut: Tuple[IdfDut, IdfDut]) -> None:
69+
def test_wifi_getting_started_esp32c2_xtal_26mhz(dut: tuple[IdfDut, IdfDut]) -> None:
6870
softap = dut[0]
6971
station = dut[1]
7072

@@ -96,7 +98,7 @@ def test_wifi_getting_started_esp32c2_xtal_26mhz(dut: Tuple[IdfDut, IdfDut]) ->
9698
indirect=True,
9799
)
98100
@idf_parametrize('target', ['esp32c2'], indirect=['target'])
99-
def test_wifi_getting_started_esp32c2eco4_xtal_26mhz(dut: Tuple[IdfDut, IdfDut]) -> None:
101+
def test_wifi_getting_started_esp32c2eco4_xtal_26mhz(dut: tuple[IdfDut, IdfDut]) -> None:
100102
softap = dut[0]
101103
station = dut[1]
102104

@@ -126,7 +128,7 @@ def test_wifi_getting_started_esp32c2eco4_xtal_26mhz(dut: Tuple[IdfDut, IdfDut])
126128
indirect=True,
127129
)
128130
@idf_parametrize('target', ['esp32c3'], indirect=['target'])
129-
def test_wifi_getting_started_esp32c3eco7(dut: Tuple[IdfDut, IdfDut]) -> None:
131+
def test_wifi_getting_started_esp32c3eco7(dut: tuple[IdfDut, IdfDut]) -> None:
130132
softap = dut[0]
131133
station = dut[1]
132134

examples/wifi/getting_started/softAP/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | -------- | -------- |
33

44
# Wi-Fi SoftAP Example
55

examples/wifi/getting_started/station/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | -------- | -------- |
33

44
# Wi-Fi Station Example
55

examples/wifi/getting_started/station/pytest_wifi_station.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
22
# SPDX-License-Identifier: Unlicense OR CC0-1.0
33
import os
4-
from typing import Callable
5-
from typing import Tuple
4+
from collections.abc import Callable
65

76
import pytest
87
from pytest_embedded import Dut
98
from pytest_embedded_idf.utils import idf_parametrize
9+
1010
# diff of esp32s2/esp32s3 ~45K, others ~50K
1111

1212
DIFF_THRESHOLD = {
@@ -24,7 +24,7 @@
2424
indirect=['target'],
2525
)
2626
def test_wifi_sdkconfig_disable_softap_save_binary_size(
27-
dut: Tuple[Dut, Dut],
27+
dut: tuple[Dut, Dut],
2828
log_performance: Callable[[str, object], None],
2929
) -> None:
3030
# dut logs are not needed

examples/wifi/iperf/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | -------- | -------- |
33

44
# Iperf Example
55

0 commit comments

Comments
 (0)