Skip to content

Commit 88718bc

Browse files
committed
tests: drivers: Add LED GPIO driver to build_all
Change adds LED GPIO driver to build_all test. Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
1 parent 27a6785 commit 88718bc

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

tests/drivers/build_all/app.overlay

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126
#include "uart.dtsi"
127127
};
128128

129+
#include "led.dtsi"
130+
129131
dht22 {
130132
compatible = "aosong,dht";
131133
status = "okay";

tests/drivers/build_all/led.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_TEST=y
2+
CONFIG_TEST_USERSPACE=y
3+
CONFIG_LED=y
4+
CONFIG_LED_GPIO=y

tests/drivers/build_all/led.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2021, Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Application overlay for led devices
7+
*/
8+
9+
test_gpio_leds {
10+
compatible = "gpio-leds";
11+
test_gpio_led0: test_gpio_led_0 {
12+
gpios = <&test_gpio 0 0>;
13+
label = "Test GPIO LED";
14+
};
15+
};

tests/drivers/build_all/testcase.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ tests:
6767
min_ram: 32
6868
platform_exclude: serpente
6969
depends_on: gpio spi
70+
drivers.led.build:
71+
build_only: true
72+
extra_args: CONF_FILE=led.conf
73+
min_ram: 32
74+
tags: drivers
7075
drivers.eeprom.build:
7176
build_only: true
7277
extra_args: CONF_FILE=eeprom.conf

0 commit comments

Comments
 (0)