mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
touch_sensor: add pytest for all examples
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
| Supported Targets | ESP32-S2 |
|
||||
| ----------------- | -------- |
|
||||
| Supported Targets | ESP32-S2 | ESP32-S3 |
|
||||
| ----------------- | -------- | -------- |
|
||||
|
||||
# Touch button example
|
||||
|
||||
|
@@ -0,0 +1,14 @@
|
||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
import pytest
|
||||
from pytest_embedded import Dut
|
||||
|
||||
|
||||
@pytest.mark.esp32s2
|
||||
@pytest.mark.esp32s3
|
||||
@pytest.mark.generic
|
||||
def test_touch_button(dut: Dut) -> None:
|
||||
dut.expect_exact('Touch Button Example: Touch element library installed')
|
||||
dut.expect_exact('Touch Button Example: Touch button installed')
|
||||
dut.expect_exact('Touch Button Example: Touch buttons created')
|
||||
dut.expect_exact('Touch Button Example: Touch element library start')
|
Reference in New Issue
Block a user