Skip to content

Commit 0d933f4

Browse files
Thalleykartben
authored andcommitted
tests: Bluetooth: BAP: Split bap_broadcast_audio.sh
Split the file into 2 so that each test script only runs a single test. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 3f7fbb4 commit 0d933f4

File tree

2 files changed

+33
-21
lines changed

2 files changed

+33
-21
lines changed

tests/bsim/bluetooth/audio/test_scripts/bap_broadcast_audio.sh

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
# SPDX-License-Identifier: Apache-2.0
66

77
VERBOSITY_LEVEL=2
8-
EXECUTE_TIMEOUT=240
8+
EXECUTE_TIMEOUT=120
99

1010
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
1111

1212
cd ${BSIM_OUT_PATH}/bin
1313

1414
printf "\n\n======== Broadcaster test =========\n\n"
1515

16-
SIMULATION_ID="broadcaster"
16+
SIMULATION_ID="bap_broadcast_audio"
1717

1818
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
1919
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=broadcast_source \
@@ -29,22 +29,3 @@ Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \
2929
-D=2 -sim_length=60e6 $@
3030

3131
wait_for_background_jobs
32-
33-
printf "\n\n======== Broadcaster sink disconnect test =========\n\n"
34-
35-
SIMULATION_ID="broadcaster_sink_disconnect"
36-
37-
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
38-
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=broadcast_source \
39-
-RealEncryption=1 -rs=23 -D=2
40-
41-
42-
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
43-
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 \
44-
-testid=broadcast_sink_disconnect -RealEncryption=1 -rs=27 -D=2
45-
46-
# Simulation time should be larger than the WAIT_TIME in common.h
47-
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \
48-
-D=2 -sim_length=60e6 $@
49-
50-
wait_for_background_jobs
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright (c) 2021 Nordic Semiconductor ASA
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
VERBOSITY_LEVEL=2
8+
EXECUTE_TIMEOUT=120
9+
10+
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
11+
12+
cd ${BSIM_OUT_PATH}/bin
13+
14+
printf "\n\n======== Broadcaster sink disconnect test =========\n\n"
15+
16+
SIMULATION_ID="bap_broadcast_audio_sink_disconnect"
17+
18+
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
19+
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=broadcast_source \
20+
-RealEncryption=1 -rs=23 -D=2
21+
22+
23+
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
24+
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 \
25+
-testid=broadcast_sink_disconnect -RealEncryption=1 -rs=27 -D=2
26+
27+
# Simulation time should be larger than the WAIT_TIME in common.h
28+
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \
29+
-D=2 -sim_length=60e6 $@
30+
31+
wait_for_background_jobs

0 commit comments

Comments
 (0)