From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v1 0/7] Add HID over GATT functional tests
Date: Wed, 23 Sep 2026 15:31:50 -0400 [thread overview]
Message-ID: <20260923193157.249636-1-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This adds functional tests for HID over GATT (HoG), with bluetoothctl
registering a HID Service acting as a keyboard, with and without
Shorter Connection Interval (SCI) support, using the new
client/scripts/hog-device*.bt scripts, and the HID host:
- checking HID Information, HID SCI Mode and HID SCI Information over
GATT with gatt.select-attribute/gatt.read
- receiving a few Input Reports notified by the HID device
- with SCI support, changing the SCI mode, followed by the connection
rate with mgmt.conn-subrate, and receiving the notification from
the HID device confirming the mode has been changed
The tests are documented in doc/functional-hog.rst.
To support them:
- bluetoothctl can now set descriptor values from scripts, and prints
the MGMT Connection Subrate event
- btvirt defaults to the latest BR/EDR+LE version (6.2), so Shorter
Connection Intervals are supported by the emulated controllers,
with the new -C/--core option to emulate older versions
Also, with -n auto, the number of functional test workers is now
limited by the memory available instead of one per CPU, since running
out of memory with so many VM instances made tests fail at random, and
check-functional uses -n auto by default (override with
CHECK_FUNCTIONAL_JOBS).
Luiz Augusto von Dentz (7):
client/gatt: Fix setting descriptor value from scripts
client/mgmt: Print Connection Subrate event
emulator: Default to the latest BR/EDR+LE version
client/scripts: Add HoG device scripts
doc: Add functional-hog documentation
test: functional: add HoG tests
test: functional: limit the workers by the memory available
Makefile.am | 8 +-
client/gatt.c | 25 ++-
client/mgmt.c | 31 ++++
client/scripts/hog-device-sci.bt | 49 ++++++
client/scripts/hog-device.bt | 38 +++++
doc/functional-hog.rst | 188 +++++++++++++++++++++++
doc/functional-testing.rst | 1 +
doc/test-functional.rst | 25 +++
emulator/main.c | 54 ++++++-
emulator/server.c | 15 +-
emulator/server.h | 2 +
test/functional/conftest.py | 46 ++++++
test/functional/test_hog.py | 252 +++++++++++++++++++++++++++++++
13 files changed, 722 insertions(+), 12 deletions(-)
create mode 100644 client/scripts/hog-device-sci.bt
create mode 100644 client/scripts/hog-device.bt
create mode 100644 doc/functional-hog.rst
create mode 100644 test/functional/test_hog.py
--
2.55.0
next reply other threads:[~2026-09-23 19:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 19:31 Luiz Augusto von Dentz [this message]
2026-09-23 19:31 ` [PATCH BlueZ v1 1/7] client/gatt: Fix setting descriptor value from scripts Luiz Augusto von Dentz
2026-09-23 22:30 ` Add HID over GATT functional tests bluez.test.bot
2026-09-23 19:31 ` [PATCH BlueZ v1 2/7] client/mgmt: Print Connection Subrate event Luiz Augusto von Dentz
2026-09-23 19:31 ` [PATCH BlueZ v1 3/7] emulator: Default to the latest BR/EDR+LE version Luiz Augusto von Dentz
2026-09-23 19:31 ` [PATCH BlueZ v1 4/7] client/scripts: Add HoG device scripts Luiz Augusto von Dentz
2026-09-23 19:31 ` [PATCH BlueZ v1 5/7] doc: Add functional-hog documentation Luiz Augusto von Dentz
2026-09-23 19:31 ` [PATCH BlueZ v1 6/7] test: functional: add HoG tests Luiz Augusto von Dentz
2026-09-23 19:31 ` [PATCH BlueZ v1 7/7] test: functional: limit the workers by the memory available Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260923193157.249636-1-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.