1#!/usr/bin/env bash
2# Copyright 2024 Nordic Semiconductor ASA
3# SPDX-License-Identifier: Apache-2.0
4
5# This script runs the Babblesim CI BT tests.
6# It can also be run locally.
7# Note it will produce its output in ${ZEPHYR_BASE}/bsim_bt/
8
9export ZEPHYR_BASE="${ZEPHYR_BASE:-${PWD}}"
10cd ${ZEPHYR_BASE}
11
12set -uex
13
14# nrf52_bsim set:
15nice tests/bsim/bluetooth/compile.sh
16
17RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.52.xml \
18TESTS_FILE=tests/bsim/bluetooth/tests.nrf52bsim.txt \
19tests/bsim/run_parallel.sh
20
21# nrf5340bsim/nrf5340/cpunet set:
22nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpunet.sh
23
24BOARD=nrf5340bsim/nrf5340/cpunet \
25RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.53_cpunet.xml \
26TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpunet.txt \
27tests/bsim/run_parallel.sh
28
29# nrf5340 split stack set:
30nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh
31
32BOARD=nrf5340bsim/nrf5340/cpuapp \
33RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.53_cpuapp.xml \
34TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt \
35tests/bsim/run_parallel.sh
36
37# nrf54l15bsim/nrf54l15/cpuapp set:
38# We provisionally disable the nrf54l15 BT tests in CI due to instability issues in the
39# controller for this platform. See https://github.com/zephyrproject-rtos/zephyr/issues/74635
40# This should be reverted once the underlaying issue is fixed
41#nice tests/bsim/bluetooth/compile.nrf54l15bsim_nrf54l15_cpuapp.sh
42
43#BOARD=nrf54l15bsim/nrf54l15/cpuapp \
44#RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.54l15_cpuapp.xml \
45#TESTS_FILE=tests/bsim/bluetooth/tests.nrf54l15bsim_nrf54l15_cpuapp.txt \
46#tests/bsim/run_parallel.sh
47