zephyr/tests/bluetooth/bsim/compile.sh
Jonathan Rico 2a9eda226b tests: Bluetooth: restructure bsim_bt directory
This commit separates each test by layer level.

Obviously the tests will run the whole stack, but they should be separated
by which component/layer they intend on testing.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-23 14:35:05 +01:00

86 lines
3.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# Copyright 2018 Oticon A/S
# SPDX-License-Identifier: Apache-2.0
# Compile all the applications needed by the bsim tests
#set -x #uncomment this line for debugging
set -ue
: "${BSIM_OUT_PATH:?BSIM_OUT_PATH must be defined}"
: "${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="${BOARD:-nrf52_bsim}"
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
mkdir -p ${WORK_DIR}
source ${ZEPHYR_BASE}/tests/bluetooth/bsim/compile.source
app=tests/bluetooth/bsim/audio compile &
app=tests/bluetooth/bsim/host/adv/resume compile &
app=tests/bluetooth/bsim/host/adv/resume conf_file=prj_2.conf compile &
app=tests/bluetooth/bsim/host/adv/chain compile &
app=tests/bluetooth/bsim/host/adv/periodic compile &
app=tests/bluetooth/bsim/host/adv/periodic conf_file=prj_long_data.conf compile &
app=tests/bluetooth/bsim/host/att/eatt conf_file=prj_collision.conf compile &
app=tests/bluetooth/bsim/host/att/eatt conf_file=prj_multiple_conn.conf compile &
app=tests/bluetooth/bsim/host/att/eatt conf_file=prj_autoconnect.conf compile &
app=tests/bluetooth/bsim/host/att/eatt_notif conf_file=prj.conf compile &
app=tests/bluetooth/bsim/host/att/mtu_update compile &
app=tests/bluetooth/bsim/host/gatt/caching compile &
app=tests/bluetooth/bsim/host/gatt/general compile &
app=tests/bluetooth/bsim/host/gatt/notify compile &
app=tests/bluetooth/bsim/host/gatt/notify_multiple compile &
app=tests/bluetooth/bsim/host/gatt/settings compile &
app=tests/bluetooth/bsim/host/gatt/settings conf_file=prj_2.conf compile &
app=tests/bluetooth/bsim/host/gatt/write compile &
app=tests/bluetooth/bsim/host/l2cap/general compile &
app=tests/bluetooth/bsim/host/l2cap/userdata compile &
app=tests/bluetooth/bsim/host/l2cap/stress compile &
app=tests/bluetooth/bsim/host/misc/disable compile &
app=tests/bluetooth/bsim/host/misc/multiple_id compile &
app=tests/bluetooth/bsim/host/privacy/central compile &
app=tests/bluetooth/bsim/host/privacy/peripheral compile &
app=tests/bluetooth/bsim/host/security/bond_overwrite_allowed compile &
app=tests/bluetooth/bsim/host/security/bond_overwrite_denied compile &
app=tests/bluetooth/bsim/ll/advx compile &
app=tests/bluetooth/bsim/ll/conn conf_file=prj_split.conf compile &
app=tests/bluetooth/bsim/ll/conn conf_file=prj_split_privacy.conf compile &
app=tests/bluetooth/bsim/ll/conn conf_file=prj_split_low_lat.conf compile &
app=tests/bluetooth/bsim/ll/iso compile &
app=tests/bluetooth/bsim/ll/iso conf_file=prj_vs_dp.conf compile &
app=tests/bluetooth/bsim/ll/edtt/hci_test_app \
conf_file=prj_dut_llcp.conf compile &
app=tests/bluetooth/bsim/ll/edtt/hci_test_app \
conf_file=prj_tst_llcp.conf compile &
app=tests/bluetooth/bsim/ll/edtt/hci_test_app \
conf_file=prj_dut.conf compile &
app=tests/bluetooth/bsim/ll/edtt/hci_test_app \
conf_file=prj_tst.conf compile &
app=tests/bluetooth/bsim/ll/edtt/gatt_test_app \
conf_file=prj.conf compile &
app=tests/bluetooth/bsim/ll/edtt/gatt_test_app \
conf_file=prj_llcp.conf compile &
app=tests/bluetooth/bsim/mesh compile &
app=tests/bluetooth/bsim/mesh conf_overlay=overlay_low_lat.conf compile &
app=tests/bluetooth/bsim/mesh conf_overlay=overlay_pst.conf compile &
app=tests/bluetooth/bsim/mesh conf_overlay=overlay_gatt.conf compile &
wait