ci(c2/c3): add major eco version tests

This commit is contained in:
luaijun
2025-03-07 10:53:08 +08:00
parent 8bb65e6d85
commit 2f749a21e7
28 changed files with 380 additions and 14 deletions

View File

@@ -1,6 +1,5 @@
# SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import random
import string
from typing import Tuple
@@ -190,3 +189,54 @@ def test_phy_tsens_coexist_c2_xtal26m(dut: Tuple[Dut, Dut]) -> None:
_dut.expect('boot:')
_dut.expect('esp>')
run_phy_tsens_test_with_light_sleep(dut)
@pytest.mark.wifi_two_dut
@pytest.mark.xtal_26mhz
@pytest.mark.esp32c2eco4
@pytest.mark.parametrize(
'count, config, target, baud',
[
(2, 'c2_eco4', 'esp32c2', '74880'),
],
indirect=True,
)
def test_phy_tsens_coexist_c2eco4_xtal26m(dut: Tuple[Dut, Dut]) -> None:
for _dut in dut:
_dut.expect('esp>')
run_phy_tsens_test(dut)
for _dut in dut:
_dut.write('restart')
_dut.expect('boot:')
_dut.expect('esp>')
run_phy_tsens_test_init_wifi_first(dut)
for _dut in dut:
_dut.write('restart')
_dut.expect('boot:')
_dut.expect('esp>')
run_phy_tsens_test_with_light_sleep(dut)
@pytest.mark.wifi_two_dut
@pytest.mark.esp32c3eco7
@pytest.mark.parametrize(
'count, config, target',
[
(2, 'c3_eco7', 'esp32c3'),
],
indirect=True,
)
def test_phy_tsens_coexist_c3eco7(dut: Tuple[Dut, Dut]) -> None:
for _dut in dut:
_dut.expect('esp>')
run_phy_tsens_test(dut)
for _dut in dut:
_dut.write('restart')
_dut.expect('boot:')
_dut.expect('esp>')
run_phy_tsens_test_init_wifi_first(dut)
for _dut in dut:
_dut.write('restart')
_dut.expect('boot:')
_dut.expect('esp>')
run_phy_tsens_test_with_light_sleep(dut)