From 3298822f8d5deb2c2175cb979b031907a7440b1a Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Fri, 1 May 2026 10:22:47 +0300 Subject: [PATCH] bluez: add test.sh for binaries without --version Several bluez utilities do not implement --version so the generic CI version check fails for them. Add test.sh cases that verify the binaries are present and executable instead. bluez-daemon: obexd bluez-utils: bdaddr, ciptool, hciattach, hciconfig, l2ping, l2test, rctest bluez-utils-extra: gatttool Signed-off-by: Alexandru Ardelean --- utils/bluez/test.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 utils/bluez/test.sh diff --git a/utils/bluez/test.sh b/utils/bluez/test.sh new file mode 100644 index 0000000000..159f6ea9c5 --- /dev/null +++ b/utils/bluez/test.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +case "$1" in + bluez-daemon) + # obexd does not implement --version; just verify it is present + [ -x /usr/bin/obexd ] || exit 1 + ;; + bluez-utils) + # these tools do not implement --version; verify they are present + for bin in bdaddr ciptool hciattach hciconfig l2ping l2test rctest; do + [ -x "/usr/bin/$bin" ] || exit 1 + done + ;; + bluez-utils-extra) + # gatttool does not implement --version; just verify it is present + [ -x /usr/bin/gatttool ] || exit 1 + ;; +esac