mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
3298822f8d
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 <alex@shruggie.ro>
19 lines
483 B
Bash
19 lines
483 B
Bash
#!/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
|