r24693: Test search options in ldb blackbox testing.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 27 Aug 2007 01:46:09 +0000 (01:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:02:47 +0000 (15:02 -0500)
Andrew Bartlett
(This used to be commit 9f45b5553a53d2e8a1c2643bf58fb90db8217b66)

testprogs/blackbox/test_ldb.sh

index 8a019e18b7933652bec8d6911533a2e638d045f4..fd925fc99b10668d583607eb2430a883cbf23159 100755 (executable)
@@ -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