git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a8c697
)
LDB:ldbsearch - add search filter tests
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Thu, 10 May 2012 08:11:51 +0000
(10:11 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 21 Aug 2012 23:31:57 +0000
(
01:31
+0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tests/test-generic.sh
patch
|
blob
|
history
diff --git
a/lib/ldb/tests/test-generic.sh
b/lib/ldb/tests/test-generic.sh
index 69f901bd7cd79583e94946ee4a20bd2f051dd354..e1f8e79e2167124605f8d7083b8e3cc8053daeba 100755
(executable)
--- 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