BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
+
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
. $CONFFILTER $BACKEND < $SCHEMACONF > $DBCONF
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Using ldapsearch to retrieve all the entries..."
for i in 0 1 2 3 4 5; do
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
. $CONFFILTER $BACKEND < $CONF > $DBCONF
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Using ldapsearch to retrieve all the entries..."
for i in 0 1 2 3 4 5; do
if test $? != 0 ; then
echo "comparison failed - database was not created correctly"
+ echo $SEARCHFLT $LDIFFLT
+ diff -u $SEARCHFLT $LDIFFLT
exit 1
fi
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
. $CONFFILTER $BACKEND < $CONF > $DBCONF
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Using ldapsearch to check that slapd is running..."
for i in 0 1 2 3 4 5; do
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
echo "Starting slapd on TCP/IP port $PORT..."
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Testing slapd searching..."
for i in 0 1 2 3 4 5; do
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
echo "Starting slapd on TCP/IP port $PORT..."
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Testing slapd modify operations..."
for i in 0 1 2 3 4 5; do
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
echo "Starting slapd on TCP/IP port $PORT..."
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Testing slapd modrdn operations..."
# Make sure we can search the database
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
echo "Starting slapd on TCP/IP port $PORT..."
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Testing slapd access control..."
for i in 0 1 2 3 4 5; do
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
. $CONFFILTER $BACKEND < $MASTERCONF > $DBCONF
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Starting slave slapd on TCP/IP port $SLAVEPORT..."
. $CONFFILTER $BACKEND < $SLAVECONF > $REPLCONF
$SLAPD -f $REPLCONF -h $SLAVEURI -d $LVL $TIMING > $SLAVELOG 2>&1 &
SLAVEPID=$!
+if test $WAIT != 0 ; then
+ echo SLAVEPID $SLAVEPID
+ read foo
+fi
echo "Using ldapsearch to check that master slapd is running..."
for i in 0 1 2 3 4 5; do
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
echo "Starting slapd on TCP/IP port $PORT..."
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Using ldapsearch to check that slapd is running..."
for i in 0 1 2 3 4 5; do
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
echo "Starting master slapd on TCP/IP port $PORT..."
$SLAPD -n master -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Starting slave slapd on TCP/IP port $SLAVEPORT..."
. $CONFFILTER $BACKEND < $REFSLAVECONF > $REPLCONF
$SLAPD -n slave -f $REPLCONF -h $SLAVEURI -d $LVL $TIMING > $SLAVELOG 2>&1 &
SLAVEPID=$!
+if test $WAIT != 0 ; then
+ echo SLAVEPID $SLAVEPID
+ read foo
+fi
echo "Testing for master slapd..."
for i in 0 1 2 3 4 5; do
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
+WAIT=0
+if test $# -ge 1 ; then
+ WAIT=1; shift
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
. $CONFFILTER $BACKEND < $PWCONF > $DBCONF
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
+if test $WAIT != 0 ; then
+ echo PID $PID
+ read foo
+fi
echo "Using ldapsearch to check that slapd is running..."
for i in 0 1 2 3 4 5; do