Skip to content

Commit

Permalink
[nrf noup] samples: basic: blinky: add eGPIO tests configuration
Browse files Browse the repository at this point in the history
Add yaml configurations to enable eGPIO tests with sysbuild
and different backends.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
  • Loading branch information
jaz1-nordic committed Sep 12, 2024
1 parent 78f6547 commit 4d49986
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

&led0 {
gpios = <&egpio 7 GPIO_ACTIVE_HIGH>;
};
47 changes: 43 additions & 4 deletions samples/basic/blinky/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,51 @@
sample:
name: Blinky Sample
common:
tags:
- LED
- gpio
depends_on: gpio
tests:
sample.basic.blinky:
tags:
- LED
- gpio
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds")
depends_on: gpio
harness: led
integration_platforms:
- frdm_k64f

sample.basic.blinky.egpio_icmsg:
sysbuild: true
platform_allow:
- nrf54l15dk/nrf54l15/cpuapp
integration_platforms:
- nrf54l15dk/nrf54l15/cpuapp
extra_args: blinky_SNIPPET=emulated-gpio-icmsg
SB_CONFIG_SDP=y
SB_CONFIG_EGPIO_FLPR_APPLICATION=y
SB_CONFIG_PARTITION_MANAGER=n
EXTRA_DTC_OVERLAY_FILE="./boards/nrf54l15dk_nrf54l15_cpuapp_egpio.overlay"
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "LED state: ON"
- "LED state: OFF"

sample.basic.blinky.egpio_mbox:
sysbuild: true
platform_allow:
- nrf54l15dk/nrf54l15/cpuapp
integration_platforms:
- nrf54l15dk/nrf54l15/cpuapp
extra_args: blinky_SNIPPET=emulated-gpio-mbox
SB_CONFIG_SDP=y
SB_CONFIG_EGPIO_FLPR_APPLICATION=y
SB_CONFIG_PARTITION_MANAGER=n
EXTRA_DTC_OVERLAY_FILE="./boards/nrf54l15dk_nrf54l15_cpuapp_egpio.overlay"
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "LED state: ON"
- "LED state: OFF"

0 comments on commit 4d49986

Please sign in to comment.