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
17BOARD=nrf52_bsim/native \
18RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.52.xml \
19TESTS_FILE=tests/bsim/bluetooth/tests.nrf52bsim.txt \
20tests/bsim/run_parallel.sh
21
22# nrf5340bsim/nrf5340/cpunet set:
23nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpunet.sh
24
25BOARD=nrf5340bsim/nrf5340/cpunet \
26RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.53_cpunet.xml \
27TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpunet.txt \
28tests/bsim/run_parallel.sh
29
30# nrf5340 split stack set:
31nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh
32
33BOARD=nrf5340bsim/nrf5340/cpuapp \
34RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.53_cpuapp.xml \
35TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt \
36tests/bsim/run_parallel.sh
37
38# nrf54l15bsim/nrf54l15/cpuapp set:
39nice tests/bsim/bluetooth/compile.nrf54l15bsim_nrf54l15_cpuapp.sh
40
41BOARD=nrf54l15bsim/nrf54l15/cpuapp \
42RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.54l15_cpuapp.xml \
43TESTS_FILE=tests/bsim/bluetooth/tests.nrf54l15bsim_nrf54l15_cpuapp.txt \
44tests/bsim/run_parallel.sh
45