Skip to content

Commit 7f88aa2

Browse files
committed
Merge branch 'test/reenable_mcpwm_sync_example_test' into 'master'
test(mcpwm): reenable sync example test Closes IDF-12541 See merge request espressif/esp-idf!37507
2 parents e12db42 + 603ebbb commit 7f88aa2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,6 @@ examples/peripherals/mcpwm/mcpwm_servo_control:
299299
examples/peripherals/mcpwm/mcpwm_sync:
300300
disable:
301301
- if: SOC_MCPWM_SUPPORTED != 1
302-
disable_test:
303-
- if: IDF_TARGET in ["esp32c5", "esp32h2", "esp32p4", "esp32c6"]
304-
temporary: true
305-
reason: the earlier test script is invalid. c6 tests never executed. need to check manually
306302
depends_components:
307303
- esp_driver_mcpwm
308304

examples/peripherals/mcpwm/mcpwm_sync/pytest_mcpwm_sync.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
22
# SPDX-License-Identifier: CC0-1.0
3+
import itertools
4+
35
import pytest
46
from pytest_embedded import Dut
57
from pytest_embedded_idf.utils import idf_parametrize
@@ -8,7 +10,11 @@
810
@pytest.mark.generic
911
@idf_parametrize(
1012
'config,target',
11-
[('gpio', 'esp32'), ('gpio', 'esp32s3'), ('tez', 'esp32'), ('tez', 'esp32s3'), ('soft', 'esp32s3')],
13+
itertools.chain(
14+
itertools.product(['gpio'], ['esp32', 'esp32s3', 'esp32c5', 'esp32c6', 'esp32h2', 'esp32p4']),
15+
itertools.product(['tez'], ['esp32', 'esp32s3', 'esp32c5', 'esp32c6', 'esp32h2', 'esp32p4']),
16+
itertools.product(['soft'], ['esp32s3', 'esp32c5', 'esp32c6', 'esp32h2', 'esp32p4']),
17+
),
1218
indirect=['config', 'target'],
1319
)
1420
def test_mcpwm_sync_example(dut: Dut) -> None:

0 commit comments

Comments
 (0)