From 9fbd16921a0ebcb633a8c1188d04439352db2d3c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 23 Sep 2004 02:15:10 +0000 Subject: r2554: added a test for a bug that jelmer pointed out (handling of -s one) (This used to be commit 74d7bc1948961a24837d966416db12be192382ff) --- source4/lib/ldb/tests/test-generic.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4') diff --git a/source4/lib/ldb/tests/test-generic.sh b/source4/lib/ldb/tests/test-generic.sh index 6db57967df..4cfae7affb 100755 --- a/source4/lib/ldb/tests/test-generic.sh +++ b/source4/lib/ldb/tests/test-generic.sh @@ -15,3 +15,10 @@ $VALGRIND bin/ldbadd tests/test-index.ldif || exit 1 echo "Starting ldbtest indexed" time $VALGRIND bin/ldbtest -r 1000 -s 5000 || exit 1 + +echo "Testing one level search" +count=`$VALGRIND bin/ldbsearch -b 'ou=Groups,o=University of Michigan,c=US' -s one 'objectclass=*' none |grep ^dn | wc -l` +if [ "$count" != 3 ]; then + echo returned $count records - expected 3 + exit 1 +fi -- cgit