-
Notifications
You must be signed in to change notification settings - Fork 7.5k
tests: Bluetooth: Add BT Tester GAP smoke test #86146
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
Conversation
78d85c5
to
65746a7
Compare
3bdaa4a
to
f55cd0b
Compare
@@ -87,6 +87,8 @@ | |||
|
|||
#define BTP_STATUS_VAL(err) (err) ? BTP_STATUS_FAILED : BTP_STATUS_SUCCESS | |||
|
|||
#define BTP_EVENT_OPCODE 0x80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static inline void btp_gap_start_advertising(uint8_t adv_data_len, uint8_t scan_rsp_len, | ||
const uint8_t adv_sr_data[], uint32_t duration, | ||
uint8_t own_addr_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reviewers: Should we define btp_gap.h
and others, rather than a single large btp.h
file? For now it's assumed that it's going to be a fairly limited amount of commands and events, and not the entire BTP
56306a6
to
fc00295
Compare
8ea0378
to
aced5a6
Compare
Fixed build error |
53c0d9a
to
12fba65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 9 out of 22 changed files in this pull request and generated no comments.
Files not reviewed (13)
- tests/bluetooth/tester/Kconfig.sysbuild: Language not supported
- tests/bluetooth/tester/boards/nrf52_bsim.conf: Language not supported
- tests/bluetooth/tester/boards/nrf52_bsim.overlay: Language not supported
- tests/bluetooth/tester/boards/nrf5340bsim_nrf5340_cpuapp.conf: Language not supported
- tests/bluetooth/tester/boards/nrf5340bsim_nrf5340_cpuapp.overlay: Language not supported
- tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh: Language not supported
- tests/bsim/bluetooth/compile.sh: Language not supported
- tests/bsim/bluetooth/tester/CMakeLists.txt: Language not supported
- tests/bsim/bluetooth/tester/Kconfig: Language not supported
- tests/bsim/bluetooth/tester/boards/nrf52_bsim.overlay: Language not supported
- tests/bsim/bluetooth/tester/compile.sh: Language not supported
- tests/bsim/bluetooth/tester/prj.conf: Language not supported
- tests/bsim/bluetooth/tester/tests_scripts/gap.sh: Language not supported
Comments suppressed due to low confidence (1)
tests/bsim/bluetooth/tester/src/host/gap_peripheral.c:51
- The test description for the gap_peripheral test mentions 'GAP central' instead of 'GAP peripheral'. Please update the description to accurately reflect the test case.
.test_descr = "Smoketest for the GAP central BT Tester behavior",
Add a babblesim test of the BT Tester doing a GAP smoke test connecting 2 BT testers using BTP. The purpose of this is to further increase the test coverage of the BT Tester in CI, as it is only being built, and runtime errors are typically not caught. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 9 out of 22 changed files in this pull request and generated no comments.
Files not reviewed (13)
- tests/bluetooth/tester/Kconfig.sysbuild: Language not supported
- tests/bluetooth/tester/boards/nrf52_bsim.conf: Language not supported
- tests/bluetooth/tester/boards/nrf52_bsim.overlay: Language not supported
- tests/bluetooth/tester/boards/nrf5340bsim_nrf5340_cpuapp.conf: Language not supported
- tests/bluetooth/tester/boards/nrf5340bsim_nrf5340_cpuapp.overlay: Language not supported
- tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh: Language not supported
- tests/bsim/bluetooth/compile.sh: Language not supported
- tests/bsim/bluetooth/tester/CMakeLists.txt: Language not supported
- tests/bsim/bluetooth/tester/Kconfig: Language not supported
- tests/bsim/bluetooth/tester/boards/nrf52_bsim.overlay: Language not supported
- tests/bsim/bluetooth/tester/compile.sh: Language not supported
- tests/bsim/bluetooth/tester/prj.conf: Language not supported
- tests/bsim/bluetooth/tester/tests_scripts/gap.sh: Language not supported
Comments suppressed due to low confidence (1)
tests/bsim/bluetooth/tester/src/bsim_btp.h:73
- The same parameter 'adv_sr_data' is used for both advertisement data and scan response data, which might be unintended if separate payloads are required. Consider using distinct parameters if different data should be transmitted.
if (adv_data_len > 0U) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Add a babblesim test of the BT Tester doing a GAP smoke test connecting 2 BT testers using BTP.
The purpose of this is to further increase the test coverage of the BT Tester in CI, as it is only being built, and runtime errors are typically not caught.
fixes #86058