forked from espressif/esp-idf
test(mcpwm): reenable sync example test
This commit is contained in:
@@ -299,10 +299,6 @@ examples/peripherals/mcpwm/mcpwm_servo_control:
|
|||||||
examples/peripherals/mcpwm/mcpwm_sync:
|
examples/peripherals/mcpwm/mcpwm_sync:
|
||||||
disable:
|
disable:
|
||||||
- if: SOC_MCPWM_SUPPORTED != 1
|
- if: SOC_MCPWM_SUPPORTED != 1
|
||||||
disable_test:
|
|
||||||
- if: IDF_TARGET in ["esp32c5", "esp32h2", "esp32p4", "esp32c6"]
|
|
||||||
temporary: true
|
|
||||||
reason: the earlier test script is invalid. c6 tests never executed. need to check manually
|
|
||||||
depends_components:
|
depends_components:
|
||||||
- esp_driver_mcpwm
|
- esp_driver_mcpwm
|
||||||
|
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
# SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
import itertools
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
from pytest_embedded_idf.utils import idf_parametrize
|
from pytest_embedded_idf.utils import idf_parametrize
|
||||||
@@ -8,7 +10,11 @@ from pytest_embedded_idf.utils import idf_parametrize
|
|||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
@idf_parametrize(
|
@idf_parametrize(
|
||||||
'config,target',
|
'config,target',
|
||||||
[('gpio', 'esp32'), ('gpio', 'esp32s3'), ('tez', 'esp32'), ('tez', 'esp32s3'), ('soft', 'esp32s3')],
|
itertools.chain(
|
||||||
|
itertools.product(['gpio'], ['esp32', 'esp32s3', 'esp32c5', 'esp32c6', 'esp32h2', 'esp32p4']),
|
||||||
|
itertools.product(['tez'], ['esp32', 'esp32s3', 'esp32c5', 'esp32c6', 'esp32h2', 'esp32p4']),
|
||||||
|
itertools.product(['soft'], ['esp32s3', 'esp32c5', 'esp32c6', 'esp32h2', 'esp32p4']),
|
||||||
|
),
|
||||||
indirect=['config', 'target'],
|
indirect=['config', 'target'],
|
||||||
)
|
)
|
||||||
def test_mcpwm_sync_example(dut: Dut) -> None:
|
def test_mcpwm_sync_example(dut: Dut) -> None:
|
||||||
|
Reference in New Issue
Block a user