unit: Introduce test-bass
Subsystems (2)
cover unit: Introduce test-bass
This adds 3 unit tests for BASS server, to simulate the Generic GATT Integrated Test suite for BASS.
This patch also adds the Write Without Response property to the Broadcast Audio Scan Control Point characteristic, which is mandatory according to BASS specification.
Iulia Tanasescu (2):
shared/bass: Add Write Without Response property to the CP
characteristic
unit: Introduce test-bass
Makefile.am | 6 + src/shared/bass.c | 3 +- unit/test-bass.c | 397 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 405 insertions(+), 1 deletion(-) create mode 100644 unit/test-bass.c
base-commit: 7002ecc8914ab1f22e36bd98c4d46eb760edf767
Signature · 1 line
2.34.1
PATCH 1/2 shared/bass: Add Write Without Response property to the CP characteristic
This adds the Write Without Response property to the Broadcast Audio Scan Control Point characteristic, which is mandatory according to specification.
--- src/shared/bass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
src/shared/bass.c +2 -1
@@ -567,7 +567,8 @@ static void bass_new(struct bt_bass_db *bdb)gatt_db_service_add_characteristic (bdb->service, &uuid,BT_ATT_PERM_WRITE , -BT_GATT_CHRC_PROP_WRITE , +BT_GATT_CHRC_PROP_WRITE | +BT_GATT_CHRC_PROP_WRITE_WITHOUT_RESP ,NULL , bass_bcast_audio_scan_cp_write, bdb);
Signature · 1 line
2.34.1
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=751789
---Test result---
Test Summary:
CheckPatch PASS 1.06 seconds GitLint FAIL 0.81 seconds BuildEll PASS 30.00 seconds BluezMake PASS 1050.56 seconds MakeCheck PASS 12.23 seconds MakeDistcheck PASS 173.29 seconds CheckValgrind PASS 277.57 seconds CheckSmatch PASS 391.37 seconds bluezmakeextell PASS 116.06 seconds IncrementalBuild PASS 1826.44 seconds ScanBuild PASS 1214.80 seconds
Details
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[BlueZ,1/2] shared/bass: Add Write Without Response property to the CP characteristic
WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search
1: T1 Title exceeds max length (85>80): "[BlueZ,1/2] shared/bass: Add Write Without Response property to the CP characteristic"
[BlueZ,2/2] unit: Introduce test-bass
WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search
6: B2 Line has trailing whitespace: "Test Summary "
---
Regards,
Linux Bluetooth
PATCH 2/2 unit: Introduce test-bass
In reply to Iulia TanasescuThis adds 3 unit tests for BASS server, to simulate the Generic GATT Integrated Test suite for BASS.
Test Summary
------------
BASS/SR/SGGIT/SER/BV-01-C Passed BASS/SR/SGGIT/CHA/BV-01-C Passed BASS/SR/SGGIT/CHA/BV-02-C Passed
Total: 3, Passed: 3 (100.0%), Failed: 0, Not Run: 0
--- Makefile.am | 6 + unit/test-bass.c | 397 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 403 insertions(+) create mode 100644 unit/test-bass.c
Makefile.am +6 -0
@@ -578,6 +578,12 @@ unit_test_bap_SOURCES = unit/test-bap.c unit_test_bap_LDADD = src/libshared-glib.la \ lib/libbluetooth-internal.la $(GLIB_LIBS) +unit_tests += unit/test-bass + +unit_test_bass_SOURCES = unit/test-bass.c +unit_test_bass_LDADD = src/libshared-glib.la \ + lib/libbluetooth-internal.la $(GLIB_LIBS) + if MIDI unit_tests += unit/test-midi unit_test_midi_CPPFLAGS = $(AM_CPPFLAGS) $(ALSA_CFLAGS) -DMIDI_TEST
unit/test-bass.c new file +397 -0
397 lines not on this page · raw message
Signature · 1 line
2.34.1
This series was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This series was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 9 lines · On Mon, 29 May 2023 11:46:48 +0300 you wrote:
This adds 3 unit tests for BASS server, to simulate the Generic GATT Integrated Test suite for BASS.
This patch also adds the Write Without Response property to the Broadcast Audio Scan Control Point characteristic, which is mandatory according to BASS specification.
[...]
Here is the summary with links:
- [BlueZ,1/2] shared/bass: Add Write Without Response property to the CP characteristic
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=c39317ed42cb - [BlueZ,2/2] unit: Introduce test-bass https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=1248bdd43291
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html