Skip to content

Commit 313a062

Browse files
aescolarhenrikbrixandersen
authored andcommitted
tests bsim/bt/ll: Split build script in 2
The CIS tests are building quite many apps on their own. Let's split them in their separate sub-script, so we don't parallelize too many builds, and users have more granularity if they only want to build a subset. Signed-off-by: Alberto Escolar Piedras <[email protected]> (cherry picked from commit 940d53e) Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 00b117f commit 313a062

File tree

2 files changed

+35
-12
lines changed

2 files changed

+35
-12
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2023 Nordic Semiconductor ASA
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# Compile all the applications needed by the bsim tests in these subfolders
6+
7+
#set -x #uncomment this line for debugging
8+
set -ue
9+
: "${BSIM_COMPONENTS_PATH:?BSIM_COMPONENTS_PATH must be defined}"
10+
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
11+
directory}"
12+
13+
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
14+
15+
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
16+
17+
mkdir -p ${WORK_DIR}
18+
19+
source ${ZEPHYR_BASE}/tests/bsim/compile.source
20+
21+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay.conf compile
22+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first.conf compile
23+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-legacy_adv.conf compile
24+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-legacy_adv_acl_first.conf compile
25+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_group.conf compile
26+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_group_acl_first.conf compile
27+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-peripheral_cis.conf compile
28+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_per_skip_2_se.conf compile
29+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_per_skip_4_se.conf compile
30+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_cen_skip_2_se.conf compile
31+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_cen_skip_4_se.conf compile
32+
33+
wait_for_background_jobs

tests/bsim/bluetooth/ll/compile.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ mkdir -p ${WORK_DIR}
1818

1919
source ${ZEPHYR_BASE}/tests/bsim/compile.source
2020

21+
${ZEPHYR_BASE}/tests/bsim/bluetooth/ll/cis/compile.sh
22+
2123
app=tests/bsim/bluetooth/ll/advx compile
2224
app=tests/bsim/bluetooth/ll/advx \
2325
conf_overlay=overlay-ticker_expire_info.conf compile
@@ -32,18 +34,6 @@ app=tests/bsim/bluetooth/ll/bis \
3234
conf_overlay=overlay-ticker_expire_info.conf compile
3335
app=tests/bsim/bluetooth/ll/bis conf_file=prj_vs_dp.conf compile
3436

35-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay.conf compile
36-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first.conf compile
37-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-legacy_adv.conf compile
38-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-legacy_adv_acl_first.conf compile
39-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_group.conf compile
40-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_group_acl_first.conf compile
41-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-peripheral_cis.conf compile
42-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_per_skip_2_se.conf compile
43-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_per_skip_4_se.conf compile
44-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_cen_skip_2_se.conf compile
45-
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_cen_skip_4_se.conf compile
46-
4737
app=tests/bsim/bluetooth/ll/edtt/hci_test_app \
4838
conf_file=prj_dut_llcp.conf compile
4939
app=tests/bsim/bluetooth/ll/edtt/hci_test_app \

0 commit comments

Comments
 (0)