1 echo "Adding base elements"
2 $VALGRIND bin/ldbadd tests/test.ldif || exit 1
4 echo "Modifying elements"
5 $VALGRIND bin/ldbmodify tests/test-modify.ldif || exit 1
7 echo "Showing modified record"
8 $VALGRIND bin/ldbsearch '(uid=uham)' || exit 1
10 echo "Starting ldbtest"
11 time $VALGRIND bin/ldbtest -r 1000 -s 10 || exit 1
14 $VALGRIND bin/ldbadd tests/test-index.ldif || exit 1
16 echo "Starting ldbtest indexed"
17 time $VALGRIND bin/ldbtest -r 1000 -s 5000 || exit 1
19 echo "Testing one level search"
20 count=`$VALGRIND bin/ldbsearch -b 'ou=Groups,o=University of Michigan,c=US' -s one 'objectclass=*' none |grep ^dn | wc -l`
21 if [ "$count" != 3 ]; then
22 echo returned $count records - expected 3