Skip to content

Commit baec80f

Browse files
aescolarcarlescufi
authored andcommitted
CI bsim workflow: Also run controller tests on nrf5340bsim_nrf5340_cpunet
Run all bsim bluetooth controller tests also on a nrf5340bsim_nrf5340_cpunet, as the controller runs in a quite different mode. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 4b17907 commit baec80f

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/bsim-tests.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ jobs:
4040
BSIM_OUT_PATH: /opt/bsim/
4141
BSIM_COMPONENTS_PATH: /opt/bsim/components
4242
EDTT_PATH: ../tools/edtt
43-
bsim_bluetooth_test_results_file: ./bsim_bluetooth/bsim_results.xml
44-
bsim_networking_test_results_file: ./bsim_net/bsim_results.xml
43+
bsim_bt_52_test_results_file: ./bsim_bt/52_bsim_results.xml
44+
bsim_bt_53_test_results_file: ./bsim_bt/53_bsim_results.xml
45+
bsim_net_52_test_results_file: ./bsim_net/52_bsim_results.xml
4546
steps:
4647
- name: Apply container owner mismatch workaround
4748
run: |
@@ -133,16 +134,22 @@ jobs:
133134
if: steps.check-bluetooth-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
134135
run: |
135136
export ZEPHYR_BASE=${PWD}
136-
WORK_DIR=${ZEPHYR_BASE}/bsim_bluetooth nice tests/bsim/bluetooth/compile.sh
137-
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bluetooth_test_results_file} \
137+
WORK_DIR=${ZEPHYR_BASE}/bsim_bt nice tests/bsim/bluetooth/compile.sh
138+
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_52_test_results_file} \
138139
SEARCH_PATH=tests/bsim/bluetooth/ tests/bsim/run_parallel.sh
140+
# Run the BT controller tests also for the nrf5340
141+
BOARD=nrf5340bsim_nrf5340_cpunet \
142+
WORK_DIR=${ZEPHYR_BASE}/bsim_bt nice tests/bsim/bluetooth/ll/compile.sh
143+
BOARD=nrf5340bsim_nrf5340_cpunet \
144+
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_53_test_results_file} \
145+
SEARCH_PATH=tests/bsim/bluetooth/ll/ tests/bsim/run_parallel.sh
139146
140147
- name: Run Networking Tests with BSIM
141148
if: steps.check-networking-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
142149
run: |
143150
export ZEPHYR_BASE=${PWD}
144151
WORK_DIR=${ZEPHYR_BASE}/bsim_net nice tests/bsim/net/compile.sh
145-
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_networking_test_results_file} \
152+
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_net_52_test_results_file} \
146153
SEARCH_PATH=tests/bsim/net/ tests/bsim/run_parallel.sh
147154
148155
- name: Upload Test Results
@@ -151,8 +158,9 @@ jobs:
151158
with:
152159
name: bsim-test-results
153160
path: |
154-
./bsim_bluetooth/bsim_results.xml
155-
./bsim_net/bsim_results.xml
161+
./bsim_bt/52_bsim_results.xml
162+
./bsim_bt/53_bsim_results.xml
163+
./bsim_net/52_bsim_results.xml
156164
${{ github.event_path }}
157165
if-no-files-found: warn
158166

0 commit comments

Comments
 (0)