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>
This commit is contained in:
parent
a712c3622d
commit
66b6f07ea3
4 changed files with 26 additions and 0 deletions
|
@ -126,6 +126,8 @@
|
|||
#include "uart.dtsi"
|
||||
};
|
||||
|
||||
#include "led.dtsi"
|
||||
|
||||
dht22 {
|
||||
compatible = "aosong,dht";
|
||||
status = "okay";
|
||||
|
|
4
tests/drivers/build_all/led.conf
Normal file
4
tests/drivers/build_all/led.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
CONFIG_TEST=y
|
||||
CONFIG_TEST_USERSPACE=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_GPIO=y
|
15
tests/drivers/build_all/led.dtsi
Normal file
15
tests/drivers/build_all/led.dtsi
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Application overlay for led devices
|
||||
*/
|
||||
|
||||
test_gpio_leds {
|
||||
compatible = "gpio-leds";
|
||||
test_gpio_led0: test_gpio_led_0 {
|
||||
gpios = <&test_gpio 0 0>;
|
||||
label = "Test GPIO LED";
|
||||
};
|
||||
};
|
|
@ -67,6 +67,11 @@ tests:
|
|||
min_ram: 32
|
||||
platform_exclude: serpente
|
||||
depends_on: gpio spi
|
||||
drivers.led.build:
|
||||
build_only: true
|
||||
extra_args: CONF_FILE=led.conf
|
||||
min_ram: 32
|
||||
tags: drivers
|
||||
drivers.eeprom.build:
|
||||
build_only: true
|
||||
extra_args: CONF_FILE=eeprom.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue