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:
Marek Pieta 2021-04-23 17:00:45 +02:00 committed by Ioannis Glaropoulos
commit 66b6f07ea3
4 changed files with 26 additions and 0 deletions

View file

@ -126,6 +126,8 @@
#include "uart.dtsi"
};
#include "led.dtsi"
dht22 {
compatible = "aosong,dht";
status = "okay";

View file

@ -0,0 +1,4 @@
CONFIG_TEST=y
CONFIG_TEST_USERSPACE=y
CONFIG_LED=y
CONFIG_LED_GPIO=y

View 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";
};
};

View file

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