File tree Expand file tree Collapse file tree 5 files changed +43
-7
lines changed
samples/bluetooth/bap_broadcast_source
tests/bsim/bluetooth/audio_samples/bap_broadcast_sink Expand file tree Collapse file tree 5 files changed +43
-7
lines changed Original file line number Diff line number Diff line change
1
+ CONFIG_ISO_PACKING_INTERLEAVED=y
Original file line number Diff line number Diff line change
1
+ CONFIG_ISO_PACKING_INTERLEAVED=n
Original file line number Diff line number Diff line change @@ -10,13 +10,20 @@ set -ue
10
10
source ${ZEPHYR_BASE} /tests/bsim/compile.source
11
11
12
12
if [ " ${BOARD_TS} " == " nrf5340bsim_nrf5340_cpuapp" ]; then
13
- app=samples/bluetooth/bap_broadcast_source sysbuild=1 compile
13
+ app=samples/bluetooth/bap_broadcast_source conf_overlay=overlay-sequential.conf \
14
+ sysbuild=1 compile
15
+ app=samples/bluetooth/bap_broadcast_source conf_overlay=overlay-interleaved.conf \
16
+ sysbuild=1 compile
14
17
app=tests/bsim/bluetooth/audio_samples/bap_broadcast_sink sysbuild=1 \
15
18
conf_file=${ZEPHYR_BASE} /samples/bluetooth/bap_broadcast_sink/prj.conf \
16
19
exe_name=bs_${BOARD_TS} _${app} _prj_conf sysbuild=1 compile
17
20
else
18
- app=samples/bluetooth/bap_broadcast_source conf_overlay=overlay-bt_ll_sw_split.conf \
19
- exe_name=bs_${BOARD_TS} _${app} _prj_conf sysbuild=1 compile
21
+ app=samples/bluetooth/bap_broadcast_source \
22
+ conf_overlay=' overlay-bt_ll_sw_split.conf;overlay-sequential.conf' \
23
+ exe_name=bs_${BOARD_TS} _${app} _prj_conf_overlay-sequential_conf sysbuild=1 compile
24
+ app=samples/bluetooth/bap_broadcast_source \
25
+ conf_overlay=' overlay-bt_ll_sw_split.conf;overlay-interleaved.conf' \
26
+ exe_name=bs_${BOARD_TS} _${app} _prj_conf_overlay-interleaved_conf sysbuild=1 compile
20
27
app=tests/bsim/bluetooth/audio_samples/bap_broadcast_sink \
21
28
conf_file=${ZEPHYR_BASE} /samples/bluetooth/bap_broadcast_sink/prj.conf \
22
29
conf_overlay=${ZEPHYR_BASE} /samples/bluetooth/bap_broadcast_sink/overlay-bt_ll_sw_split.conf \
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright 2023 Nordic Semiconductor ASA
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ # Simple selfchecking test for the broadcast audio sink/source samples,
6
+ # It relies on the bs_tests hooks to register a test timer callback, which after a deadline
7
+ # will check how many audio packets the broadcast audio sink has received, and if over a threshold
8
+ # it considers the test passed
9
+
10
+ simulation_id=" samples_bluetooth_bap_broadcast_source_interleaved_test"
11
+ verbosity_level=2
12
+ EXECUTE_TIMEOUT=200
13
+
14
+ source ${ZEPHYR_BASE} /tests/bsim/sh_common.source
15
+
16
+ cd ${BSIM_OUT_PATH} /bin
17
+
18
+ Execute ./bs_${BOARD_TS} _samples_bluetooth_bap_broadcast_source_prj_conf_overlay-interleaved_conf \
19
+ -v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=1
20
+
21
+ Execute ./bs_${BOARD_TS} _tests_bsim_bluetooth_audio_samples_bap_broadcast_sink_prj_conf \
22
+ -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=1 \
23
+ -testid=bap_broadcast_sink
24
+
25
+ Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
26
+ -D=2 -sim_length=120e6 $@
27
+
28
+ wait_for_background_jobs # Wait for all programs in background and return != 0 if any fails
Original file line number Diff line number Diff line change 7
7
# will check how many audio packets the broadcast audio sink has received, and if over a threshold
8
8
# it considers the test passed
9
9
10
- simulation_id=" broadcast_audio_samples_test "
10
+ simulation_id=" samples_bluetooth_bap_broadcast_source_sequential_test "
11
11
verbosity_level=2
12
+ EXECUTE_TIMEOUT=200
12
13
13
14
source ${ZEPHYR_BASE} /tests/bsim/sh_common.source
14
15
15
- EXECUTE_TIMEOUT=200
16
-
17
16
cd ${BSIM_OUT_PATH} /bin
18
17
19
- Execute ./bs_${BOARD_TS} _samples_bluetooth_bap_broadcast_source_prj_conf \
18
+ Execute ./bs_${BOARD_TS} _samples_bluetooth_bap_broadcast_source_prj_conf_overlay-sequential_conf \
20
19
-v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=1
21
20
22
21
Execute ./bs_${BOARD_TS} _tests_bsim_bluetooth_audio_samples_bap_broadcast_sink_prj_conf \
You can’t perform that action at this time.
0 commit comments