3 if [ -z "$LDBDIR" ]; then
11 if [ -f tests
/tmp
/slapd.pid
]; then
12 kill `cat tests/tmp/slapd.pid`
15 if [ -f tests
/tmp
/slapd.pid
]; then
16 kill -9 `cat tests/tmp/slapd.pid`
17 rm -f tests
/tmp
/slapd.pid
20 # we don't consider a slapadd failure as a test suite failure, as it
21 # has nothing to do with ldb
23 MODCONF
=tests
/tmp
/modules.conf
25 touch $MODCONF ||
exit 1
27 slaptest
-u -f $LDBDIR/tests
/slapd.conf
> /dev
/null
2>&1 ||
{
28 echo "enabling sladp modules"
30 modulepath /usr/lib/ldap
35 slaptest
-u -f $LDBDIR/tests
/slapd.conf ||
{
36 echo "slaptest failed - skipping ldap tests"
40 slapadd
-f $LDBDIR/tests
/slapd.conf
< $LDBDIR/tests
/init.ldif ||
exit 0