Skip to content

Commit 03c6015

Browse files
committed
samples: esb: add basic console check
Enable automated testing with twister. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent d2b454e commit 03c6015

File tree

3 files changed

+41
-18
lines changed

3 files changed

+41
-18
lines changed

samples/esb/esb_monitor/sample.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
sample:
22
name: ESB Monitor Sample
3+
common:
4+
harness: console
5+
harness_config:
6+
type: multi_line
7+
ordered: true
8+
regex:
9+
- "Enhanced ShockBurst monitor sample"
10+
- "Initialization complete"
11+
- "Start receiving packets"
12+
timeout: 15
13+
314
tests:
415
sample.esb.monitor:
516
sysbuild: true
617
filter: CONFIG_UART_CONSOLE and CONFIG_SERIAL_SUPPORT_INTERRUPT
7-
harness: keyboard
818
integration_platforms:
919
- nrf52dk/nrf52832
1020
- nrf52840dk/nrf52840
@@ -29,7 +39,6 @@ tests:
2939
- ci_samples_esb
3040
sample.esb.monitor.dynamic_irq:
3141
sysbuild: true
32-
build_only: true
3342
extra_configs:
3443
- CONFIG_ESB_DYNAMIC_INTERRUPTS=y
3544
- CONFIG_DYNAMIC_INTERRUPTS=y

samples/esb/esb_prx/sample.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
sample:
22
name: ESB prx Sample
3+
common:
4+
harness: console
5+
harness_config:
6+
type: multi_line
7+
ordered: true
8+
regex:
9+
- "Enhanced ShockBurst prx sample"
10+
- "Initialization complete"
11+
- "Setting up for packet receiption"
12+
timeout: 15
13+
314
tests:
415
sample.esb.prx:
516
sysbuild: true
617
filter: CONFIG_UART_CONSOLE and CONFIG_SERIAL_SUPPORT_INTERRUPT
7-
harness: keyboard
818
integration_platforms:
919
- nrf52dk/nrf52832
1020
- nrf52840dk/nrf52840
@@ -21,7 +31,6 @@ tests:
2131
- ci_samples_esb
2232
sample.esb.prx.build:
2333
sysbuild: true
24-
build_only: true
2534
integration_platforms:
2635
- nrf52dk/nrf52832
2736
- nrf52833dk/nrf52833
@@ -53,7 +62,6 @@ tests:
5362
- ci_samples_esb
5463
sample.esb.prx.dynamic_irq:
5564
sysbuild: true
56-
build_only: true
5765
extra_configs:
5866
- CONFIG_ESB_DYNAMIC_INTERRUPTS=y
5967
- CONFIG_DYNAMIC_INTERRUPTS=y
@@ -76,26 +84,25 @@ tests:
7684
- ci_samples_esb
7785
sample.esb.prx.nrf5340_nrf21540:
7886
sysbuild: true
79-
build_only: true
8087
extra_args: SHIELD=nrf21540ek
8188
integration_platforms:
8289
- nrf5340dk/nrf5340/cpunet
83-
platform_allow: nrf5340dk/nrf5340/cpunet
90+
platform_allow:
91+
- nrf5340dk/nrf5340/cpunet
8492
tags:
8593
- esb
8694
- ci_build
8795
- sysbuild
8896
- ci_samples_esb
8997
sample.esb.prx.fast_switching:
9098
sysbuild: true
91-
build_only: true
9299
extra_configs:
93100
- CONFIG_ESB_FAST_SWITCHING=y
94101
- CONFIG_ESB_FAST_CHANNEL_SWITCHING=y
95102
integration_platforms:
96103
- nrf54h20dk/nrf54h20/cpurad
97-
platform_allow: >
98-
nrf54h20dk/nrf54h20/cpurad
104+
platform_allow:
105+
- nrf54h20dk/nrf54h20/cpurad
99106
tags:
100107
- esb
101108
- ci_build

samples/esb/esb_ptx/sample.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
sample:
22
name: ESB ptx Sample
3+
common:
4+
harness: console
5+
harness_config:
6+
type: multi_line
7+
ordered: true
8+
regex:
9+
- "Enhanced ShockBurst ptx sample"
10+
- "Initialization complete"
11+
- "Sending test packet"
12+
timeout: 15
13+
314
tests:
415
sample.esb.ptx:
516
sysbuild: true
617
filter: CONFIG_UART_CONSOLE and CONFIG_SERIAL_SUPPORT_INTERRUPT
7-
harness: keyboard
818
integration_platforms:
919
- nrf52dk/nrf52832
1020
- nrf52840dk/nrf52840
@@ -21,7 +31,6 @@ tests:
2131
- ci_samples_esb
2232
sample.esb.ptx.build:
2333
sysbuild: true
24-
build_only: true
2534
integration_platforms:
2635
- nrf52dk/nrf52832
2736
- nrf52833dk/nrf52833
@@ -53,7 +62,6 @@ tests:
5362
- ci_samples_esb
5463
sample.esb.ptx.dynamic_irq:
5564
sysbuild: true
56-
build_only: true
5765
extra_configs:
5866
- CONFIG_ESB_DYNAMIC_INTERRUPTS=y
5967
- CONFIG_DYNAMIC_INTERRUPTS=y
@@ -76,26 +84,25 @@ tests:
7684
- ci_samples_esb
7785
sample.esb.ptx.nrf5340_nrf21540:
7886
sysbuild: true
79-
build_only: true
8087
extra_args: SHIELD=nrf21540ek
8188
integration_platforms:
8289
- nrf5340dk/nrf5340/cpunet
83-
platform_allow: nrf5340dk/nrf5340/cpunet
90+
platform_allow:
91+
- nrf5340dk/nrf5340/cpunet
8492
tags:
8593
- esb
8694
- ci_build
8795
- sysbuild
8896
- ci_samples_esb
8997
sample.esb.ptx.fast_switching:
9098
sysbuild: true
91-
build_only: true
9299
extra_configs:
93100
- CONFIG_ESB_FAST_SWITCHING=y
94101
- CONFIG_ESB_FAST_CHANNEL_SWITCHING=y
95102
integration_platforms:
96103
- nrf54h20dk/nrf54h20/cpurad
97-
platform_allow: >
98-
nrf54h20dk/nrf54h20/cpurad
104+
platform_allow:
105+
- nrf54h20dk/nrf54h20/cpurad
99106
tags:
100107
- esb
101108
- ci_build

0 commit comments

Comments
 (0)