-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI bsim workflow: Also run some split BT stack tests
Also run some split BT stack tests on the nrf5340 platform to test this configuration. Move the selection of which BT tests are built and run in each platform to files in the tests/bsim/ folder. Signed-off-by: Alberto Escolar Piedras <[email protected]>
- Loading branch information
Showing
6 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2018 Oticon A/S | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Compile all bluetooth applications needed for the split stack tests | ||
|
||
#set -x #uncomment this line for debugging | ||
set -ue | ||
: "${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_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}" | ||
BOARD="${BOARD:-nrf5340bsim_nrf5340_cpuapp}" | ||
|
||
mkdir -p ${WORK_DIR} | ||
|
||
source ${ZEPHYR_BASE}/tests/bsim/compile.source | ||
|
||
app=tests/bsim/bluetooth/ll/conn conf_file=prj_split_privacy.conf sysbuild=1 compile | ||
app=tests/bsim/bluetooth/ll/bis sysbuild=1 compile | ||
|
||
wait_for_background_jobs |
23 changes: 23 additions & 0 deletions
23
tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpunet.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2018 Oticon A/S | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Compile all the applications needed by the Bluetooth bsim tests on the nrf5340_cpunet | ||
|
||
#set -x #uncomment this line for debugging | ||
set -ue | ||
: "${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_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}" | ||
|
||
mkdir -p ${WORK_DIR} | ||
|
||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source | ||
|
||
${ZEPHYR_BASE}/tests/bsim/bluetooth/ll/compile.sh | ||
|
||
wait_for_background_jobs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Search paths(s) for tests which will be run in the nrf52bsim | ||
# This file is used in CI to select which tests are run | ||
tests/bsim/bluetooth/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Search paths(s) for tests which will be run in the nrf5340 split stack configuration | ||
# This file is used in CI to select which tests are run | ||
tests/bsim/bluetooth/ll/conn/tests_scripts/basic_conn_encrypted_split_privacy.sh | ||
tests/bsim/bluetooth/ll/bis/tests_scripts/broadcast_iso.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Search paths(s) for tests which will be run in the nrf5340 net core (both app, host and controller | ||
# built in the net core) | ||
# This file is used in CI to select which tests are run | ||
tests/bsim/bluetooth/ll/ |