Browse Source
Add 4 new tests for BAP broadcast: 1) One subgroup with one stream per subgroup 2) One subgroup with two streams per subgroup 3) Two subgroups with one stream per subgroup 4) Two subgroup with two streams per subgroup To support these, the number of broadcast streams and data paths was updated to be up to 4. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>pull/83425/head
8 changed files with 149 additions and 11 deletions
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash |
||||
# |
||||
# Copyright (c) 2024 Nordic Semiconductor ASA |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
dir_path=$(dirname "$0") |
||||
|
||||
set -e # Exit on error |
||||
|
||||
# Run all bap_broadcast_audio* tests |
||||
for file in "$dir_path"/bap_broadcast_audio*.sh; do |
||||
if [ -f "$file" ]; then |
||||
echo "Running $file" |
||||
$file |
||||
fi |
||||
done |
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash |
||||
# |
||||
# Copyright (c) 2024 Nordic Semiconductor ASA |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
VERBOSITY_LEVEL=2 |
||||
EXECUTE_TIMEOUT=120 |
||||
|
||||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source |
||||
|
||||
cd ${BSIM_OUT_PATH}/bin |
||||
|
||||
SIMULATION_ID="bap_broadcast_audio_multiple_group_multiple_bis" |
||||
|
||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ |
||||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=broadcast_source \ |
||||
-RealEncryption=1 -rs=23 -D=2 -argstest subgroup_cnt 2 streams_per_subgroup_cnt 2 |
||||
|
||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ |
||||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=broadcast_sink \ |
||||
-RealEncryption=1 -rs=27 -D=2 |
||||
|
||||
# Simulation time should be larger than the WAIT_TIME in common.h |
||||
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ |
||||
-D=2 -sim_length=60e6 $@ |
||||
|
||||
wait_for_background_jobs |
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash |
||||
# |
||||
# Copyright (c) 2024 Nordic Semiconductor ASA |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
VERBOSITY_LEVEL=2 |
||||
EXECUTE_TIMEOUT=120 |
||||
|
||||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source |
||||
|
||||
cd ${BSIM_OUT_PATH}/bin |
||||
|
||||
SIMULATION_ID="bap_broadcast_audio_multiple_group_single_bis" |
||||
|
||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ |
||||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=broadcast_source \ |
||||
-RealEncryption=1 -rs=23 -D=2 -argstest subgroup_cnt 2 streams_per_subgroup_cnt 1 |
||||
|
||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ |
||||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=broadcast_sink \ |
||||
-RealEncryption=1 -rs=27 -D=2 |
||||
|
||||
# Simulation time should be larger than the WAIT_TIME in common.h |
||||
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ |
||||
-D=2 -sim_length=60e6 $@ |
||||
|
||||
wait_for_background_jobs |
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash |
||||
# |
||||
# Copyright (c) 2024 Nordic Semiconductor ASA |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
VERBOSITY_LEVEL=2 |
||||
EXECUTE_TIMEOUT=120 |
||||
|
||||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source |
||||
|
||||
cd ${BSIM_OUT_PATH}/bin |
||||
|
||||
SIMULATION_ID="bap_broadcast_audio_single_group_multiple_bis" |
||||
|
||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ |
||||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=broadcast_source \ |
||||
-RealEncryption=1 -rs=23 -D=2 -argstest subgroup_cnt 1 streams_per_subgroup_cnt 2 |
||||
|
||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ |
||||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=broadcast_sink \ |
||||
-RealEncryption=1 -rs=27 -D=2 |
||||
|
||||
# Simulation time should be larger than the WAIT_TIME in common.h |
||||
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ |
||||
-D=2 -sim_length=60e6 $@ |
||||
|
||||
wait_for_background_jobs |
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash |
||||
# |
||||
# Copyright (c) 2024 Nordic Semiconductor ASA |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
VERBOSITY_LEVEL=2 |
||||
EXECUTE_TIMEOUT=120 |
||||
|
||||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source |
||||
|
||||
cd ${BSIM_OUT_PATH}/bin |
||||
|
||||
SIMULATION_ID="bap_broadcast_audio_single_group_single_bis" |
||||
|
||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ |
||||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=broadcast_source \ |
||||
-RealEncryption=1 -rs=23 -D=2 -argstest subgroup_cnt 1 streams_per_subgroup_cnt 1 |
||||
|
||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ |
||||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=broadcast_sink \ |
||||
-RealEncryption=1 -rs=27 -D=2 |
||||
|
||||
# Simulation time should be larger than the WAIT_TIME in common.h |
||||
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ |
||||
-D=2 -sim_length=60e6 $@ |
||||
|
||||
wait_for_background_jobs |
Loading…
Reference in new issue