diff --git a/utils/sane-backends/test-version.sh b/utils/sane-backends/test-version.sh new file mode 100755 index 0000000000..e2d2b56c81 --- /dev/null +++ b/utils/sane-backends/test-version.sh @@ -0,0 +1,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