Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth testing bsim: Add BT split stack tests support and some tests in CI #64450

Merged
merged 7 commits into from
Oct 31, 2023

Conversation

aescolar
Copy link
Member

@aescolar aescolar commented Oct 26, 2023

  • Add support for BT split stack tests in the bsim bt test scripts. That is, now we have the option to build using sysbuild
  • Minor improvement to the bsim bt tests run_parallel script to allow providing a file with search paths for tests
  • For 2 tests, add sysbuild build files to be able to do a BT stack build for the nrf5340bsim with the controller in the netcore and the app and host in the application core.
  • For the bsim CI workflow, run also the selected BT split stack tests (on an nrf5340bsim). Also move the list of which BT tests are build and run for each type to tests/bsim/bluetooth/tests.* .

Note: Adding support for the split builds with sysbuild does not affect the ability to build without sysbuild, either for the nrf52bsim or other targets. It remains possible to use the compile and run_parallel scripts as before with the nr52bsim or out of tree boards.

@aescolar aescolar force-pushed the bsim_split_test branch 2 times, most recently from a803450 to 5496579 Compare October 27, 2023 09:13
@aescolar aescolar changed the title Bsim split test Bluetooth testing: Add bsim split stack tests support and some tests in CI Oct 27, 2023
@aescolar aescolar marked this pull request as ready for review October 27, 2023 11:24
Add support for sysbuild builds, which can be selected
by settings the variable sysbuild.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
Add sysbuild build files, which allows building this test
both for the targets we could already before
(nrf52_bsim & nrf5340bsim_nrf5340_cpunet)
and also adds support for the a split build with the
nrf5340bsim_nrf5340_cpuapp.

Note that when doing a split build the controller is
taken from the hci_rpmsg BT sample, and therefore the
controller configuration in this folder is not used.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
Add sysbuild build files, which allows building this test
both for the targets we could already before
(nrf52_bsim & nrf5340bsim_nrf5340_cpunet)
and also adds support for the a split build with the
nrf5340bsim_nrf5340_cpuapp.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
Note just those called exactly compile.sh

Signed-off-by: Alberto Escolar Piedras <[email protected]>
With TESTS_FILE the user could provide a file with a list of
tests to run.
Now we also support that file containing a mix of
tests and paths in which to search for tests.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
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]>
The test was printing one line for each packet it was sending
by default. That creates a huge log and slows things down.
Instead, let's only print those with verbosity set at 4 or higher.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
@aescolar aescolar changed the title Bluetooth testing: Add bsim split stack tests support and some tests in CI Bluetooth testing bsim: Add BT split stack tests support and some tests in CI Oct 31, 2023
@MaureenHelm MaureenHelm merged commit 482416d into zephyrproject-rtos:main Oct 31, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants