Skip to content
Snippets Groups Projects
Commit 2ce5398e authored by Howard Chu's avatar Howard Chu
Browse files

ITS#2401 support tests for dynamically loaded backends

parent b10f1c57
No related branches found
No related tags found
No related merge requests found
Showing
with 86 additions and 19 deletions
......@@ -17,10 +17,10 @@ test-bdb: FORCE
@-$(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
......@@ -30,10 +30,10 @@ test-hdb: FORCE
@-$(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
......@@ -43,10 +43,10 @@ test-ldbm: FORCE
@-$(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
......
......@@ -14,6 +14,9 @@ argsfile ./test-db/slapd.args
access to dn.base="" attr=objectClass by users read
access to * by * read
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -10,6 +10,9 @@ argsfile ./test-db/slapd.args
sasl-secprops noanonymous
#sasl-secprops none
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -11,6 +11,9 @@ include ./schema/openldap.schema
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -10,6 +10,9 @@ include ./schema/openldap.schema
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -13,6 +13,9 @@ include ./schema/internet_mail.oc.conf
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -10,6 +10,9 @@ include ./schema/openldap.schema
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -12,6 +12,9 @@ argsfile ./test-db/slapd.args
# password-hash {md5}
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -11,6 +11,9 @@ include ./schema/openldap.schema
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -10,6 +10,9 @@ include ./schema/openldap.schema
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -11,6 +11,9 @@ include ./schema/openldap.schema
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -11,6 +11,9 @@ include ./schema/openldap.schema
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -11,6 +11,9 @@ include ./schema/openldap.schema
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -11,6 +11,9 @@ include ./schema/openldap.schema
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -24,6 +24,9 @@ argsfile ./test-db/slapd.args
#
rootdse ./data/rootdse.ldif
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -11,6 +11,9 @@ include ./schema/openldap.schema
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
modulepath ../servers/slapd/back-@BACKEND@/
@MODULELOAD@
#######################################################################
# ldbm database definitions
#######################################################################
......
......@@ -22,6 +22,14 @@ fi
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
......@@ -35,7 +43,7 @@ TN=`$SHTOOL echo -e "%b"`
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}."
......
# $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
......@@ -5,7 +5,11 @@ if [ x"$MONITORDB" = x"yes" ] ; then
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}/" \
......
......@@ -5,19 +5,8 @@ SRCDIR="."
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment