@-$(LN_S) $(srcdir)/data .
@-$(LN_S) $(top_srcdir)/servers/slapd/schema .
@-$(LN_S) ../libraries/liblunicode ucdata
- @if test "$(BUILD_BDB)" = "yes" ; then \
+ @if test "$(BUILD_BDB)" != "no"; then \
echo "Initiating LDAP tests for BDB..." ; \
$(MKDIR) test-db test-repl || true; \
- $(srcdir)/scripts/all $(srcdir) bdb $(BUILD_MONITOR) ; \
+ $(srcdir)/scripts/all $(srcdir) bdb $(BUILD_BDB) $(BUILD_MONITOR) ; \
else \
echo "run configure with --enable-bdb" ; \
fi
@-$(LN_S) $(srcdir)/data .
@-$(LN_S) $(top_srcdir)/servers/slapd/schema .
@-$(LN_S) ../libraries/liblunicode ucdata
- @if test "$(BUILD_HDB)" = "yes" ; then \
+ @if test "$(BUILD_HDB)" != "no" ; then \
echo "Initiating LDAP tests for HDB..." ; \
$(MKDIR) test-db test-repl || true; \
- $(srcdir)/scripts/all $(srcdir) hdb $(BUILD_MONITOR) ; \
+ $(srcdir)/scripts/all $(srcdir) hdb $(BUILD_HDB) $(BUILD_MONITOR) ; \
else \
echo "run configure with --enable-hdb" ; \
fi
@-$(LN_S) $(srcdir)/data .
@-$(LN_S) $(top_srcdir)/servers/slapd/schema .
@-$(LN_S) ../libraries/liblunicode ucdata
- @if test "$(BUILD_LDBM)" = "yes" ; then \
+ @if test "$(BUILD_LDBM)" != "no"; then \
echo "Initiating LDAP tests for LDBM..." ; \
$(MKDIR) test-db test-repl || true; \
- $(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_MONITOR); \
+ $(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_LDBM) $(BUILD_MONITOR); \
else \
echo "run configure with --enable-ldbm" ; \
fi
access to dn.base="" attr=objectClass by users read
access to * by * read
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
sasl-secprops noanonymous
#sasl-secprops none
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
# password-hash {md5}
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
#
rootdse ./data/rootdse.ldif
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
+modulepath ../servers/slapd/back-@BACKEND@/
+@MODULELOAD@
+
#######################################################################
# ldbm database definitions
#######################################################################
echo ">>>>> Backend: $BACKEND"
+if test $# -eq 0 ; then
+ BACKENDTYPE=yes
+else
+ BACKENDTYPE=$1; shift
+fi
+
+echo ">>>>> Backend Type: $BACKENDTYPE"
+
if test $# -eq 0 ; then
MONITOR=no
else
for CMD in $SRCDIR/scripts/test*; do
echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
- $CMD $SRCDIR $BACKEND $MONITOR
+ $CMD $SRCDIR $BACKEND $BACKENDTYPE $MONITOR
RC=$?
if test $RC -eq 0 ; then
echo ">>>>> $CMD completed ${TB}OK${TN}."
--- /dev/null
+# $OpenLDAP$
+
+BACKEND=bdb
+if test $# -ge 1 ; then
+ BACKEND=$1; shift
+fi
+
+BACKENDTYPE=yes
+if test $# -ge 1 ; then
+ BACKENDTYPE=$1; shift
+fi
+
+MONITORDB=no
+if test $# -ge 1 ; then
+ MONITORDB=$1; shift
+fi
+
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
else
MON=nomonitor
fi
+if [ x"$BACKENDTYPE" = x"mod" ]; then
+ MODULELOAD="moduleload back_${BACKEND}.la"
+fi
sed -e "s/@BACKEND@/${BACKEND}/" \
+ -e "s/@MODULELOAD@/${MODULELOAD}/" \
-e "s/^#${BACKEND}#//" \
-e "s/^#${MON}#//" \
-e "s/@PORT@/${PORT}/" \
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=bdb
-if test $# -ge 1 ; then
- BACKEND=$1; shift
-fi
-MONITORDB=no
-if test $# -ge 1 ; then
- MONITORDB=$1; shift
-fi
-WAIT=0
-if test $# -ge 1 ; then
- WAIT=1; shift
-fi
+
+. $SRCDIR/scripts/args.sh
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh