Skip to content

Commit 00b117f

Browse files
aescolarhenrikbrixandersen
authored andcommitted
tests/bsim/bt/host: Split build script in 6
There are quite many BT host test images being built. Today these are all built in parallel, causing a quite high load. Let's split them in their separate sub-scripts, 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 65d49cd) Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 4c45c3e commit 00b117f

File tree

6 files changed

+175
-59
lines changed

6 files changed

+175
-59
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
10+
: "${BSIM_COMPONENTS_PATH:?BSIM_COMPONENTS_PATH must be defined}"
11+
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
12+
directory}"
13+
14+
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
15+
16+
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
17+
18+
mkdir -p ${WORK_DIR}
19+
20+
source ${ZEPHYR_BASE}/tests/bsim/compile.source
21+
22+
app=tests/bsim/bluetooth/host/adv/resume compile
23+
app=tests/bsim/bluetooth/host/adv/resume conf_file=prj_2.conf compile
24+
app=tests/bsim/bluetooth/host/adv/chain compile
25+
app=tests/bsim/bluetooth/host/adv/extended conf_file=prj_advertiser.conf compile
26+
app=tests/bsim/bluetooth/host/adv/extended conf_file=prj_scanner.conf compile
27+
app=tests/bsim/bluetooth/host/adv/periodic compile
28+
app=tests/bsim/bluetooth/host/adv/periodic conf_file=prj_long_data.conf compile
29+
app=tests/bsim/bluetooth/host/adv/encrypted/css_sample_data compile
30+
app=tests/bsim/bluetooth/host/adv/encrypted/ead_sample compile
31+
32+
wait_for_background_jobs
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
10+
: "${BSIM_COMPONENTS_PATH:?BSIM_COMPONENTS_PATH must be defined}"
11+
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
12+
directory}"
13+
14+
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
15+
16+
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
17+
18+
mkdir -p ${WORK_DIR}
19+
20+
source ${ZEPHYR_BASE}/tests/bsim/compile.source
21+
22+
app=tests/bsim/bluetooth/host/att/eatt conf_file=prj_lowres.conf compile
23+
app=tests/bsim/bluetooth/host/att/eatt conf_file=prj_collision.conf compile
24+
app=tests/bsim/bluetooth/host/att/eatt conf_file=prj_multiple_conn.conf compile
25+
app=tests/bsim/bluetooth/host/att/eatt conf_file=prj_autoconnect.conf compile
26+
app=tests/bsim/bluetooth/host/att/eatt_notif conf_file=prj.conf compile
27+
app=tests/bsim/bluetooth/host/att/mtu_update compile
28+
app=tests/bsim/bluetooth/host/att/read_fill_buf/client compile
29+
app=tests/bsim/bluetooth/host/att/read_fill_buf/server compile
30+
app=tests/bsim/bluetooth/host/att/retry_on_sec_err/client compile
31+
app=tests/bsim/bluetooth/host/att/retry_on_sec_err/server compile
32+
app=tests/bsim/bluetooth/host/att/sequential/dut compile
33+
app=tests/bsim/bluetooth/host/att/sequential/tester compile
34+
app=tests/bsim/bluetooth/host/att/pipeline/dut compile
35+
app=tests/bsim/bluetooth/host/att/pipeline/tester compile
36+
app=tests/bsim/bluetooth/host/att/long_read compile
37+
app=tests/bsim/bluetooth/host/att/open_close compile
38+
39+
wait_for_background_jobs

tests/bsim/bluetooth/host/compile.sh

Lines changed: 5 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -19,59 +19,14 @@ mkdir -p ${WORK_DIR}
1919

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

22-
app=tests/bsim/bluetooth/host/adv/resume compile
23-
app=tests/bsim/bluetooth/host/adv/resume conf_file=prj_2.conf compile
24-
app=tests/bsim/bluetooth/host/adv/chain compile
25-
app=tests/bsim/bluetooth/host/adv/extended conf_file=prj_advertiser.conf compile
26-
app=tests/bsim/bluetooth/host/adv/extended conf_file=prj_scanner.conf compile
27-
app=tests/bsim/bluetooth/host/adv/periodic compile
28-
app=tests/bsim/bluetooth/host/adv/periodic conf_file=prj_long_data.conf compile
29-
app=tests/bsim/bluetooth/host/adv/encrypted/css_sample_data compile
30-
app=tests/bsim/bluetooth/host/adv/encrypted/ead_sample compile
31-
32-
app=tests/bsim/bluetooth/host/att/eatt conf_file=prj_lowres.conf compile
33-
app=tests/bsim/bluetooth/host/att/eatt conf_file=prj_collision.conf compile
34-
app=tests/bsim/bluetooth/host/att/eatt conf_file=prj_multiple_conn.conf compile
35-
app=tests/bsim/bluetooth/host/att/eatt conf_file=prj_autoconnect.conf compile
36-
app=tests/bsim/bluetooth/host/att/eatt_notif conf_file=prj.conf compile
37-
app=tests/bsim/bluetooth/host/att/mtu_update compile
38-
app=tests/bsim/bluetooth/host/att/read_fill_buf/client compile
39-
app=tests/bsim/bluetooth/host/att/read_fill_buf/server compile
40-
app=tests/bsim/bluetooth/host/att/retry_on_sec_err/client compile
41-
app=tests/bsim/bluetooth/host/att/retry_on_sec_err/server compile
42-
app=tests/bsim/bluetooth/host/att/sequential/dut compile
43-
app=tests/bsim/bluetooth/host/att/sequential/tester compile
44-
app=tests/bsim/bluetooth/host/att/pipeline/dut compile
45-
app=tests/bsim/bluetooth/host/att/pipeline/tester compile
46-
app=tests/bsim/bluetooth/host/att/long_read compile
47-
app=tests/bsim/bluetooth/host/att/open_close compile
48-
49-
app=tests/bsim/bluetooth/host/gatt/authorization compile
50-
app=tests/bsim/bluetooth/host/gatt/caching compile
51-
app=tests/bsim/bluetooth/host/gatt/general compile
52-
app=tests/bsim/bluetooth/host/gatt/notify compile
53-
app=tests/bsim/bluetooth/host/gatt/notify_multiple compile
54-
app=tests/bsim/bluetooth/host/gatt/settings compile
55-
app=tests/bsim/bluetooth/host/gatt/settings conf_file=prj_2.conf compile
56-
app=tests/bsim/bluetooth/host/gatt/ccc_store compile
57-
app=tests/bsim/bluetooth/host/gatt/ccc_store conf_file=prj_2.conf compile
58-
app=tests/bsim/bluetooth/host/gatt/sc_indicate compile
22+
${ZEPHYR_BASE}/tests/bsim/bluetooth/host/adv/compile.sh
23+
${ZEPHYR_BASE}/tests/bsim/bluetooth/host/att/compile.sh
24+
${ZEPHYR_BASE}/tests/bsim/bluetooth/host/gatt/compile.sh
25+
${ZEPHYR_BASE}/tests/bsim/bluetooth/host/l2cap/compile.sh
26+
${ZEPHYR_BASE}/tests/bsim/bluetooth/host/security/compile.sh
5927

6028
app=tests/bsim/bluetooth/host/iso/cis compile
6129

62-
app=tests/bsim/bluetooth/host/l2cap/general compile
63-
app=tests/bsim/bluetooth/host/l2cap/userdata compile
64-
app=tests/bsim/bluetooth/host/l2cap/stress compile
65-
app=tests/bsim/bluetooth/host/l2cap/split/dut compile
66-
app=tests/bsim/bluetooth/host/l2cap/split/tester compile
67-
app=tests/bsim/bluetooth/host/l2cap/credits compile
68-
app=tests/bsim/bluetooth/host/l2cap/credits conf_file=prj_ecred.conf compile
69-
app=tests/bsim/bluetooth/host/l2cap/credits_seg_recv compile
70-
app=tests/bsim/bluetooth/host/l2cap/credits_seg_recv conf_file=prj_ecred.conf compile
71-
app=tests/bsim/bluetooth/host/l2cap/frags compile
72-
app=tests/bsim/bluetooth/host/l2cap/send_on_connect compile
73-
app=tests/bsim/bluetooth/host/l2cap/send_on_connect conf_file=prj_ecred.conf compile
74-
7530
app=tests/bsim/bluetooth/host/misc/disable compile
7631
app=tests/bsim/bluetooth/host/misc/disconnect/dut compile
7732
app=tests/bsim/bluetooth/host/misc/disconnect/tester compile
@@ -85,15 +40,6 @@ app=tests/bsim/bluetooth/host/privacy/peripheral conf_file=prj_rpa_sharing.conf
8540
app=tests/bsim/bluetooth/host/privacy/device compile
8641
app=tests/bsim/bluetooth/host/privacy/legacy compile
8742

88-
app=tests/bsim/bluetooth/host/security/bond_overwrite_allowed compile
89-
app=tests/bsim/bluetooth/host/security/bond_overwrite_denied compile
90-
app=tests/bsim/bluetooth/host/security/bond_per_connection compile
91-
app=tests/bsim/bluetooth/host/security/ccc_update compile
92-
app=tests/bsim/bluetooth/host/security/ccc_update conf_file=prj_2.conf compile
93-
app=tests/bsim/bluetooth/host/security/id_addr_update/central compile
94-
app=tests/bsim/bluetooth/host/security/id_addr_update/peripheral compile
95-
app=tests/bsim/bluetooth/host/security/security_changed_callback compile
96-
9743
app=tests/bsim/bluetooth/host/id/settings compile
9844

9945
wait_for_background_jobs
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+
10+
: "${BSIM_COMPONENTS_PATH:?BSIM_COMPONENTS_PATH must be defined}"
11+
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
12+
directory}"
13+
14+
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
15+
16+
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
17+
18+
mkdir -p ${WORK_DIR}
19+
20+
source ${ZEPHYR_BASE}/tests/bsim/compile.source
21+
22+
app=tests/bsim/bluetooth/host/gatt/authorization compile
23+
app=tests/bsim/bluetooth/host/gatt/caching compile
24+
app=tests/bsim/bluetooth/host/gatt/general compile
25+
app=tests/bsim/bluetooth/host/gatt/notify compile
26+
app=tests/bsim/bluetooth/host/gatt/notify_multiple compile
27+
app=tests/bsim/bluetooth/host/gatt/settings compile
28+
app=tests/bsim/bluetooth/host/gatt/settings conf_file=prj_2.conf compile
29+
app=tests/bsim/bluetooth/host/gatt/ccc_store compile
30+
app=tests/bsim/bluetooth/host/gatt/ccc_store conf_file=prj_2.conf compile
31+
app=tests/bsim/bluetooth/host/gatt/sc_indicate compile
32+
33+
wait_for_background_jobs
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
10+
: "${BSIM_COMPONENTS_PATH:?BSIM_COMPONENTS_PATH must be defined}"
11+
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
12+
directory}"
13+
14+
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
15+
16+
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
17+
18+
mkdir -p ${WORK_DIR}
19+
20+
source ${ZEPHYR_BASE}/tests/bsim/compile.source
21+
22+
app=tests/bsim/bluetooth/host/l2cap/general compile
23+
app=tests/bsim/bluetooth/host/l2cap/userdata compile
24+
app=tests/bsim/bluetooth/host/l2cap/stress compile
25+
app=tests/bsim/bluetooth/host/l2cap/split/dut compile
26+
app=tests/bsim/bluetooth/host/l2cap/split/tester compile
27+
app=tests/bsim/bluetooth/host/l2cap/credits compile
28+
app=tests/bsim/bluetooth/host/l2cap/credits conf_file=prj_ecred.conf compile
29+
app=tests/bsim/bluetooth/host/l2cap/credits_seg_recv compile
30+
app=tests/bsim/bluetooth/host/l2cap/credits_seg_recv conf_file=prj_ecred.conf compile
31+
app=tests/bsim/bluetooth/host/l2cap/frags compile
32+
app=tests/bsim/bluetooth/host/l2cap/send_on_connect compile
33+
app=tests/bsim/bluetooth/host/l2cap/send_on_connect conf_file=prj_ecred.conf compile
34+
35+
wait_for_background_jobs
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
10+
: "${BSIM_COMPONENTS_PATH:?BSIM_COMPONENTS_PATH must be defined}"
11+
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
12+
directory}"
13+
14+
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
15+
16+
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
17+
18+
mkdir -p ${WORK_DIR}
19+
20+
source ${ZEPHYR_BASE}/tests/bsim/compile.source
21+
22+
app=tests/bsim/bluetooth/host/security/bond_overwrite_allowed compile
23+
app=tests/bsim/bluetooth/host/security/bond_overwrite_denied compile
24+
app=tests/bsim/bluetooth/host/security/bond_per_connection compile
25+
app=tests/bsim/bluetooth/host/security/ccc_update compile
26+
app=tests/bsim/bluetooth/host/security/ccc_update conf_file=prj_2.conf compile
27+
app=tests/bsim/bluetooth/host/security/id_addr_update/central compile
28+
app=tests/bsim/bluetooth/host/security/id_addr_update/peripheral compile
29+
app=tests/bsim/bluetooth/host/security/security_changed_callback compile
30+
31+
wait_for_background_jobs

0 commit comments

Comments
 (0)