3 if [ -n "$TEST_DATA_PREFIX" ]; then
4 LDB_URL
="$TEST_DATA_PREFIX/tdbtest.ldb"
14 LDB_MODULES_PATH
=`dirname $0`/..
/..
/..
/bin
/modules
/testldb
15 echo $LDB_MODULES_PATH
17 echo "LDB_URL: $LDB_URL"
18 cat <<EOF | $VALGRIND ldbadd || exit 1
23 cat <<EOF | $VALGRIND ldbadd || exit 1
26 someThing: someThingElse
29 $VALGRIND ldbsearch
"(touchedBy=sample)" |
grep "touchedBy: sample" ||
exit 1
30 # This action are expected to fails because the sample module return an error when presented the relax control
32 cat <<EOF | $VALGRIND ldbadd --controls "relax:0" && exit 1
35 someThing: someThingElse
38 cat <<EOF | $VALGRIND ldbmodify --controls "relax:0" && exit 1
42 someThing: someThingElseBetter
45 $VALGRIND ldbsearch
--controls "bypassoperational:0" >/dev
/null
2>&1 ||
exit 1