s/cmp/$CMP/ define CMP to cmp (to allow cmp replacements)

Add -n option to slapd
This commit is contained in:
Kurt Zeilenga 2000-05-27 17:16:10 +00:00
parent 47333bf762
commit 570204c9e2
10 changed files with 13 additions and 11 deletions

View File

@ -32,6 +32,8 @@ CLIENTDIR=../clients/tools
LDIF2LDBM="../servers/slapd/tools/slapadd $LDAP_VERBOSE"
CMP=cmp
#CMP=diff -i -q
SLAPD=../servers/slapd/slapd
SLURPD=../servers/slurpd/slurpd
LDAPPASSWD="$CLIENTDIR/ldappasswd"

View File

@ -55,7 +55,7 @@ echo "Filtering ldapsearch results..."
echo "Filtering original ldif used to create database..."
. $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
echo "Comparing filter output..."
cmp $SEARCHFLT $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT
if test $? != 0 ; then
echo "comparison failed - database was not created correctly"

View File

@ -58,7 +58,7 @@ echo "Filtering ldapsearch results..."
echo "Filtering original ldif used to create database..."
. $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
echo "Comparing filter output..."
cmp $SEARCHFLT $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT
if test $? != 0 ; then
echo "comparison failed - database was not created correctly"

View File

@ -93,7 +93,7 @@ echo "Filtering ldapsearch results..."
echo "Filtering original ldif used to create database..."
. $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
echo "Comparing filter output..."
cmp $SEARCHFLT $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT
if test $? != 0 ; then
echo "Comparison failed"

View File

@ -135,7 +135,7 @@ echo "Filtering ldapsearch results..."
echo "Filtering original ldif used to create database..."
. $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
echo "Comparing filter output..."
cmp $SEARCHFLT $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT
if test $? != 0 ; then
echo "comparison failed - modify operations did not complete correctly"

View File

@ -91,7 +91,7 @@ echo "Filtering ldapsearch results..."
echo "Filtering original ldif used to create database..."
. $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
echo "Comparing filter output..."
cmp $SEARCHFLT $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT
if test $? != 0 ; then
echo "comparison failed - modrdn operations did not complete correctly"

View File

@ -131,7 +131,7 @@ echo "Filtering ldapsearch results..."
echo "Filtering original ldif used to create database..."
. $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
echo "Comparing filter output..."
cmp $SEARCHFLT $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT
if test $? != 0 ; then
echo "comparison failed - modify operations did not complete correctly"

View File

@ -174,7 +174,7 @@ echo "Filtering original ldif used to create database..."
. $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
echo "Comparing retrieved entries from master and slave..."
cmp $SEARCHFLT $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT
if test $? != 0 ; then
echo "test failed - master and slave databases differ"

View File

@ -72,7 +72,7 @@ echo "Filtering ldapsearch results..."
echo "Filtering original ldif used to create database..."
. $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
echo "Comparing filter output..."
cmp $SEARCHFLT $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT
if test $? != 0 ; then
echo "comparison failed - database was not created correctly"

View File

@ -31,11 +31,11 @@ if test $RC != 0 ; then
fi
echo "Starting master slapd on TCP/IP port $PORT..."
$SLAPD -f $CONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
$SLAPD -n master -f $CONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
echo "Starting slave slapd on TCP/IP port $SLAVEPORT..."
$SLAPD -f $REFSLAVECONF -h $SLAVEURI -d $LVL $TIMING > $SLAVELOG 2>&1 &
$SLAPD -n slave -f $REFSLAVECONF -h $SLAVEURI -d $LVL $TIMING > $SLAVELOG 2>&1 &
SLAVEPID=$!
echo "Testing for master slapd..."
@ -113,7 +113,7 @@ echo "Filtering ldapsearch results..."
echo "Filtering original ldif used to create database..."
. $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
echo "Comparing filter output..."
cmp $SEARCHFLT $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT
if test $? != 0 ; then
echo "Comparison failed"