Skip to content

Commit

Permalink
[nrf noup] Bluetooth: Fix building tests for the zephyr link layer
Browse files Browse the repository at this point in the history
After
nrfconnect/sdk-nrf#16819
and
#1940
the Zephyr Link Layer device tree node is disabled.

This commit enables the node by applying the snippet
for test cases that requires it.

Signed-off-by: Rubin Gerritsen <[email protected]>
  • Loading branch information
rugeGerritsen committed Sep 4, 2024
1 parent 1ab7966 commit 9b7a14d
Show file tree
Hide file tree
Showing 43 changed files with 195 additions and 65 deletions.
4 changes: 3 additions & 1 deletion samples/bluetooth/beacon/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ tests:
- qemu_cortex_m3

sample.bluetooth.beacon-coex:
extra_args: CONF_FILE="prj-coex.conf"
extra_args:
- CONF_FILE="prj-coex.conf"
- SNIPPET="bt-ll-sw-split"
harness: bluetooth
platform_allow: nrf52840dk/nrf52840
tags: bluetooth
2 changes: 1 addition & 1 deletion samples/bluetooth/broadcast_audio_sink/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ tests:
- nrf52_bsim
- nrf52833dk/nrf52833
- nrf52840dongle/nrf52840
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf SNIPPET="bt-ll-sw-split"
tags: bluetooth
2 changes: 1 addition & 1 deletion samples/bluetooth/broadcast_audio_source/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ tests:
- nrf52_bsim
- nrf52833dk/nrf52833
- nrf52840dongle/nrf52840
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf SNIPPET="bt-ll-sw-split"
tags: bluetooth
4 changes: 1 addition & 3 deletions samples/bluetooth/central_iso/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ tests:
sample.bluetooth.central_iso.bt_ll_sw_split:
harness: bluetooth
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf52_bsim
- nrf52833dk/nrf52833
integration_platforms:
- nrf52833dk/nrf52833
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf SNIPPET="bt-ll-sw-split"
tags: bluetooth
14 changes: 11 additions & 3 deletions samples/bluetooth/direction_finding_central/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@ tests:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
- nrf5340dk/nrf5340/cpuapp
sample.bluetooth.direction_finding.central.aod:
sample.bluetooth.direction_finding.central.aod_with_controller:
harness: bluetooth
extra_args: OVERLAY_CONFIG="overlay-aod.conf"
extra_args:
- OVERLAY_CONFIG="overlay-aod.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
- nrf5340dk/nrf5340/cpuapp
tags: bluetooth
integration_platforms:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
sample.bluetooth.direction_finding.central.aod_host_only:
harness: bluetooth
extra_args: OVERLAY_CONFIG="overlay-aod.conf"
platform_allow:
- nrf5340dk/nrf5340/cpuapp
tags: bluetooth
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
13 changes: 10 additions & 3 deletions samples/bluetooth/direction_finding_connectionless_rx/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@ tests:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
- nrf5340dk/nrf5340/cpuapp
sample.bluetooth.direction_finding_connectionless_rx.aod:
sample.bluetooth.direction_finding_connectionless_rx.aod_with_controller:
harness: bluetooth
extra_args: OVERLAY_CONFIG="overlay-aod.conf"
extra_args:
- OVERLAY_CONFIG="overlay-aod.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
sample.bluetooth.direction_finding_connectionless_rx.aod_host_only:
harness: bluetooth
extra_args: OVERLAY_CONFIG="overlay-aod.conf"
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ tests:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
- nrf5340dk/nrf5340/cpuapp
sample.bluetooth.direction_finding_connectionless.aoa:
sample.bluetooth.direction_finding_connectionless.aoa_with_controller:
harness: bluetooth
extra_args: OVERLAY_CONFIG="overlay-aoa.conf"
extra_args: OVERLAY_CONFIG="overlay-aoa.conf" SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
sample.bluetooth.direction_finding_connectionless.aoa_host_only:
harness: bluetooth
extra_args: OVERLAY_CONFIG="overlay-aoa.conf"
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
15 changes: 12 additions & 3 deletions samples/bluetooth/direction_finding_peripheral/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,24 @@ tests:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
- nrf5340dk/nrf5340/cpuapp
sample.bluetooth.direction_finding.peripheral.aod:
sample.bluetooth.direction_finding.peripheral.aod_with_controller:
harness: bluetooth
extra_args: OVERLAY_CONFIG="overlay-aoa.conf"
extra_args:
- OVERLAY_CONFIG="overlay-aoa.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
- nrf5340dk/nrf5340/cpuapp
tags: bluetooth
integration_platforms:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
sample.bluetooth.direction_finding.peripheral.aod_host_only:
harness: bluetooth
extra_args:
- OVERLAY_CONFIG="overlay-aoa.conf"
platform_allow:
- nrf5340dk/nrf5340/cpuapp
tags: bluetooth
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
34 changes: 26 additions & 8 deletions samples/bluetooth/hci_ipc/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ tests:
sample.bluetooth.hci_ipc.iso_broadcast.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth
extra_args: CONF_FILE="nrf5340_cpunet_iso_broadcast-bt_ll_sw_split.conf"
extra_args:
- CONF_FILE="nrf5340_cpunet_iso_broadcast-bt_ll_sw_split.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf5340dk/nrf5340/cpunet
- nrf5340_audio_dk/nrf5340/cpunet
Expand All @@ -26,7 +28,9 @@ tests:
sample.bluetooth.hci_ipc.iso_receive.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth
extra_args: CONF_FILE="nrf5340_cpunet_iso_receive-bt_ll_sw_split.conf"
extra_args:
- CONF_FILE="nrf5340_cpunet_iso_receive-bt_ll_sw_split.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf5340dk/nrf5340/cpunet
- nrf5340_audio_dk/nrf5340/cpunet
Expand All @@ -36,7 +40,9 @@ tests:
sample.bluetooth.hci_ipc.bis.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth
extra_args: CONF_FILE="nrf5340_cpunet_bis-bt_ll_sw_split.conf"
extra_args:
- CONF_FILE="nrf5340_cpunet_bis-bt_ll_sw_split.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf5340dk/nrf5340/cpunet
- nrf5340_audio_dk/nrf5340/cpunet
Expand All @@ -46,7 +52,9 @@ tests:
sample.bluetooth.hci_ipc.iso_central.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth
extra_args: CONF_FILE="nrf5340_cpunet_iso_central-bt_ll_sw_split.conf"
extra_args:
- CONF_FILE="nrf5340_cpunet_iso_central-bt_ll_sw_split.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf5340dk/nrf5340/cpunet
- nrf5340_audio_dk/nrf5340/cpunet
Expand All @@ -56,7 +64,9 @@ tests:
sample.bluetooth.hci_ipc.iso_peripheral.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth
extra_args: CONF_FILE="nrf5340_cpunet_iso_peripheral-bt_ll_sw_split.conf"
extra_args:
- CONF_FILE="nrf5340_cpunet_iso_peripheral-bt_ll_sw_split.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf5340dk/nrf5340/cpunet
- nrf5340_audio_dk/nrf5340/cpunet
Expand All @@ -66,7 +76,9 @@ tests:
sample.bluetooth.hci_ipc.cis.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth
extra_args: CONF_FILE="nrf5340_cpunet_cis-bt_ll_sw_split.conf"
extra_args:
- CONF_FILE="nrf5340_cpunet_cis-bt_ll_sw_split.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf5340dk/nrf5340/cpunet
- nrf5340_audio_dk/nrf5340/cpunet
Expand All @@ -76,7 +88,9 @@ tests:
sample.bluetooth.hci_ipc.iso.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth
extra_args: CONF_FILE="nrf5340_cpunet_iso-bt_ll_sw_split.conf"
extra_args:
- CONF_FILE="nrf5340_cpunet_iso-bt_ll_sw_split.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow:
- nrf5340dk/nrf5340/cpunet
- nrf5340bsim/nrf5340/cpunet
Expand All @@ -88,6 +102,7 @@ tests:
extra_args:
- CONF_FILE="nrf5340_cpunet_df-bt_ll_sw_split.conf"
- DTC_OVERLAY_FILE="nrf5340_cpunet_df-bt_ll_sw_split.overlay"
- SNIPPET="bt-ll-sw-split"
platform_allow: nrf5340dk/nrf5340/cpunet
integration_platforms:
- nrf5340dk/nrf5340/cpunet
Expand All @@ -98,13 +113,16 @@ tests:
- CONF_FILE="nrf5340_cpunet_df-bt_ll_sw_split.conf"
- DTC_OVERLAY_FILE="nrf5340_cpunet_df-bt_ll_sw_split.overlay"
- CONFIG_BT_CTLR_PHY_CODED=n
- SNIPPET="bt-ll-sw-split"
platform_allow: nrf5340dk/nrf5340/cpunet
integration_platforms:
- nrf5340dk/nrf5340/cpunet
sample.bluetooth.hci_ipc.mesh.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth
extra_args: CONF_FILE="nrf5340_cpunet_bt_mesh-bt_ll_sw_split.conf"
extra_args:
- CONF_FILE="nrf5340_cpunet_bt_mesh-bt_ll_sw_split.conf"
- SNIPPET="bt-ll-sw-split"
platform_allow: nrf5340dk/nrf5340/cpunet
integration_platforms:
- nrf5340dk/nrf5340/cpunet
1 change: 1 addition & 0 deletions samples/bluetooth/hci_vs_scan_req/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ tests:
- nrf52dk/nrf52832
extra_configs:
- CONFIG_BT_LL_SW_SPLIT=y
extra_args: SNIPPET="bt-ll-sw-split"
tags: bluetooth
4 changes: 3 additions & 1 deletion samples/bluetooth/public_broadcast_sink/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ tests:
integration_platforms:
- nrf52_bsim
- nrf52833dk/nrf52833
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
extra_args:
- OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
- SNIPPET="bt-ll-sw-split"
tags: bluetooth
4 changes: 3 additions & 1 deletion samples/bluetooth/public_broadcast_source/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ tests:
integration_platforms:
- nrf52_bsim
- nrf52833dk/nrf52833
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
extra_args:
- OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
- SNIPPET="bt-ll-sw-split"
tags: bluetooth
4 changes: 3 additions & 1 deletion samples/bluetooth/unicast_audio_client/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ tests:
- nrf52840dk/nrf52840
integration_platforms:
- nrf52dk/nrf52832
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
extra_args:
- OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
- SNIPPET="bt-ll-sw-split"
tags: bluetooth
4 changes: 3 additions & 1 deletion samples/bluetooth/unicast_audio_server/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ tests:
- nrf52840dk/nrf52840
integration_platforms:
- nrf52dk/nrf52832
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
extra_args:
- OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
- SNIPPET="bt-ll-sw-split"
tags: bluetooth
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_api.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_chmu/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_chmu.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_cis_create/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_cis_create.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_cis_terminate.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_collision/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_collision.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
6 changes: 4 additions & 2 deletions tests/bluetooth/controller/ctrl_conn_update/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ common:
tests:
bluetooth.controller.ctrl_conn_update.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"

bluetooth.controller.ctrl_conn_update.apm_test:
type: unit
extra_args: CONF_FILE=prj_apm.conf
extra_args: CONF_FILE=prj_apm.conf SNIPPET="bt-ll-sw-split"


bluetooth.controller.ctrl_conn_update.no_param_req_test:
type: unit
extra_args: CONF_FILE=prj_no_param_req.conf
extra_args: CONF_FILE=prj_no_param_req.conf SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_cte_req/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_cte_req.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ common:
tests:
bluetooth.controller.ctrl_data_length_update.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"

bluetooth.controller.ctrl_data_length_update.test_nocodedphy:
type: unit
extra_args: CONF_FILE=prj_nocoded.conf
extra_args: CONF_FILE=prj_nocoded.conf SNIPPET="bt-ll-sw-split"

bluetooth.controller.ctrl_data_length_update.test_nophy:
type: unit
extra_args: CONF_FILE=prj_nophy.conf
extra_args: CONF_FILE=prj_nophy.conf SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_encrypt/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_encrypt.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_feature_exchange.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_hci/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_hci.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_invalid/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_invalid.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_le_ping/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_le_ping.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_min_used_chans.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
3 changes: 2 additions & 1 deletion tests/bluetooth/controller/ctrl_phy_update/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ common:
tests:
bluetooth.controller.ctrl_phy_update.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
bluetooth.controller.ctrl_phy_update.test_reduced_buf:
type: unit
extra_args: CONF_FILE=prj_rx_cnt.conf
extra_args: CONF_FILE=prj_rx_cnt.conf SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_sca_update/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_sca_update.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
1 change: 1 addition & 0 deletions tests/bluetooth/controller/ctrl_terminate/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common:
tests:
bluetooth.controller.ctrl_terminate.test:
type: unit
extra_args: SNIPPET="bt-ll-sw-split"
Loading

0 comments on commit 9b7a14d

Please sign in to comment.