]> git.sur5r.net Git - openldap/blob - tests/scripts/conf.sh
ITS#2401 support tests for dynamically loaded backends
[openldap] / tests / scripts / conf.sh
1 #! /bin/sh
2 # $OpenLDAP$
3 if [ x"$MONITORDB" = x"yes" ] ; then
4         MON=monitor
5 else
6         MON=nomonitor
7 fi
8 if [ x"$BACKENDTYPE" = x"mod" ]; then
9         MODULELOAD="moduleload  back_${BACKEND}.la"
10 fi
11 sed -e "s/@BACKEND@/${BACKEND}/"        \
12         -e "s/@MODULELOAD@/${MODULELOAD}/" \
13         -e "s/^#${BACKEND}#//"                  \
14         -e "s/^#${MON}#//"                              \
15         -e "s/@PORT@/${PORT}/"                  \
16         -e "s/@SLAVEPORT@/${SLAVEPORT}/"