Skip to content

Commit dcd499b

Browse files
committed
tests: bsim: bluetooth: run host tests with twister
With added support of running bsim tests with Twister, separate building command is no longer need as tests can be build and run with single command. Signed-off-by: Artur Dobrynin <[email protected]>
1 parent ebe24d0 commit dcd499b

File tree

5 files changed

+4
-29
lines changed

5 files changed

+4
-29
lines changed

tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpunet.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ export BOARD="${BOARD:-nrf5340bsim/nrf5340/cpunet}"
1313
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
1414

1515
${ZEPHYR_BASE}/tests/bsim/bluetooth/ll/compile.sh
16-
${ZEPHYR_BASE}/tests/bsim/bluetooth/host/compile.sh
1716

1817
wait_for_background_jobs

tests/bsim/bluetooth/compile.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
1717
# the rest to save a couple of seconds.
1818
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/audio/compile.sh
1919
${ZEPHYR_BASE}/tests/bsim/bluetooth/audio_samples/compile.sh
20-
${ZEPHYR_BASE}/tests/bsim/bluetooth/host/compile.sh
2120
${ZEPHYR_BASE}/tests/bsim/bluetooth/ll/compile.sh
2221
${ZEPHYR_BASE}/tests/bsim/bluetooth/mesh/compile.sh
2322
${ZEPHYR_BASE}/tests/bsim/bluetooth/samples/compile.sh

tests/bsim/bluetooth/host/compile.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpunet.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,3 @@
22
# built in the net core)
33
# This file is used in CI to select which tests are run
44
tests/bsim/bluetooth/ll/
5-
tests/bsim/bluetooth/host/att/eatt_notif
6-
tests/bsim/bluetooth/host/misc/disable
7-
tests/bsim/bluetooth/host/misc/unregister_conn_cb
8-
tests/bsim/bluetooth/host/adv/periodic
9-
tests/bsim/bluetooth/host/adv/extended
10-
tests/bsim/bluetooth/host/adv/chain
11-
tests/bsim/bluetooth/host/l2cap/send_on_connect
12-
tests/bsim/bluetooth/host/central
13-
tests/bsim/bluetooth/host/privacy/central
14-
tests/bsim/bluetooth/host/gatt/authorization
15-
tests/bsim/bluetooth/host/gatt/general
16-
tests/bsim/bluetooth/host/gatt/caching

tests/bsim/ci.bt.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.52.xml \
1919
TESTS_FILE=tests/bsim/bluetooth/tests.nrf52bsim.txt \
2020
tests/bsim/run_parallel.sh
2121

22+
west twister -T ${ZEPHYR_BASE}/tests/bsim/bluetooth/host/ -p nrf52_bsim/native
23+
2224
# nrf5340bsim/nrf5340/cpunet set:
2325
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpunet.sh
2426

@@ -27,6 +29,8 @@ RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.bt.53_cpunet.xml \
2729
TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpunet.txt \
2830
tests/bsim/run_parallel.sh
2931

32+
west twister -T ${ZEPHYR_BASE}/tests/bsim/bluetooth/host/ -p nrf5340bsim/nrf5340/cpunet
33+
3034
# nrf5340 split stack set:
3135
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh
3236

0 commit comments

Comments
 (0)