Add a basic connection test between two devices, in which the controllers are in separate nrf52_bsim devices connected over UART to the devices running the host+app. The controllers are running the HCI UART async sample. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
25 lines
725 B
Bash
Executable file
25 lines
725 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2024 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
|
|
: "${BSIM_COMPONENTS_PATH:?BSIM_COMPONENTS_PATH must be defined}"
|
|
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
|
|
directory}"
|
|
|
|
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
|
|
|
|
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
|
|
|
|
mkdir -p ${WORK_DIR}
|
|
|
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
|
|
|
app=tests/bsim/bluetooth/ll/conn conf_file=prj_split_uart.conf compile
|
|
app=samples/bluetooth/hci_uart compile
|
|
app=samples/bluetooth/hci_uart_async compile
|
|
|
|
wait_for_background_jobs
|