Skip to content

tests: Bluetooth: Split CAP and GMAP AC tests into separate scripts #89352

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Apr 30, 2025

This commit splits the CAP and GMAP audio configuration (AC) tests into separate scripts. The purpose of this is to reduce the runtime of the individual scripts (some, like the cap_ac_11, tests takes a long time to run all combinations).
This split also improves support for running them in parallel.

An additional, positive, side effect of this is that the logs will also be smaller per run.

@Thalley Thalley requested a review from Copilot April 30, 2025 19:15
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 507 out of 527 changed files in this pull request and generated no comments.

Files not reviewed (20)
  • tests/bsim/bluetooth/audio/test_scripts/_gmap.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_ac_common.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_1.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_10.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_11.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_12.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_13.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_14.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_2.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_3.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_4.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_5.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_6.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_7.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_8.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_cap_ac_9.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_gmap_ac.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_gmap_ac_1.sh: Language not supported
  • tests/bsim/bluetooth/audio/test_scripts/audio_config_tests/_gmap_ac_11_i.sh: Language not supported

Copy link
Member

@aescolar aescolar left a comment

Choose a reason for hiding this comment

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

(sidecomment: that's a lot of audio tests..)

@Thalley Thalley force-pushed the cap_gmap_ac_split branch from ae706fb to 825e65e Compare May 1, 2025 08:42
@Thalley
Copy link
Collaborator Author

Thalley commented May 1, 2025

(sidecomment: that's a lot of audio tests..)

Always have been :D

But yeah, there's a lot of tests, and this is just a subset of the tests I want to run, because ideally we'd run all combinations, but I also know that it would be entirely too many.

@Thalley Thalley requested a review from aescolar May 1, 2025 08:43
@Thalley Thalley force-pushed the cap_gmap_ac_split branch from 825e65e to 8c03b0a Compare May 1, 2025 10:49
@Thalley Thalley force-pushed the cap_gmap_ac_split branch 2 times, most recently from dc04cc2 to 4169b64 Compare May 1, 2025 13:04
@Thalley
Copy link
Collaborator Author

Thalley commented May 1, 2025

@aescolar updated to used variables instead of function arguments. Added a few more missing tests that I forgot the first time around.

@Thalley Thalley requested a review from aescolar May 1, 2025 13:17
This commit splits the CAP and GMAP audio configuration (AC)
tests into separate scripts. The purpose of this is to reduce
the runtime of the individual scripts (some, like the cap_ac_11,
tests takes a long time to run all combinations).
This split also improves support for running them in parallel.

An additional, positive, side effect of this is that the logs will
also be smaller per run.

The new scripts can be run directly, or via the e.g. _cap_ac_X.sh
scripts that run entire audio configuration for all presets.

The design of how the parameters are passed around, are based
on variable instead of function arguments. Effectively they can
be used for the same thing, but variables have the advantage
that it is easier to deal with longer names,
and that any of the test scripts can be called with additional
arguments that can, when using variables, easily be forwarded
to the call to Execute for the PHY in the
_ac_common.sh.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the cap_gmap_ac_split branch from 4169b64 to 66a59c2 Compare May 1, 2025 14:42
@Thalley Thalley requested a review from aescolar May 1, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

2 participants