Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Bluetooth: CSIP: Add no rank, size and lock char tests
Add tests for cases where the rank characteristic, the size characteristic and the lock characteristics are not set on the set members. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
- Loading branch information
Showing
5 changed files
with
238 additions
and
49 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
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,38 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# CSIP test where there is no lock characteristic on the Set Members | ||
|
||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source | ||
|
||
VERBOSITY_LEVEL=2 | ||
EXECUTE_TIMEOUT=20 | ||
|
||
cd ${BSIM_OUT_PATH}/bin | ||
|
||
SIMULATION_ID="csip_no_lock" | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=csip_set_coordinator \ | ||
-RealEncryption=1 -rs=1 -argstest no-lock | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=csip_set_member \ | ||
-RealEncryption=1 -rs=2 -argstest rank 1 not-lockable | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=2 -testid=csip_set_member \ | ||
-RealEncryption=1 -rs=3 -argstest rank 2 not-lockable | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=3 -testid=csip_set_member \ | ||
-RealEncryption=1 -rs=4 -argstest rank 3 not-lockable | ||
|
||
# Simulation time should be larger than the WAIT_TIME in common.h | ||
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ | ||
-D=4 -sim_length=60e6 $@ | ||
|
||
wait_for_background_jobs |
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,38 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# CSIP test where there is no rank and no lock characteristic on the Set Members | ||
|
||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source | ||
|
||
VERBOSITY_LEVEL=2 | ||
EXECUTE_TIMEOUT=20 | ||
|
||
cd ${BSIM_OUT_PATH}/bin | ||
|
||
SIMULATION_ID="csip_no_rank" | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=csip_set_coordinator \ | ||
-RealEncryption=1 -rs=1 -argstest no-rank no-lock | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=csip_set_member \ | ||
-RealEncryption=1 -rs=2 -argstest rank 0 not-lockable | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=2 -testid=csip_set_member \ | ||
-RealEncryption=1 -rs=3 -argstest rank 0 not-lockable | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=3 -testid=csip_set_member \ | ||
-RealEncryption=1 -rs=4 -argstest rank 0 not-lockable | ||
|
||
# Simulation time should be larger than the WAIT_TIME in common.h | ||
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ | ||
-D=4 -sim_length=60e6 $@ | ||
|
||
wait_for_background_jobs |
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,38 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# CSIP test where there is no set size characteristic on the Set Members | ||
|
||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source | ||
|
||
VERBOSITY_LEVEL=2 | ||
EXECUTE_TIMEOUT=20 | ||
|
||
cd ${BSIM_OUT_PATH}/bin | ||
|
||
SIMULATION_ID="csip_no_size" | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=csip_set_coordinator \ | ||
-RealEncryption=1 -rs=1 -argstest no-size | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=csip_set_member \ | ||
-RealEncryption=1 -rs=2 -argstest rank 1 size 0 | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=2 -testid=csip_set_member \ | ||
-RealEncryption=1 -rs=3 -argstest rank 2 size 0 | ||
|
||
Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \ | ||
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=3 -testid=csip_set_member \ | ||
-RealEncryption=1 -rs=4 -argstest rank 3s size 0 | ||
|
||
# Simulation time should be larger than the WAIT_TIME in common.h | ||
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ | ||
-D=4 -sim_length=60e6 $@ | ||
|
||
wait_for_background_jobs |