mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
ITS#9010 - Fix test suite
Some additional fixes for the testsuite now that back-bdb/hdb are no longer present.
This commit is contained in:
parent
2a215dcd77
commit
262a074303
@ -10,9 +10,6 @@ structuralObjectClass: monitoredObject
|
||||
monitorIsShadow: FALSE
|
||||
namingContexts: o=OpenLDAP Project,l=Internet
|
||||
readOnly: FALSE
|
||||
olmBDBEntryCache: 0
|
||||
olmBDBDNCache: 0
|
||||
olmBDBIDLCache: 0
|
||||
entryDN: cn=Database 1,cn=Databases,cn=Monitor
|
||||
|
||||
dn: cn=Database 2,cn=Databases,cn=Monitor
|
||||
|
@ -72,7 +72,7 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
indexInclude="" mainInclude="" " nullExclude=""
|
||||
indexInclude="" mainInclude="" nullExclude=""
|
||||
test $INDEXDB = indexdb || indexInclude="# "
|
||||
test $MAINDB = maindb || mainInclude="# "
|
||||
case $BACKEND in
|
||||
|
@ -85,7 +85,7 @@ echo "Using ldapsearch to read database monitor entries..."
|
||||
$LDAPSEARCH -S "" -b "$DATABASESMONITORDN" -h $LOCALHOST -p $PORT1 \
|
||||
'objectclass=*' \
|
||||
structuralObjectClass entryDN namingContexts readOnly \
|
||||
monitorIsShadow monitorContext
|
||||
monitorIsShadow monitorContext \
|
||||
> $SEARCHOUT 2>&1
|
||||
RC=$?
|
||||
|
||||
@ -98,15 +98,8 @@ fi
|
||||
echo "Filtering ldapsearch results..."
|
||||
$LDIFFILTER -b monitor < $SEARCHOUT > $SEARCHFLT
|
||||
|
||||
TMPMONITOROUT2=$MONITOROUT2
|
||||
case $BACKEND in
|
||||
*)
|
||||
TMPMONITOROUT2=$TESTDIR/monitor2.out
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Comparing filter output..."
|
||||
$CMP $SEARCHFLT $TMPMONITOROUT2 > $CMPOUT
|
||||
$CMP $SEARCHFLT $MONITOROUT2 > $CMPOUT
|
||||
|
||||
if test $? != 0 ; then
|
||||
echo "comparison failed - database monitor output is not correct"
|
||||
|
Loading…
Reference in New Issue
Block a user