mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 20:49:35 -05:00
Use LDIFFILTER to avoid Windows EOL issues on $CMP
This commit is contained in:
parent
975de9aa5b
commit
11cb50bd95
4 changed files with 15 additions and 6 deletions
|
|
@ -273,8 +273,10 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "Comparing cache output..."
|
||||
$CMP $SLAVEOUT $PROXYCACHEOUT > $CMPOUT
|
||||
echo "Filtering ldapsearch results..."
|
||||
. $LDIFFILTER < $SLAVEOUT > $SEARCHFLT
|
||||
echo "Comparing filter output..."
|
||||
$CMP $SEARCHFLT $PROXYCACHEOUT > $CMPOUT
|
||||
|
||||
if test $? != 0 ; then
|
||||
echo "Comparison failed"
|
||||
|
|
|
|||
|
|
@ -118,8 +118,10 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
|||
|
||||
LDIFOUT=$DNOUT
|
||||
|
||||
echo "Filtering ldapsearch results..."
|
||||
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
|
||||
echo "Comparing ldapsearch results against original..."
|
||||
$CMP $SEARCHOUT $LDIFOUT > $CMPOUT
|
||||
$CMP $SEARCHFLT $LDIFOUT > $CMPOUT
|
||||
|
||||
if test $? != 0 ; then
|
||||
echo "comparison failed - DN write operations did not complete correctly"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,10 @@ wait
|
|||
|
||||
LDIFOUT=$EMPTYDNOUT1
|
||||
|
||||
echo "Filtering ldapsearch results..."
|
||||
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
|
||||
echo "Comparing ldapsearch results against original..."
|
||||
$CMP $SEARCHOUT $LDIFOUT > $CMPOUT
|
||||
$CMP $SEARCHFLT $LDIFOUT > $CMPOUT
|
||||
|
||||
if test $? != 0 ; then
|
||||
echo "comparison failed - empty DN write operations did not complete correctly"
|
||||
|
|
@ -150,8 +152,10 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
|||
|
||||
LDIFOUT=$EMPTYDNOUT2
|
||||
|
||||
echo "Filtering ldapsearch results..."
|
||||
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
|
||||
echo "Comparing ldapsearch results against original..."
|
||||
$CMP $SEARCHOUT $LDIFOUT > $CMPOUT
|
||||
$CMP $SEARCHFLT $LDIFOUT > $CMPOUT
|
||||
|
||||
if test $? != 0 ; then
|
||||
echo "comparison failed - empty DN write operations did not complete correctly"
|
||||
|
|
|
|||
|
|
@ -256,7 +256,8 @@ if test $RC != 0 ; then
|
|||
exit $RC
|
||||
fi
|
||||
|
||||
$CMP $SEARCHOUT $LDIFTRANSLUCENTMERGED > $CMPOUT
|
||||
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
|
||||
$CMP $SEARCHFLT $LDIFTRANSLUCENTMERGED > $CMPOUT
|
||||
|
||||
if test $? != 0 ; then
|
||||
echo "Comparison failed -- local data failed to merge with remote!"
|
||||
|
|
|
|||
Loading…
Reference in a new issue