To increase coverage. Note that we call twister separatedly for this target, due to the 54l15 overlays using UARTE20 which is indexed in simulation as "2", but as the nrf52833 does not have 3 instances. So "-uart2_loopback" is not a valid option for a 52833 executable. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
28 lines
997 B
Bash
Executable file
28 lines
997 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2024 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# This script runs the Babblesim CI UART tests.
|
|
# It can also be run locally.
|
|
# Note it will produce its output in ${ZEPHYR_BASE}/bsim_out/
|
|
|
|
export ZEPHYR_BASE="${ZEPHYR_BASE:-${PWD}}"
|
|
cd ${ZEPHYR_BASE}
|
|
|
|
set -uex
|
|
|
|
echo "UART: Single device tests"
|
|
echo " nRF52833 & 5340:"
|
|
${ZEPHYR_BASE}/scripts/twister -T tests/drivers/uart/ --force-color --inline-logs -v -M \
|
|
-p nrf52_bsim -p nrf5340bsim/nrf5340/cpuapp --fixture gpio_loopback \
|
|
-- -uart0_loopback -uart1_loopback
|
|
|
|
echo " nRF54L15:"
|
|
${ZEPHYR_BASE}/scripts/twister -T tests/drivers/uart/ --force-color --inline-logs -v -M \
|
|
-p nrf54l15bsim/nrf54l15/cpuapp --fixture gpio_loopback \
|
|
-- -uart2_loopback
|
|
|
|
echo "UART: Multi device tests"
|
|
WORK_DIR=${ZEPHYR_BASE}/bsim_uart nice tests/bsim/drivers/uart/compile.sh
|
|
RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.uart.52.xml \
|
|
SEARCH_PATH=tests/bsim/drivers/uart/ tests/bsim/run_parallel.sh
|