Skip to content

tests: Bluetooth: ISO: Add validation of broadcast info #80999

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

Merged

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Nov 6, 2024

Add validation of the info the application can retrieve by calling bt_iso_chan_get_info.

@rruuaanng rruuaanng added area: Bluetooth area: Tests Issues related to a particular existing or missing test labels Nov 6, 2024
@Thalley Thalley force-pushed the iso_broadcast_info_validation branch from aa512a1 to e91150e Compare November 6, 2024 16:27
Comment on lines 3351 to 3411
#define BT_HCI_LE_BIG_HANDLE_MIN 0x00
#define BT_HCI_LE_BIG_HANDLE_MAX 0xEF
#define BT_HCI_LE_BIG_SYNC_DELAY_MIN 0x000030U
#define BT_HCI_LE_BIG_SYNC_DELAY_MAX 0x7FFFFFU
#define BT_HCI_LE_TRANSPORT_LATENCY_BIG_MIN 0x000030U
#define BT_HCI_LE_TRANSPORT_LATENCY_BIG_MAX 0x7FFFFFU
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case someone questions the inconsistent prefix; this is what they are called in the BT spec:
image

@Thalley Thalley force-pushed the iso_broadcast_info_validation branch from e91150e to 849e439 Compare November 6, 2024 18:52
@Thalley Thalley force-pushed the iso_broadcast_info_validation branch 3 times, most recently from e75c3ac to 67f50f7 Compare November 6, 2024 21:28
@Thalley Thalley force-pushed the iso_broadcast_info_validation branch 2 times, most recently from a6bf631 to fa3619a Compare November 22, 2024 20:55
@Thalley Thalley self-assigned this Nov 26, 2024
@Thalley Thalley force-pushed the iso_broadcast_info_validation branch from fa3619a to 3628181 Compare January 2, 2025 10:30
@Thalley Thalley force-pushed the iso_broadcast_info_validation branch from 3628181 to da33ebf Compare January 23, 2025 10:45
@Thalley Thalley force-pushed the iso_broadcast_info_validation branch 3 times, most recently from 0aa6194 to 456e3f9 Compare February 12, 2025 13:16
@Thalley Thalley marked this pull request as ready for review February 13, 2025 09:56
@zephyrbot zephyrbot added the area: Bluetooth Host Bluetooth Host (excluding BR/EDR) label Feb 13, 2025
@Thalley Thalley force-pushed the iso_broadcast_info_validation branch from 456e3f9 to 1975376 Compare February 17, 2025 10:29
@Thalley Thalley force-pushed the iso_broadcast_info_validation branch from 1975376 to 08b4bf5 Compare March 9, 2025 21:35
cvinayak
cvinayak previously approved these changes Mar 10, 2025
@Thalley
Copy link
Collaborator Author

Thalley commented Mar 24, 2025

Rebased to solve merge conflicts

@Thalley Thalley requested a review from cvinayak March 24, 2025 13:28
Add validation of the info the application can retrieve by
calling bt_iso_chan_get_info.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the iso_broadcast_info_validation branch from 63bf7c0 to 11c096e Compare April 7, 2025 08:49
@Thalley Thalley requested a review from Copilot April 7, 2025 08:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (4)

tests/bsim/bluetooth/host/iso/bis/src/bis_receiver.c:98

  • [nitpick] Consider adding a descriptive failure message to the assert (e.g., "Expected can_recv to be true") to improve debugging clarity.
TEST_ASSERT(info.can_recv);

tests/bsim/bluetooth/host/iso/bis/src/bis_receiver.c:99

  • [nitpick] Consider adding a descriptive failure message to the assert (e.g., "Expected can_send to be false") to improve debugging clarity.
TEST_ASSERT(!info.can_send);

tests/bsim/bluetooth/host/iso/bis/src/bis_broadcaster.c:115

  • [nitpick] Consider adding a descriptive failure message to the assert (e.g., "Expected can_recv to be false") to improve debugging clarity.
TEST_ASSERT(!info.can_recv);

tests/bsim/bluetooth/host/iso/bis/src/bis_broadcaster.c:116

  • [nitpick] Consider adding a descriptive failure message to the assert (e.g., "Expected can_send to be true") to improve debugging clarity.
TEST_ASSERT(info.can_send);

@Thalley
Copy link
Collaborator Author

Thalley commented Apr 22, 2025

@jhedberg can you please review this?

@kartben kartben merged commit 3d9f2d1 into zephyrproject-rtos:main Apr 30, 2025
26 checks passed
@Thalley Thalley deleted the iso_broadcast_info_validation branch April 30, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth area: Tests Issues related to a particular existing or missing test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants