mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
test compare in chain overlay
This commit is contained in:
parent
4f9b916b61
commit
4f6758bf41
@ -133,8 +133,31 @@ for P in $PORT1 $PORT2 ; do
|
||||
echo "comparison failed - chained search didn't succeed"
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DN="cn=Mark Elliot,ou=Alumni Association,ou=People,$BASEDN"
|
||||
echo "Comparing \"$DN\" on port $P..."
|
||||
$LDAPCOMPARE -h $LOCALHOST -p $P "$DN" "cn:Mark Elliot"
|
||||
> $TESTOUT 2>&1
|
||||
|
||||
RC=$?
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapcompare failed ($RC)!"
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
exit $RC
|
||||
fi
|
||||
|
||||
DN="ou=Other,$BASEDN"
|
||||
echo "Comparing \"$DN\" on port $P with manageDSAit control..."
|
||||
$LDAPCOMPARE -h $LOCALHOST -p $P -M "$DN" "ou:Other"
|
||||
> $TESTOUT 2>&1
|
||||
|
||||
RC=$?
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapcompare failed ($RC)!"
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
exit $RC
|
||||
fi
|
||||
done
|
||||
|
||||
#
|
||||
|
@ -79,7 +79,7 @@ for i in 0 1 2 3 4 5; do
|
||||
sleep 5
|
||||
done
|
||||
|
||||
echo "Waiting 15 seconds for slapds to sync..."
|
||||
echo "Waiting 15 seconds for shadow subtrees to sync..."
|
||||
sleep 15
|
||||
|
||||
for P in $PORT1 $PORT2 ; do
|
||||
@ -90,6 +90,7 @@ for P in $PORT1 $PORT2 ; do
|
||||
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapsearch failed ($RC)!"
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
exit $RC
|
||||
fi
|
||||
|
||||
@ -102,6 +103,7 @@ for P in $PORT1 $PORT2 ; do
|
||||
|
||||
if test $? != 0 ; then
|
||||
echo "comparison failed - database was not created correctly"
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user