Skip to content

Commit a64ad63

Browse files
MarekPietarlubos
authored andcommitted
applications: nrf_desktop: Add harness to sample.yaml
Change adds harness to sample.yaml to introduce a simple validation. The harness is used only by configurations that provide logs over UART. Change also moves part of test configuration under common to avoid duplication. Jira: NCSDK-26996 Signed-off-by: Marek Pieta <[email protected]>
1 parent 046cca6 commit a64ad63

File tree

1 file changed

+27
-43
lines changed

1 file changed

+27
-43
lines changed
Lines changed: 27 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,34 @@
11
sample:
22
name: nRF Desktop
33
description: HID device reference design
4+
common:
5+
sysbuild: true
6+
tags: bluetooth ci_build sysbuild
7+
harness: console
8+
harness_config:
9+
type: multi_line
10+
ordered: false
11+
regex:
12+
- "app_event_manager: e:module_state_event module:main state:READY"
13+
- "ble_state: Bluetooth initialized"
14+
- "settings_loader: Settings loaded"
15+
- "ble_bond: Selected BLE peers"
16+
- "(ble_adv: Advertising started)|(ble_scan: Scan started)"
17+
- "dfu: Secondary image slot is clean"
418
tests:
19+
applications.nrf_desktop.zdebug.uart:
20+
platform_allow:
21+
- nrf54h20dk/nrf54h20/cpuapp
22+
- nrf54l15pdk/nrf54l15/cpuapp
23+
integration_platforms:
24+
- nrf54h20dk/nrf54h20/cpuapp
25+
- nrf54l15pdk/nrf54l15/cpuapp
526
applications.nrf_desktop.zdebug:
6-
sysbuild: true
727
build_only: true
828
platform_allow: >
929
nrf52dmouse/nrf52832 nrf52kbd/nrf52832 nrf52810dmouse/nrf52810 nrf52820dongle/nrf52820
1030
nrf52833dk/nrf52820 nrf52833dk/nrf52833 nrf52833dongle/nrf52833 nrf52840dk/nrf52840
1131
nrf52840dongle/nrf52840 nrf52840gmouse/nrf52840 nrf5340dk/nrf5340/cpuapp
12-
nrf54h20dk/nrf54h20/cpuapp nrf54l15pdk/nrf54l15/cpuapp
1332
integration_platforms:
1433
- nrf52dmouse/nrf52832
1534
- nrf52kbd/nrf52832
@@ -22,47 +41,35 @@ tests:
2241
- nrf52840dongle/nrf52840
2342
- nrf52840gmouse/nrf52840
2443
- nrf5340dk/nrf5340/cpuapp
25-
- nrf54h20dk/nrf54h20/cpuapp
26-
- nrf54l15pdk/nrf54l15/cpuapp
27-
tags: bluetooth ci_build sysbuild
2844
applications.nrf_desktop.zdebug_wwcb:
29-
sysbuild: true
3045
build_only: true
3146
platform_allow: nrf52840dk/nrf52840
3247
integration_platforms:
3348
- nrf52840dk/nrf52840
34-
tags: bluetooth ci_build sysbuild
3549
extra_args: FILE_SUFFIX=wwcb
3650
applications.nrf_desktop.zdebug_fast_pair.gmouse:
37-
sysbuild: true
3851
build_only: true
3952
platform_allow: nrf52840dk/nrf52840 nrf52840gmouse/nrf52840
4053
integration_platforms:
4154
- nrf52840dk/nrf52840
4255
- nrf52840gmouse/nrf52840
43-
tags: bluetooth ci_build sysbuild
4456
extra_args: FILE_SUFFIX=fast_pair
4557
FP_MODEL_ID=0x8E717D
4658
FP_ANTI_SPOOFING_KEY=dZxFzP7X9CcfLPC0apyRkmgsh3n2EbWo9NFNXfVuxAM=
4759
applications.nrf_desktop.zdebug_mcuboot_qspi:
48-
sysbuild: true
4960
build_only: true
5061
platform_allow: nrf52840dk/nrf52840
5162
integration_platforms:
5263
- nrf52840dk/nrf52840
53-
tags: bluetooth ci_build sysbuild
5464
extra_args: FILE_SUFFIX=mcuboot_qspi
5565
applications.nrf_desktop.zdebug_mcuboot_smp:
56-
sysbuild: true
5766
build_only: true
5867
platform_allow: nrf52840dk/nrf52840 nrf52840gmouse/nrf52840
5968
integration_platforms:
6069
- nrf52840dk/nrf52840
6170
- nrf52840gmouse/nrf52840
62-
tags: bluetooth ci_build sysbuild
6371
extra_args: FILE_SUFFIX=mcuboot_smp
6472
applications.nrf_desktop.zdebugwithshell:
65-
sysbuild: true
6673
build_only: true
6774
platform_allow: >
6875
nrf52kbd/nrf52832 nrf52833dk/nrf52833 nrf52833dongle/nrf52833 nrf52840dk/nrf52840
@@ -74,67 +81,57 @@ tests:
7481
- nrf52840dk/nrf52840
7582
- nrf52840dongle/nrf52840
7683
- nrf52840gmouse/nrf52840
77-
tags: bluetooth ci_build sysbuild
7884
extra_configs:
7985
- CONFIG_DESKTOP_SHELL=y
8086
applications.nrf_desktop.zdebug_3bleconn:
81-
sysbuild: true
8287
build_only: true
8388
platform_allow: nrf52840dongle/nrf52840
8489
integration_platforms:
8590
- nrf52840dongle/nrf52840
86-
tags: bluetooth ci_build sysbuild
8791
extra_args: FILE_SUFFIX=3bleconn
8892
applications.nrf_desktop.zdebug_4llpmconn:
89-
sysbuild: true
9093
build_only: true
9194
platform_allow: nrf52840dongle/nrf52840
9295
integration_platforms:
9396
- nrf52840dongle/nrf52840
94-
tags: bluetooth ci_build sysbuild
9597
extra_args: FILE_SUFFIX=4llpmconn
9698
applications.nrf_desktop.zdebug_dongle:
97-
sysbuild: true
9899
build_only: true
99100
platform_allow: nrf52840dk/nrf52840
100101
integration_platforms:
101102
- nrf52840dk/nrf52840
102-
tags: bluetooth ci_build sysbuild
103103
extra_args: FILE_SUFFIX=dongle
104+
applications.nrf_desktop.zdebug_keyboard.uart:
105+
platform_allow:
106+
- nrf54l15pdk/nrf54l15/cpuapp
107+
integration_platforms:
108+
- nrf54l15pdk/nrf54l15/cpuapp
109+
extra_args: FILE_SUFFIX=keyboard
104110
applications.nrf_desktop.zdebug_keyboard:
105-
sysbuild: true
106111
build_only: true
107112
platform_allow:
108113
- nrf52840dk/nrf52840
109-
- nrf54l15pdk/nrf54l15/cpuapp
110114
integration_platforms:
111115
- nrf52840dk/nrf52840
112-
- nrf54l15pdk/nrf54l15/cpuapp
113-
tags: bluetooth ci_build sysbuild
114116
extra_args: FILE_SUFFIX=keyboard
115117
applications.nrf_desktop.zdebug_nrf21540ek:
116-
sysbuild: true
117118
build_only: true
118119
platform_allow: nrf52840dk/nrf52840
119120
integration_platforms:
120121
- nrf52840dk/nrf52840
121-
tags: bluetooth ci_build sysbuild
122122
extra_args: SHIELD=nrf21540ek
123123
extra_configs:
124124
- CONFIG_CAF_BLE_USE_LLPM=n
125125
applications.nrf_desktop.zdebug_nrf21540ek_multicore:
126-
sysbuild: true
127126
build_only: true
128127
platform_allow: nrf5340dk/nrf5340/cpuapp
129128
integration_platforms:
130129
- nrf5340dk/nrf5340/cpuapp
131-
tags: bluetooth ci_build sysbuild
132130
extra_args: SHIELD=nrf21540ek_fwd
133131
ipc_radio_SHIELD=nrf21540ek
134132
extra_configs:
135133
- CONFIG_CAF_BLE_USE_LLPM=n
136134
applications.nrf_desktop.zrelease:
137-
sysbuild: true
138135
build_only: true
139136
platform_allow: >
140137
nrf52dmouse/nrf52832 nrf52kbd/nrf52832 nrf52810dmouse/nrf52810 nrf52820dongle/nrf52820
@@ -155,65 +152,52 @@ tests:
155152
- nrf5340dk/nrf5340/cpuapp
156153
- nrf54h20dk/nrf54h20/cpuapp
157154
- nrf54l15pdk/nrf54l15/cpuapp
158-
tags: bluetooth ci_build sysbuild
159155
extra_args: FILE_SUFFIX=release
160156
applications.nrf_desktop.zrelease_fast_pair.keyboard:
161-
sysbuild: true
162157
build_only: true
163158
platform_allow: nrf52kbd/nrf52832
164159
integration_platforms:
165160
- nrf52kbd/nrf52832
166-
tags: bluetooth ci_build sysbuild
167161
extra_args: FILE_SUFFIX=release_fast_pair
168162
FP_MODEL_ID=0x52FF02
169163
FP_ANTI_SPOOFING_KEY=8E8ulwhSIp/skZeg27xmWv2SxRxTOagypHrf2OdrhGY=
170164
applications.nrf_desktop.zrelease_fast_pair.gmouse:
171-
sysbuild: true
172165
build_only: true
173166
platform_allow: nrf52840gmouse/nrf52840
174167
integration_platforms:
175168
- nrf52840gmouse/nrf52840
176-
tags: bluetooth ci_build sysbuild
177169
extra_args: FILE_SUFFIX=release_fast_pair
178170
FP_MODEL_ID=0x8E717D
179171
FP_ANTI_SPOOFING_KEY=dZxFzP7X9CcfLPC0apyRkmgsh3n2EbWo9NFNXfVuxAM=
180172
applications.nrf_desktop.zrelease_4llpmconn:
181-
sysbuild: true
182173
build_only: true
183174
platform_allow: nrf52840dongle/nrf52840
184175
integration_platforms:
185176
- nrf52840dongle/nrf52840
186-
tags: bluetooth ci_build sysbuild
187177
extra_args: FILE_SUFFIX=release_4llpmconn
188178
applications.nrf_desktop.zdebug.usb_next:
189-
sysbuild: true
190179
build_only: true
191180
platform_allow: >
192181
nrf52840dk/nrf52840 nrf52840gmouse/nrf52840 nrf52840dongle/nrf52840
193182
integration_platforms:
194183
- nrf52840dk/nrf52840
195184
- nrf52840gmouse/nrf52840
196185
- nrf52840dongle/nrf52840
197-
tags: bluetooth ci_build sysbuild
198186
extra_configs:
199187
- CONFIG_DESKTOP_USB_STACK_NEXT=y
200188
applications.nrf_desktop.zdebug_dongle.usb_next:
201-
sysbuild: true
202189
build_only: true
203190
platform_allow: nrf52840dk/nrf52840
204191
integration_platforms:
205192
- nrf52840dk/nrf52840
206-
tags: bluetooth ci_build sysbuild
207193
extra_args: FILE_SUFFIX=dongle
208194
extra_configs:
209195
- CONFIG_DESKTOP_USB_STACK_NEXT=y
210196
applications.nrf_desktop.zdebug_keyboard.usb_next:
211-
sysbuild: true
212197
build_only: true
213198
platform_allow: nrf52840dk/nrf52840
214199
integration_platforms:
215200
- nrf52840dk/nrf52840
216-
tags: bluetooth ci_build sysbuild
217201
extra_args: FILE_SUFFIX=keyboard
218202
extra_configs:
219203
- CONFIG_DESKTOP_USB_STACK_NEXT=y

0 commit comments

Comments
 (0)