From: Howard Chu Date: Mon, 5 Feb 2024 14:09:17 +0000 (+0000) Subject: Review tweaks (squash this) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62a5944640d9be6442e04c569b583e09b8c12c70;p=thirdparty%2Fopenldap.git Review tweaks (squash this) --- diff --git a/tests/run.in b/tests/run.in index 80370b1bd9..76b3673e72 100644 --- a/tests/run.in +++ b/tests/run.in @@ -128,7 +128,7 @@ done if test -z "$BACKEND" ; then for b in mdb ; do - if eval "test \"\$AC_$b\" != no" ; then + if eval "test \"\$AC_$b\" != ${b}no" ; then BACKEND=$b break fi @@ -143,6 +143,10 @@ BACKENDTYPE=`eval 'echo $AC_'$BACKEND | sed -e s/$BACKEND//` if test "x$BACKENDTYPE" = "x" ; then BACKENDTYPE="unknown" fi +if test "$BACKENDTYPE" != "yes" -a "$BACKENDTYPE" != "mod" ; then + echo "Backend $BACKEND disabled or unknown (type is \"$BACKENDTYPE\")" + exit 1 +fi # Backend features. indexdb: indexing and unchecked limit. # maindb: main storage backend. Currently index,limits,mode,paged results. diff --git a/tests/scripts/defines.sh b/tests/scripts/defines.sh index 47d2caa37e..c416e8b051 100755 --- a/tests/scripts/defines.sh +++ b/tests/scripts/defines.sh @@ -30,7 +30,7 @@ if [ -n "$TESTINST" ]; then BASEPORT=`expr $BASEPORT + $TESTINST \* 10` fi -. ./AC_defs.sh +. "$OBJDIR"/tests/AC_defs.sh # backends BACKLDAP=${AC_ldap-ldapno}