touch_sensor: add pytest for all examples

This commit is contained in:
wangyuanze
2022-07-28 17:47:44 +08:00
parent 526f8f048b
commit 59ef1e1928
15 changed files with 140 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
| Supported Targets | ESP32-S2 |
| ----------------- | -------- |
| Supported Targets | ESP32-S2 | ESP32-S3 |
| ----------------- | -------- | -------- |
# Touch button example

View File

@@ -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')