aboutsummaryrefslogtreecommitdiffstats
path: root/tests/db/have-db.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/db/have-db.in')
-rw-r--r--tests/db/have-db.in16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/db/have-db.in b/tests/db/have-db.in
index 9dbb1f408a45..917ceb47db98 100644
--- a/tests/db/have-db.in
+++ b/tests/db/have-db.in
@@ -38,6 +38,18 @@ top_builddir="@top_builddir@"
. ${top_builddir}/tests/bin/setup-env
+if [ $# != 0 ]; then
+ for type in "$@"; do
+ for have_type in \
+ `${kdc} --builtin-hdb | sed 's/^builtin hdb backends: //'`; do
+ if [ "$type" = "$have_type" ]; then
+ exit 0
+ fi
+ done
+ done
+ exit 1
+fi
+
list=`${kdc} --builtin-hdb | sed 's/^builtin hdb backends: //'`
oldIFS="$IFS"
IPS=,
@@ -47,10 +59,12 @@ IFS="$oldIFS"
while [ $# != 0 ] ; do
case $1 in
db:*) exit 0 ;;
+ db1:*) exit 0 ;;
gdbm:*) exit 0 ;;
db4:*) exit 0 ;;
db3:*) exit 0 ;;
- ldb:*) exit 0 ;;
+ lmdb:*) exit 0 ;;
+ sqlite:*) exit 0 ;;
esac
shift
done