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

# shellcheck shell=busybox

case "$PKG_NAME" in
sane-frontends)
	sane-config --version | grep -F "$PKG_VERSION"
	;;
sane-daemon)
	# saned has no version option; it only prints its usage, so there is
	# nothing to check. The version is covered by sane-frontends.
	exit 0
	;;
libsane | sane-backends | sane-backends-all | sane-*)
	# The library, the backend modules and the meta packages contain no
	# executables that report a version.
	exit 0
	;;
*)
	echo "Untested package: $PKG_NAME" >&2
	exit 1
	;;
esac