]> git.sur5r.net Git - openldap/commitdiff
sync with test003
authorKurt Zeilenga <kurt@openldap.org>
Fri, 9 Apr 2004 21:37:48 +0000 (21:37 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 9 Apr 2004 21:37:48 +0000 (21:37 +0000)
tests/scripts/test015-xsearch

index ef20cbbde5385cccd2812b4344afd55c99b12fac..cd66c47d2fe441aef2837acaa6d123248b08fd2e 100755 (executable)
@@ -75,6 +75,16 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
+echo "Testing approximate searching..."
+$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
+       '(sn~=jensen)' name >> $SEARCHOUT 2>&1
+RC=$?
+if test $RC != 0 ; then
+       echo "ldapsearch failed ($RC)!"
+       test $KILLSERVERS != no && kill -HUP $KILLPIDS
+       exit $RC
+fi
+
 echo "Testing OR searching..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
        '(|(givenName=XX*YY*Z)(cn=)(undef=*)(objectclass=groupofnames)(objectclass=groupofuniquenames)(sn:caseExactMatch:=Jones))' >> $SEARCHOUT 2>&1