-
Notifications
You must be signed in to change notification settings - Fork 8k
tests: Bluetooth: Audio: Add RX check for each stream #89971
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
base: main
Are you sure you want to change the base?
Conversation
ad516c3
to
e01eaf4
Compare
e01eaf4
to
05c84de
Compare
05c84de
to
d1a2d50
Compare
d1a2d50
to
9d06da1
Compare
9d06da1
to
7a5dd2f
Compare
7a5dd2f
to
48b86e5
Compare
48b86e5
to
d01e717
Compare
4df0389
to
d533d2b
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.
Pull Request Overview
This PR refactors the audio test framework to improve stream validation by changing from a global audio received flag to per-stream flags. This enables verification that each individual stream receives expected data rather than just confirming that any stream has received data.
- Move
flag_audio_received
from global scope to per-stream withinaudio_test_stream
struct - Update all test files to use per-stream flags and implement
wait_for_data()
functions that check each streaming stream - Extract common streaming check logic into shared utility functions in
bap_common.c
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
common.h/common.c | Remove global flag_audio_received and add per-stream flag to audio_test_stream struct |
bap_common.h/bap_common.c | Add utility functions for checking if streams are in streaming state |
bap_stream_rx.c | Update receive callback to set per-stream flag instead of global flag |
bap_stream_tx.c | Replace local streaming check with shared utility function |
Multiple test files | Replace global flag usage with per-stream flags and add wait_for_data() functions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
d533d2b
to
f144ecf
Compare
0d890c1
to
7b94108
Compare
Fixed build issue after #85642 was merged |
7b94108
to
4f8dc06
Compare
4f8dc06
to
60423ea
Compare
60423ea
to
98bb021
Compare
Test fails due to known assertion (#82399) |
Changed the generic global flag_audio_received flag to exist for each stream. This will help verify that each stream, if configured for RX, receives the expected data. One test started failing due to this, so that was disabled until a fix is in place in the controller. Signed-off-by: Emil Gydesen <[email protected]>
98bb021
to
6f8417b
Compare
|
Changed the generic global flag_audio_received flag to exist for each stream. This will help verify that each stream, if configured for RX, receives the expected data.