-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Bluetooth: Host: Add ext-adv test to iterate reconnections
Where advertisement, connection and disconnection is iterated over 5 times, to verify the reestablishment of extended advertisements when iterating over multiple times. Additionally, the connection unreferencing has been decoupled from the disconnect event on both sides, to demonstrate the dependency of the recycle event. Signed-off-by: Luis Ubieda <[email protected]>
- Loading branch information
1 parent
1f0346c
commit f59eb2f
Showing
3 changed files
with
123 additions
and
4 deletions.
There are no files selected for viewing
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
31 changes: 31 additions & 0 deletions
31
tests/bsim/bluetooth/host/adv/extended/tests_scripts/ext_adv_conn_x5.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,31 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2024 Croxel, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Extended advertising test: | ||
# | ||
# - Connectable X5: In addition to broadcasting advertisements, it is connectable | ||
# and restarts advertisements once disconnected. The scanner/central scans | ||
# for the packets and establishes the connection, to then disconnect | ||
# shortly-after. This is repeated over 5 times. | ||
|
||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source | ||
|
||
simulation_id="ext_adv_conn_x5" | ||
verbosity_level=2 | ||
EXECUTE_TIMEOUT=10 | ||
|
||
cd ${BSIM_OUT_PATH}/bin | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_adv_extended_prj_advertiser_conf \ | ||
-v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=0 \ | ||
-testid=ext_adv_conn_advertiser_x5 -rs=23 | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_adv_extended_prj_scanner_conf \ | ||
-v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=0 \ | ||
-testid=ext_adv_conn_scanner_x5 -rs=6 | ||
|
||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ | ||
-D=2 -sim_length=10e6 $@ | ||
|
||
wait_for_background_jobs |