]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test001-slapadd
Extend TLS/SSL detection for use RSAref if necessary.
[openldap] / tests / scripts / test001-slapadd
index d22e04c8e0791fadab91bed24cbf02baffa1c22a..6ab1a5c52b7034a8c5be920560baa1caa772d995 100755 (executable)
@@ -1,11 +1,23 @@
 #!/bin/sh
 
-. scripts/defines.sh
+if [ $# -eq 0 ]; then
+       SRCDIR="."
+else
+       SRCDIR=$1; shift
+fi
+if [ $# -eq 1 ]; then
+       BDB2=$1; shift
+fi
+
+echo "running defines.sh $SRCDIR $BDB2"
+
+. $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
 
+echo "Datadir is $DATADIR"
 
 echo "Cleaning up in $DBDIR..."
 
-rm -f $DBDIR/*
+rm -f $DBDIR/[!C]*
 
 echo "Running ldif2ldbm to build slapd database..."
 $LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools
@@ -16,7 +28,7 @@ if [ $RC != 0 ]; then
 fi
 
 echo "Starting slapd on TCP/IP port $PORT..."
-$SLAPD -f $CONF -p $PORT -d 1 > /dev/null 2>&1 &
+$SLAPD -f $CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
 PID=$!
 
 echo "Using ldapsearch to retrieve all the entries..."