summaryrefslogtreecommitdiffstats
path: root/utils/acl/test-version.sh
blob: 9d3a3f59aa351354e98300079985ecf7d34b15be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
	acl)
		getfacl --version | grep -F "$PKG_VERSION" || exit 1
		setfacl --version | grep -F "$PKG_VERSION" || exit 1
		# chacl does not implement --version, so just verify it is present
		[ -x /usr/bin/chacl ] || exit 1
		;;

	libacl)
		# ships no executable, nothing to assert
		exit 0
		;;

	*)
		echo "Untested package: $1" >&2
		exit 1
		;;
esac