-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: bsim: Bluetooth: broadcast_audio_source interleaved/sequential
Test broadcast audio source sample in interleaved and sequential packing. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
- Loading branch information
Showing
5 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
samples/bluetooth/bap_broadcast_source/overlay-interleaved.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_BT_ISO_PACKING_INTERLEAVED=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_BT_ISO_PACKING_INTERLEAVED=n |
29 changes: 29 additions & 0 deletions
29
...m/bluetooth/audio_samples/bap_broadcast_sink/tests_scripts/broadcast_audio_interleaved.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2023 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Simple selfchecking test for the broadcast audio sink/source samples, | ||
# It relies on the bs_tests hooks to register a test timer callback, which after a deadline | ||
# will check how many audio packets the broadcast audio sink has received, and if over a threshold | ||
# it considers the test passed | ||
|
||
simulation_id="samples_bluetooth_bap_broadcast_source_interleaved_test" | ||
sample_long_name="samples_bluetooth_bap_broadcast_source" | ||
verbosity_level=2 | ||
EXECUTE_TIMEOUT=200 | ||
|
||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source | ||
|
||
cd ${BSIM_OUT_PATH}/bin | ||
|
||
Execute ./bs_${BOARD_TS}_${sample_long_name}_prj_conf_overlay-interleaved_conf \ | ||
-v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=1 | ||
|
||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_samples_bap_broadcast_sink_prj_conf \ | ||
-v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=1 \ | ||
-testid=bap_broadcast_sink | ||
|
||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ | ||
-D=2 -sim_length=120e6 $@ | ||
|
||
wait_for_background_jobs #Wait for all programs in background and return != 0 if any fails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters