Skip to content

Commit 4bfcf41

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

File tree

20 files changed

+134
-25
lines changed

20 files changed

+134
-25
lines changed

samples/bluetooth/central_and_peripheral_hr/sample.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ sample:
22
description: Bluetooth Low Energy central and peripheral heart rate relay sample
33
name: Bluetooth LE Central and Peripheral HRS
44
tests:
5-
sample.bluetooth.central_and_peripheral_hr.build:
5+
sample.bluetooth.central_and_peripheral_hr:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -31,3 +30,12 @@ tests:
3130
- bluetooth
3231
- ci_build
3332
- sysbuild
33+
harness: console
34+
harness_config:
35+
type: multi_line
36+
ordered: true
37+
regex:
38+
- "Starting Bluetooth Central and Peripheral Heart Rate relay sample"
39+
- "Scanning started"
40+
- "Advertising successfully started"
41+
timeout: 15

samples/bluetooth/central_bas/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_bas:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -31,3 +30,12 @@ tests:
3130
- bluetooth
3231
- ci_build
3332
- sysbuild
33+
harness: console
34+
harness_config:
35+
type: multi_line
36+
ordered: true
37+
regex:
38+
- "Starting Bluetooth Central BAS sample"
39+
- "Bluetooth initialized"
40+
- "Scanning successfully started"
41+
timeout: 15

samples/bluetooth/central_hids/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ tests:
4040
- "Starting Bluetooth Central HIDS sample"
4141
- "Bluetooth initialized"
4242
- "Scanning successfully started"
43+
timeout: 15

samples/bluetooth/central_hr_coded/sample.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ sample:
55
tests:
66
sample.bluetooth.central_hr_coded:
77
sysbuild: true
8-
build_only: true
98
integration_platforms:
109
- nrf52840dk/nrf52840
1110
- nrf5340dk/nrf5340/cpuapp
@@ -28,3 +27,12 @@ tests:
2827
- bluetooth
2928
- ci_build
3029
- sysbuild
30+
harness: console
31+
harness_config:
32+
type: multi_line
33+
ordered: true
34+
regex:
35+
- "Starting Bluetooth Central HR coded sample"
36+
- "Bluetooth initialized"
37+
- "Scanning successfully started"
38+
timeout: 15

samples/bluetooth/central_uart/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ tests:
4040
ordered: true
4141
regex:
4242
- "Starting Bluetooth Central UART sample"
43+
timeout: 15
4344
sample.bluetooth.central_uart.bt_rpc:
4445
sysbuild: true
4546
build_only: true

samples/bluetooth/direction_finding_connectionless_tx/sample.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.direction_finding_connectionless_tx.aoa.sdc:
66
sysbuild: true
7-
build_only: true
87
platform_allow:
98
- nrf52833dk/nrf52833
109
- nrf52833dk/nrf52820
@@ -26,6 +25,16 @@ tests:
2625
- nrf54l15dk/nrf54l15/cpuapp
2726
- nrf54lm20dk/nrf54lm20a/cpuapp
2827
- nrf54lv10dk/nrf54lv10a/cpuapp
28+
harness: console
29+
harness_config:
30+
type: multi_line
31+
ordered: true
32+
regex:
33+
- "Starting Connectionless Beacon Demo"
34+
- "Bluetooth initialization...success"
35+
- "Periodic advertising enable...success"
36+
- "Extended advertising enable...success"
37+
timeout: 15
2938
sample.bluetooth.direction_finding_connectionless_tx.aoa.bt_ll_sw_split.nrf52:
3039
sysbuild: false
3140
build_only: true

samples/bluetooth/direction_finding_peripheral/sample.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ sample:
55
tests:
66
sample.bluetooth.direction_finding_peripheral.aoa.sdc.nrf52_nrf53_54lx:
77
sysbuild: true
8-
build_only: true
98
platform_allow:
109
- nrf52833dk/nrf52833
1110
- nrf52833dk/nrf52820
@@ -27,6 +26,14 @@ tests:
2726
- nrf54l15dk/nrf54l15/cpuapp
2827
- nrf54lm20dk/nrf54lm20a/cpuapp
2928
- nrf54lv10dk/nrf54lv10a/cpuapp
29+
harness: console
30+
harness_config:
31+
type: multi_line
32+
ordered: true
33+
regex:
34+
- "Bluetooth initialized"
35+
- "Advertising successfully started"
36+
timeout: 15
3037
sample.bluetooth.direction_finding_peripheral.aoa.bt_ll_sw_split.nrf52:
3138
sysbuild: false
3239
build_only: true

samples/bluetooth/peripheral_cgms/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_cgm:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52833dk/nrf52833
@@ -33,3 +32,12 @@ tests:
3332
- bluetooth
3433
- ci_build
3534
- sysbuild
35+
harness: console
36+
harness_config:
37+
type: multi_line
38+
ordered: true
39+
regex:
40+
- "Starting Bluetooth Peripheral CGM sample"
41+
- "Bluetooth initialized"
42+
- "Advertising successfully started"
43+
timeout: 15

samples/bluetooth/peripheral_cts_client/sample.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ sample:
22
description: Bluetooth Low Energy CTS client sample
33
name: Bluetooth LE CTS client
44
tests:
5-
sample.bluetooth.peripheral_cts_client.build:
5+
sample.bluetooth.peripheral_cts_client:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -31,3 +30,11 @@ tests:
3130
- bluetooth
3231
- ci_build
3332
- sysbuild
33+
harness: console
34+
harness_config:
35+
type: multi_line
36+
ordered: true
37+
regex:
38+
- "Starting Current Time Service client sample"
39+
- "Advertising successfully started"
40+
timeout: 15

samples/bluetooth/peripheral_gatt_dm/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_gatt_dm:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -31,3 +30,11 @@ tests:
3130
- bluetooth
3231
- ci_build
3332
- sysbuild
33+
harness: console
34+
harness_config:
35+
type: multi_line
36+
ordered: true
37+
regex:
38+
- "Starting GATT Discovery Manager sample"
39+
- "Advertising successfully started"
40+
timeout: 15

0 commit comments

Comments
 (0)