attr: add test.sh to handle version check

The generic CI test fails for /usr/bin/attr because that binary does
not implement --version. getfattr and setfattr do, so test those for
the version string and only verify attr is present and executable.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-04-30 18:21:37 +03:00
committed by Josef Schlehofer
parent 8238e4ddfa
commit 12d8cda801
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
case "$1" in
attr)
# attr does not implement --version; just verify it is present
[ -x /usr/bin/attr ] || exit 1
;;
esac