Skip to content

Commit 17d21fe

Browse files
nordic-pikspdunaj
authored andcommitted
samples: bluetooth: basic console check for selected samples
Allow automatic verification if samples boots-up and starts ble. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 0dfc06f commit 17d21fe

File tree

6 files changed

+43
-6
lines changed

6 files changed

+43
-6
lines changed

samples/bluetooth/central_hids/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.central_hids:
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 Bluetooth Central HIDS sample"
39+
- "Bluetooth initialized"
40+
- "Scanning successfully started"

samples/bluetooth/central_uart/sample.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.central_uart:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -33,6 +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 Central UART sample"
3641
sample.bluetooth.central_uart.bt_rpc:
3742
sysbuild: true
3843
build_only: true

samples/bluetooth/peripheral_hids_keyboard/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.peripheral_hids_keyboard:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -31,3 +30,10 @@ 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 Peripheral HIDS keyboard sample"
39+
- "Bluetooth initialized"

samples/bluetooth/peripheral_hids_mouse/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_hids_mouse:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -31,6 +30,14 @@ 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 Peripheral HIDS mouse sample"
39+
- "Bluetooth initialized"
40+
- "Regular advertising started"
3441
sample.bluetooth.peripheral_hids_mouse.ble_rpc:
3542
sysbuild: true
3643
build_only: true

samples/bluetooth/peripheral_lbs/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_lbs:
66
sysbuild: true
7-
build_only: true
87
integration_platforms:
98
- nrf52dk/nrf52832
109
- nrf52840dk/nrf52840
@@ -35,6 +34,14 @@ tests:
3534
- bluetooth
3635
- ci_build
3736
- sysbuild
37+
harness: console
38+
harness_config:
39+
type: multi_line
40+
ordered: true
41+
regex:
42+
- "Starting Bluetooth Peripheral LBS sample"
43+
- "Bluetooth initialized"
44+
- "Advertising successfully started"
3845
sample.bluetooth.peripheral_lbs_minimal:
3946
sysbuild: true
4047
build_only: true

samples/bluetooth/peripheral_uart/sample.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.peripheral_uart:
66
sysbuild: true
7-
build_only: true
87
platform_allow:
98
- nrf52dk/nrf52832
109
- nrf52833dk/nrf52833
@@ -41,6 +40,12 @@ tests:
4140
- bluetooth
4241
- ci_build
4342
- sysbuild
43+
harness: console
44+
harness_config:
45+
type: multi_line
46+
ordered: true
47+
regex:
48+
- "Starting Nordic UART service sample"
4449
sample.bluetooth.peripheral_uart_cdc:
4550
sysbuild: true
4651
build_only: true

0 commit comments

Comments
 (0)