Add support for running the audio BSIM tests on the nrf5340bsim board. This expands the tests we run in CI. To support all tests with the hci_ipc sample for the netcore, it is updated to support a bit more while still fitting on the netcore on the nRF5340 series. The behavior of advertisement seems to differ a little bit, which required the bap_unicast_server_test.c to update how it restarts advertisements. Two broadcast tests that are passing on the nRF52 BSIM is also failing due an assert. This should be investigated at a later time. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
22 lines
707 B
Bash
Executable file
22 lines
707 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2023 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Compile all the applications needed by the bsim tests in these subfolders
|
|
|
|
#set -x #uncomment this line for debugging
|
|
set -ue
|
|
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root directory}"
|
|
|
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
|
|
|
if [ "${BOARD_TS}" == "nrf5340bsim_nrf5340_cpuapp" ]; then
|
|
app=tests/bsim/bluetooth/audio exe_name=bs_${BOARD_TS}_${app}_prj_conf \
|
|
sysbuild=1 compile
|
|
else
|
|
app=tests/bsim/bluetooth/audio conf_overlay=overlay-bt_ll_sw_split.conf \
|
|
exe_name=bs_${BOARD_TS}_${app}_prj_conf \
|
|
sysbuild=1 compile
|
|
fi
|
|
|
|
wait_for_background_jobs
|