2024-12-04 12:15:12 +01:00
|
|
|
# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
|
2022-10-06 23:16:54 +02:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
import pytest
|
|
|
|
|
from pytest_embedded import Dut
|
2025-02-24 10:18:03 +08:00
|
|
|
from pytest_embedded_idf.utils import idf_parametrize
|
2022-10-06 23:16:54 +02:00
|
|
|
|
|
|
|
|
|
2024-01-30 12:13:46 +01:00
|
|
|
@pytest.mark.temp_skip_ci(targets=['esp32s2'], reason='lack of runners with usb_host_flash_disk tag')
|
2022-10-06 23:16:54 +02:00
|
|
|
@pytest.mark.usb_host_flash_disk
|
2025-02-24 10:18:03 +08:00
|
|
|
@idf_parametrize('target', ['esp32s2', 'esp32s3', 'esp32p4'], indirect=['target'])
|
2022-10-06 23:16:54 +02:00
|
|
|
def test_usb_host(dut: Dut) -> None:
|
2025-03-21 09:07:53 +01:00
|
|
|
if dut.target == 'esp32p4':
|
2024-12-04 12:15:12 +01:00
|
|
|
dut.run_all_single_board_cases(group='high_speed', reset=True)
|
2025-03-21 09:07:53 +01:00
|
|
|
else:
|
|
|
|
|
dut.run_all_single_board_cases(group='full_speed', reset=True)
|