]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fixup maindb/indexdb
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 28 Aug 2011 11:00:57 +0000 (13:00 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 28 Aug 2011 11:00:57 +0000 (13:00 +0200)
tests/run.in
tests/scripts/test025-limits
tests/scripts/test056-monitor

index 8e6bbfb00ad71d16d4e99f4e004cf0a04e481555..ebaae6173fc7ea05e60eb8c8dca3b3e55e5631d3 100644 (file)
@@ -169,8 +169,8 @@ if test "x$BACKENDTYPE" = "x" ; then
        BACKENDTYPE="unknown"
 fi
 
-# DB types with indexing, and the main DB types with some other stuff:
-# currently mode, limits, paged results.
+# Backend features.  indexdb: indexing and unchecked limit.
+# maindb: main storage backend.  Currently index,limits,mode,paged results.
 INDEXDB=noindexdb MAINDB=nomaindb
 case $BACKEND in
        bdb|hdb|mdb) INDEXDB=indexdb MAINDB=maindb ;;
index 04bddd14563149d085a68eb6795adc49d6a4476c..9d1ec12680ce6b84751e8454a136503e3290fc7d 100755 (executable)
@@ -501,7 +501,7 @@ case $RC in
        ;;
 esac
 
-if test $MAINDB = maindb ; then
+if test $INDEXDB = indexdb ; then
 
 echo "Testing higher than unchecked limit requested for unchecked limited ID..."
 $LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
index 4220177ca823f9a4a5c83925bbe0debf51bc4f5a..d8cfdb9946fcd5a1d7fbc83d6489f5ae81b2e9c1 100755 (executable)
@@ -100,10 +100,14 @@ echo "Filtering ldapsearch results..."
 $LDIFFILTER -b monitor < $SEARCHOUT > $SEARCHFLT
 
 TMPMONITOROUT2=$MONITOROUT2
-if test $MAINDB != maindb ; then
+case $BACKEND in
+bdb|hdb)
+       ;;
+*)
        TMPMONITOROUT2=$TESTDIR/monitor2.out
        grep -v "olmBDB" $MONITOROUT2 > $TMPMONITOROUT2
-fi
+       ;;
+esac
 
 echo "Comparing filter output..."
 $CMP $SEARCHFLT $TMPMONITOROUT2 > $CMPOUT