summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-08-27 01:46:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:47 -0500
commit666a833d2e5927cdeefcb499799b384ea26848c8 (patch)
treee3ecfa20568caa83ba2be9b6f2dc42accc517997 /testprogs
parentbae97f1631d9722294c30eb35552a61b75f25c30 (diff)
downloadsamba-666a833d2e5927cdeefcb499799b384ea26848c8.tar.gz
samba-666a833d2e5927cdeefcb499799b384ea26848c8.tar.bz2
samba-666a833d2e5927cdeefcb499799b384ea26848c8.zip
r24693: Test search options in ldb blackbox testing.
Andrew Bartlett (This used to be commit 9f45b5553a53d2e8a1c2643bf58fb90db8217b66)
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/test_ldb.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/testprogs/blackbox/test_ldb.sh b/testprogs/blackbox/test_ldb.sh
index 8a019e18b7..fd925fc99b 100755
--- a/testprogs/blackbox/test_ldb.sh
+++ b/testprogs/blackbox/test_ldb.sh
@@ -90,4 +90,13 @@ if [ $nentries -lt 1 ]; then
echo "Attribute Scope Query test returned 0 items"
failed=`expr $failed + 1`
fi
+
+echo "Test Search Options Control"
+nentries=`bin/ldbsearch $options $CONFIGURATION -H $p://$SERVER --controls=search_options:1:2 '(objectclass=crossRef)' | grep crossRef | wc -l`
+if [ $nentries -lt 1 ]; then
+echo "Search Options Control Query test returned 0 items"
+failed=`expr $failed + 1`
+fi
+
+
exit $failed