]> git.sur5r.net Git - openldap/commitdiff
Support --disable-monitor
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 21 Aug 2005 00:59:34 +0000 (00:59 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 21 Aug 2005 00:59:34 +0000 (00:59 +0000)
tests/scripts/test000-rootdse

index 1d6b9aab28b05d92a5b9f2aba3d3c8d2973c0c5f..d6651a67249ee63e941babcfa21aa171aada9a8a 100755 (executable)
@@ -49,8 +49,10 @@ if test $RC = 0 ; then
 
 fi
 
+count=2
 if test $RC = 0 ; then
        if test $MONITORDB = yes -o $MONITORDB = mod ; then
+               count=3
                echo "Using ldapsearch to retrieve the cn=Monitor..."
                $LDAPSEARCH -b "cn=Monitor" -s base -h $LOCALHOST -p $PORT1 \
                        '+extensibleObject' >> $SEARCHOUT 2>&1
@@ -67,8 +69,8 @@ if test $RC != 0 ; then
        echo ">>>>> Test failed"
 else
        RC=`grep '^dn:' $SEARCHOUT | wc -l`
-       if test $RC != 3 ; then
-               echo ">>>>> Test failed: expected 3 entries, got" $RC
+       if test $RC != $count ; then
+               echo ">>>>> Test failed: expected $count entries, got" $RC
                RC=1
        else
                echo ">>>>> Test succeeded"