bluez: add test.sh for binaries without --version
authorAlexandru Ardelean <redacted>
Fri, 1 May 2026 07:22:47 +0000 (10:22 +0300)
committerAlexandru Ardelean <redacted>
Fri, 1 May 2026 18:01:30 +0000 (21:01 +0300)
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 <redacted>
utils/bluez/test.sh [new file with mode: 0644]

diff --git a/utils/bluez/test.sh b/utils/bluez/test.sh
new file mode 100644 (file)
index 0000000..159f6ea
--- /dev/null
@@ -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
git clone https://git.99rst.org/PROJECT