summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2012-05-10 10:11:51 +0200
committerAndrew Bartlett <abartlet@samba.org>2012-08-22 01:31:57 +0200
commitcb63b34b053119fcab093e95f555840afa9cfdcf (patch)
treef0b65e2805e368159b0a26f0baff7c45f3f56290
parent6a8c6979544594f9fadec768392888793e7eb74f (diff)
downloadsamba-cb63b34b053119fcab093e95f555840afa9cfdcf.tar.gz
samba-cb63b34b053119fcab093e95f555840afa9cfdcf.tar.bz2
samba-cb63b34b053119fcab093e95f555840afa9cfdcf.zip
LDB:ldbsearch - add search filter tests
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rwxr-xr-xlib/ldb/tests/test-generic.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ldb/tests/test-generic.sh b/lib/ldb/tests/test-generic.sh
index 69f901bd7c..e1f8e79e21 100755
--- a/lib/ldb/tests/test-generic.sh
+++ b/lib/ldb/tests/test-generic.sh
@@ -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