zephyr/tests/bsim/bluetooth/host/l2cap/split/scripts/l2cap_split.sh
Jonathan Rico bb9f7b3293 tests: Bluetooth: add l2cap MPS test
This test verifies the l2cap MPS workaround: when the other
side (non-zephyr host) sends PDUs that are < MPS.

The DUT is a host, while the Tester is a thin layer over the controller,
allowing fine control over l2cap packet contents.

Note that this test fails as-is. It is fixed by the next commits in the PR.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-04-26 13:53:08 +02:00

27 lines
827 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
BOARD="${BOARD:-nrf52_bsim}"
dut_exe="bs_${BOARD}_tests_bsim_bluetooth_host_l2cap_split_dut_prj_conf"
tester_exe="bs_${BOARD}_tests_bsim_bluetooth_host_l2cap_split_tester_prj_conf"
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
test_name="l2cap_split"
simulation_id="${test_name}"
verbosity_level=2
EXECUTE_TIMEOUT=30
sim_length_us=30e6
cd ${BSIM_OUT_PATH}/bin
Execute ./bs_2G4_phy_v1 \
-v=${verbosity_level} -s="${simulation_id}" -D=2 -sim_length=${sim_length_us} $@
Execute "./$dut_exe" \
-v=${verbosity_level} -s="${simulation_id}" -d=0 -testid=test_0 -RealEncryption=1
Execute "./$tester_exe" \
-v=${verbosity_level} -s="${simulation_id}" -d=1 -testid=test_0 -RealEncryption=1
wait_for_background_jobs