From 0ff7710c6a9e198d0d98091cc4e08cc77a54ca43 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Mon, 6 May 2024 19:55:36 +0200 Subject: [PATCH] add tests --- tests/components/gpio/test.nrf52-adafruit.yaml | 14 ++++++++++++++ .../build_components_base.nrf52-adafruit.yaml | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/components/gpio/test.nrf52-adafruit.yaml create mode 100644 tests/test_build_components/build_components_base.nrf52-adafruit.yaml diff --git a/tests/components/gpio/test.nrf52-adafruit.yaml b/tests/components/gpio/test.nrf52-adafruit.yaml new file mode 100644 index 0000000000..3ca285117d --- /dev/null +++ b/tests/components/gpio/test.nrf52-adafruit.yaml @@ -0,0 +1,14 @@ +binary_sensor: + - platform: gpio + pin: 2 + id: gpio_binary_sensor + +output: + - platform: gpio + pin: 3 + id: gpio_output + +switch: + - platform: gpio + pin: 4 + id: gpio_switch diff --git a/tests/test_build_components/build_components_base.nrf52-adafruit.yaml b/tests/test_build_components/build_components_base.nrf52-adafruit.yaml new file mode 100644 index 0000000000..c9733c9fbf --- /dev/null +++ b/tests/test_build_components/build_components_base.nrf52-adafruit.yaml @@ -0,0 +1,15 @@ +esphome: + name: componenttestnrf52 + friendly_name: $component_name + +nrf52: + board: adafruit_itsybitsy_nrf52840 + +logger: + level: VERY_VERBOSE + +packages: + component_under_test: !include + file: $component_test_file + vars: + component_test_file: $component_test_file