diff --git a/libs/openldap/test-version.sh b/libs/openldap/test-version.sh new file mode 100755 index 0000000000..f973ac1190 --- /dev/null +++ b/libs/openldap/test-version.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +openldap-server) + slapd -V 2>&1 | grep -F "$PKG_VERSION" + ;; + +openldap-utils) + ldapsearch -VV 2>&1 | grep -F "$PKG_VERSION" + ;; + +libopenldap) + # Shared library. + exit 0 + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac