Skip to content

Conversation

@Thalley
Copy link
Contributor

@Thalley Thalley commented May 24, 2025

Add a common definition of the TEST_SAMPLE_SIRK used by the BSIM tests.

Add a common definition of the TEST_SAMPLE_SIRK used by
the BSIM tests.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
@sonarqubecloud
Copy link

Copy link

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.

Pull Request Overview

This PR standardizes the test sample SIRK used in multiple Bluetooth Audio tests by replacing hardcoded byte arrays with a single common definition.

  • Replace raw SIRK arrays with TEST_SAMPLE_SIRK constant
  • Add common.h definition for TEST_SAMPLE_SIRK using REVERSE_ARGS for endianness handling

Reviewed Changes

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

File Description
tests/bsim/bluetooth/audio/src/gmap_ugt_test.c Replaced hardcoded SIRK byte array with TEST_SAMPLE_SIRK
tests/bsim/bluetooth/audio/src/csip_set_member_test.c Replaced hardcoded SIRK byte array with TEST_SAMPLE_SIRK
tests/bsim/bluetooth/audio/src/common.h Added common definition for TEST_SAMPLE_SIRK
tests/bsim/bluetooth/audio/src/cap_acceptor_test.c Replaced hardcoded SIRK byte array with TEST_SAMPLE_SIRK
Comments suppressed due to low confidence (1)

tests/bsim/bluetooth/audio/src/common.h:75

  • Clarify the comment to explicitly state that TEST_SAMPLE_SIRK is defined in big-endian order and reversed for use in little-endian environments, ensuring that the behavior of REVERSE_ARGS is well-documented and clear.
/* The sample SIRK as defined by the CSIS spec Appendix A.1. ...

@kartben kartben merged commit e82cabb into zephyrproject-rtos:main Jun 10, 2025
30 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Bluetooth LE Audio Jun 10, 2025
@Thalley Thalley deleted the bsim_test_sirk branch June 11, 2025 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants