Skip to content

Commit 6792f67

Browse files
committed
samples: bluetooth: add basic console check
Enable automated testing with twister. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 90ac945 commit 6792f67

File tree

11 files changed

+90
-13
lines changed

11 files changed

+90
-13
lines changed

samples/bluetooth/central_smp_client/sample.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.central_dfu_smp:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -27,3 +26,12 @@ tests:
2726
- bluetooth
2827
- ci_build
2928
- sysbuild
29+
harness: console
30+
harness_config:
31+
type: multi_line
32+
ordered: true
33+
regex:
34+
- "Starting Bluetooth Central SMP Client sample"
35+
- "Bluetooth initialized"
36+
- "Scanning successfully started"
37+
timeout: 15

samples/bluetooth/conn_time_sync/sample.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.conn_time_sync:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52840dk/nrf52840
109
- nrf52833dk/nrf52833
@@ -27,3 +26,10 @@ tests:
2726
- bluetooth
2827
- ci_build
2928
- sysbuild
29+
harness: console
30+
harness_config:
31+
type: multi_line
32+
ordered: true
33+
regex:
34+
- "Starting connection time sync sample."
35+
timeout: 15

samples/bluetooth/event_trigger/sample.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.event_trigger:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -27,3 +26,10 @@ tests:
2726
- bluetooth
2827
- ci_build
2928
- sysbuild
29+
harness: console
30+
harness_config:
31+
type: multi_line
32+
ordered: true
33+
regex:
34+
- "Starting Event Trigger Sample."
35+
timeout: 15

samples/bluetooth/iso_time_sync/sample.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.iso_time_sync:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52840dk/nrf52840
109
- nrf52833dk/nrf52833
@@ -27,3 +26,10 @@ tests:
2726
- bluetooth
2827
- ci_build
2928
- sysbuild
29+
harness: console
30+
harness_config:
31+
type: multi_line
32+
ordered: true
33+
regex:
34+
- "Bluetooth ISO Time Sync Demo"
35+
timeout: 15

samples/bluetooth/llpm/sample.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.llpm:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -27,3 +26,11 @@ tests:
2726
- bluetooth
2827
- ci_build
2928
- sysbuild
29+
harness: console
30+
harness_config:
31+
type: multi_line
32+
ordered: true
33+
regex:
34+
- "Starting Bluetooth LLPM sample"
35+
- "Bluetooth initialized"
36+
timeout: 15

samples/bluetooth/multiple_adv_sets/sample.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ sample:
22
description: Bluetooth Low Energy multiple advertising sets sample
33
name: Bluetooth LE multiple advertising sets
44
tests:
5-
sample.bluetooth.multiple_adv_sets.build:
5+
sample.bluetooth.multiple_adv_sets:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -29,3 +28,13 @@ tests:
2928
- bluetooth
3029
- ci_build
3130
- sysbuild
31+
harness: console
32+
harness_config:
33+
type: multi_line
34+
ordered: true
35+
regex:
36+
- "Starting Bluetooth multiple advertising sets sample"
37+
- "Bluetooth initialized"
38+
- "Non-connectable advertising started"
39+
- "Connectable advertising started"
40+
timeout: 15

samples/bluetooth/peripheral_bms/sample.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.peripheral_bms:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -27,3 +26,12 @@ tests:
2726
- bluetooth
2827
- ci_build
2928
- sysbuild
29+
harness: console
30+
harness_config:
31+
type: multi_line
32+
ordered: true
33+
regex:
34+
- "Starting Bluetooth Peripheral BMS sample"
35+
- "Bluetooth initialized"
36+
- "Advertising successfully started"
37+
timeout: 15

samples/bluetooth/peripheral_with_multiple_identities/sample.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.peripheral_with_multiple_identities:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52840dk/nrf52840
109
- nrf5340dk/nrf5340/cpuapp
@@ -25,3 +24,11 @@ tests:
2524
- bluetooth
2625
- ci_build
2726
- sysbuild
27+
harness: console
28+
harness_config:
29+
type: multi_line
30+
ordered: true
31+
regex:
32+
- "Bluetooth initialized"
33+
- "Advertiser 19 successfully started"
34+
timeout: 15

samples/bluetooth/radio_notification_cb/sample.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.conn_evt_cb:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -27,3 +26,10 @@ tests:
2726
- bluetooth
2827
- ci_build
2928
- sysbuild
29+
harness: console
30+
harness_config:
31+
type: multi_line
32+
ordered: true
33+
regex:
34+
- "Starting radio notification callback sample"
35+
timeout: 15

samples/bluetooth/scanning_while_connecting/sample.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.scanning_while_connecting:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52840dk/nrf52840
109
- nrf5340dk/nrf5340/cpuapp
@@ -25,3 +24,11 @@ tests:
2524
- bluetooth
2625
- ci_build
2726
- sysbuild
27+
harness: console
28+
harness_config:
29+
type: multi_line
30+
ordered: true
31+
regex:
32+
- "Bluetooth initialized"
33+
- "starting sample benchmark"
34+
timeout: 15

0 commit comments

Comments
 (0)