ci: bsim tests: Move CI steps to separate scripts
So they can be easily run locally by users. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
c734f11abc
commit
0209fa4196
4 changed files with 75 additions and 34 deletions
35
tests/bsim/ci.bt.sh
Executable file
35
tests/bsim/ci.bt.sh
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env bash
|
||||
# Copyright 2024 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script runs the Babblesim CI BT tests.
|
||||
# It can also be run locally.
|
||||
# Note it will produce its output in ${ZEPHYR_BASE}/bsim_bt/
|
||||
|
||||
export ZEPHYR_BASE="${ZEPHYR_BASE:-${PWD}}"
|
||||
cd ${ZEPHYR_BASE}
|
||||
|
||||
set -uex
|
||||
|
||||
# nrf52_bsim set:
|
||||
nice tests/bsim/bluetooth/compile.sh
|
||||
|
||||
RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.52.xml \
|
||||
TESTS_FILE=tests/bsim/bluetooth/tests.nrf52bsim.txt \
|
||||
tests/bsim/run_parallel.sh
|
||||
|
||||
# nrf5340bsim/nrf5340/cpunet set:
|
||||
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpunet.sh
|
||||
|
||||
BOARD=nrf5340bsim/nrf5340/cpunet \
|
||||
RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.53_cpunet.xml \
|
||||
TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpunet.txt \
|
||||
tests/bsim/run_parallel.sh
|
||||
|
||||
# nrf5340 split stack set:
|
||||
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh
|
||||
|
||||
BOARD=nrf5340bsim/nrf5340/cpuapp \
|
||||
RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.53_cpuapp.xml \
|
||||
TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt \
|
||||
tests/bsim/run_parallel.sh
|
16
tests/bsim/ci.net.sh
Executable file
16
tests/bsim/ci.net.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
# Copyright 2024 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script runs the Babblesim CI networking tests.
|
||||
# It can also be run locally.
|
||||
# Note it will produce its output in ${ZEPHYR_BASE}/bsim_bt/
|
||||
|
||||
export ZEPHYR_BASE="${ZEPHYR_BASE:-${PWD}}"
|
||||
cd ${ZEPHYR_BASE}
|
||||
|
||||
set -uex
|
||||
|
||||
WORK_DIR=${ZEPHYR_BASE}/bsim_net nice tests/bsim/net/compile.sh
|
||||
RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.net.52.xml \
|
||||
SEARCH_PATH=tests/bsim/net/ tests/bsim/run_parallel.sh
|
21
tests/bsim/ci.uart.sh
Executable file
21
tests/bsim/ci.uart.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/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"
|
||||
${ZEPHYR_BASE}/scripts/twister -T tests/drivers/uart/ --force-color --inline-logs -v -M \
|
||||
-p nrf52_bsim --fixture gpio_loopback -- -uart0_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
|
Loading…
Add table
Add a link
Reference in a new issue