2023-09-27 14:18:51 -04:00
|
|
|
# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
from pytest_embedded import Dut
|
2023-09-04 02:56:35 -04:00
|
|
|
from pytest_embedded_idf.unity_tester import CaseTester
|
2023-09-27 14:18:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.generic
|
|
|
|
@pytest.mark.esp32
|
|
|
|
@pytest.mark.esp32s2
|
|
|
|
@pytest.mark.esp32s3
|
|
|
|
@pytest.mark.esp32c3
|
|
|
|
@pytest.mark.esp32c2
|
|
|
|
@pytest.mark.esp32c6
|
|
|
|
def test_wpa_supplicant_ut(dut: Dut) -> None:
|
|
|
|
dut.run_all_single_board_cases()
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.esp32
|
|
|
|
@pytest.mark.wifi_two_dut
|
2023-12-04 22:52:02 -05:00
|
|
|
@pytest.mark.parametrize(
|
|
|
|
'count',
|
|
|
|
[
|
|
|
|
2,
|
|
|
|
],
|
|
|
|
indirect=True
|
|
|
|
)
|
2023-09-27 14:18:51 -04:00
|
|
|
def test_wpa_supplicant_ut_offchan(case_tester: CaseTester) -> None:
|
|
|
|
for case in case_tester.test_menu:
|
|
|
|
if case.attributes.get('test_env') == 'wifi_two_dut':
|
|
|
|
case_tester.run_multi_dev_case(case=case, reset=True)
|