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>
19 lines
682 B
Bash
Executable File
19 lines
682 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2023 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Path checks, etc
|
|
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
|
|
|
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"
|
|
|
|
# terminate running simulations (if any)
|
|
${BSIM_COMPONENTS_PATH}/common/stop_bsim.sh
|
|
|
|
west build -b ${BOARD} -d build_dut dut && \
|
|
cp build_dut/zephyr/zephyr.exe "${BSIM_OUT_PATH}/bin/${dut_exe}" &&
|
|
west build -b ${BOARD} -d build_tester tester && \
|
|
cp build_tester/zephyr/zephyr.exe "${BSIM_OUT_PATH}/bin/${tester_exe}"
|