You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "LingaoM (via GitHub)" <gi...@apache.org> on 2026/10/22 04:05:48 UTC
[PR] testing/bluetooth: Add BSWorld integration tests and CI [nuttx-apps]
LingaoM opened a new pull request, #3896:
URL: https://github.com/apache/nuttx-apps/pull/3896
## Summary
Build-only checks miss runtime failures in Host initialization, timer delivery and Controller capability handling, as demonstrated by NuttX PR #20879. As AI-assisted code generation becomes more common, stricter code review, static checks and runtime regression testing are needed.
Add tests for BTSak advertising/scanning and NimBLE discovery, connection, GATT discovery and subscription against Python BSControllers through BabbleSim. Reuse the stock bt, blecent and bleprph commands, with one firmware image per Host stack and roles selected through NSH.
Provide configuration fragments, separate preparation/build scripts and local test instructions. Add a native Linux workflow that pins BSWorld, rebuilds the current NuttX/apps sources, runs both tests with two workers and uploads build logs, JUnit results, device logs and HCI/radio captures. Cache only simulation dependencies and support companion PR dependencies.
## Testing:
Host: Ubuntu 22.04 x86_64, GCC 14.3.0, Python 3.12.3
Board/configs: sim:bthcisock and sim:nimble with SIM_BSIM_TIME=y
NuttX includes the fixes in apache/nuttx#20879.
Both firmware builds and both integration tests passed. The workflow's
build and pytest steps were also executed locally. HCI snoops, Ellisys
traces and firmware configurations matched the previous validated run.
ShellCheck, actionlint, Black, isort, Flake8, YAML validation and NuttX
checkpatch passed. The GitHub-hosted workflow has not been run yet.
Depends-On: https://github.com/apache/nuttx/pull/20879
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] testing/bluetooth: Add BSWorld integration tests and CI [nuttx-apps]
Posted by "LingaoM (via GitHub)" <gi...@apache.org>.
LingaoM commented on code in PR #3896:
URL: https://github.com/apache/nuttx-apps/pull/3896#discussion_r4350458301
##########
testing/bluetooth/bsworld/test_bluetooth.py:
##########
@@ -0,0 +1,98 @@
+# SPDX-License-Identifier: Apache-2.0
Review Comment:
This is part of the bsworld framework and must adhere to bsworld's rules; however, the NuttX test framework clearly does not support Bluetooth.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] testing/bluetooth: Add BSWorld integration tests and CI [nuttx-apps]
Posted by "LingaoM (via GitHub)" <gi...@apache.org>.
LingaoM commented on code in PR #3896:
URL: https://github.com/apache/nuttx-apps/pull/3896#discussion_r4355600979
##########
testing/bluetooth/bsworld/test_bluetooth.py:
##########
@@ -0,0 +1,98 @@
+# SPDX-License-Identifier: Apache-2.0
Review Comment:
@raiden00pl Thanks for the suggestion. These tests reuse BSWorld’s existing pytest support, which manages the virtual Controllers, shared radio simulation, and discrete-time scheduling.
Integrating with NTFC would require additional work that I’m unable to take on in this PR. My goal here is to add hardware-free Bluetooth integration coverage using the existing infrastructure.
NTFC integration could be explored in a follow-up PR. For this PR, I’d like to focus on closing the gap in NuttX’s Bluetooth test coverage using BSWorld’s existing pytest support, so the community can start benefiting from hardware-free Bluetooth integration tests sooner.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] testing/bluetooth: Add BSWorld integration tests and CI [nuttx-apps]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis merged PR #3896:
URL: https://github.com/apache/nuttx-apps/pull/3896
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] testing/bluetooth: Add BSWorld integration tests and CI [nuttx-apps]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3896:
URL: https://github.com/apache/nuttx-apps/pull/3896#issuecomment-6356575336
<!-- nuttx-depends-on-bot run-39720447921 -->
### 🔗 Cross-repo PR dependencies
The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):
- https://github.com/apache/nuttx/pull/20879 @ 04a6d97162
CI run: https://github.com/apache/nuttx-apps/actions/runs/39720447921
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] testing/bluetooth: Add BSWorld integration tests and CI [nuttx-apps]
Posted by "raiden00pl (via GitHub)" <gi...@apache.org>.
raiden00pl commented on code in PR #3896:
URL: https://github.com/apache/nuttx-apps/pull/3896#discussion_r4350404763
##########
testing/bluetooth/bsworld/test_bluetooth.py:
##########
@@ -0,0 +1,98 @@
+# SPDX-License-Identifier: Apache-2.0
Review Comment:
why not use NTFC for this?
https://github.com/apache/nuttx-ntfc
https://github.com/apache/nuttx-ntfc-testing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] testing/bluetooth: Add BSWorld integration tests and CI [nuttx-apps]
Posted by "LingaoM (via GitHub)" <gi...@apache.org>.
LingaoM commented on code in PR #3896:
URL: https://github.com/apache/nuttx-apps/pull/3896#discussion_r4350458301
##########
testing/bluetooth/bsworld/test_bluetooth.py:
##########
@@ -0,0 +1,98 @@
+# SPDX-License-Identifier: Apache-2.0
Review Comment:
This is part of the bsworld(https://github.com/XiaoMi/bsworld) framework and must adhere to bsworld's rules; however, the NuttX test framework clearly does not support Bluetooth.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] testing/bluetooth: Add BSWorld integration tests and CI [nuttx-apps]
Posted by "LingaoM (via GitHub)" <gi...@apache.org>.
LingaoM commented on code in PR #3896:
URL: https://github.com/apache/nuttx-apps/pull/3896#discussion_r4350458301
##########
testing/bluetooth/bsworld/test_bluetooth.py:
##########
@@ -0,0 +1,98 @@
+# SPDX-License-Identifier: Apache-2.0
Review Comment:
This is part of the bsworld framework and must adhere to bsworld's rules; however, the NuttX test framework clearly does not support Bluetooth.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org