1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

LDB:ldbsearch - add search filter tests

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Matthias Dieter Wallnöfer 2012-05-10 10:11:51 +02:00 committed by Andrew Bartlett
parent 6a8c697954
commit cb63b34b05

View File

@ -123,12 +123,14 @@ if [ $count != 2 ]; then
echo returned $count records - expected 2
echo "this fails on openLdap ..."
fi
$VALGRIND ldbsearch '(cn>t)' cn && exit 1 # strictly greater should not work
count=`$VALGRIND ldbsearch '(cn<=t)' cn | grep '^dn' | wc -l`
if [ $count != 13 ]; then
echo returned $count records - expected 13
echo "this fails on openLdap ..."
fi
$VALGRIND ldbsearch '(cn<t)' cn && exit 1 # strictly less should not work
checkcount() {
count=$1