Search for location of waf script
[Samba.git] / lib / ldb / tests / test-soloading.sh
blobda6d57541e59fe42cf585dc3100509624762e9f5
1 #!/bin/sh
3 if [ -n "$TEST_DATA_PREFIX" ]; then
4 LDB_URL="$TEST_DATA_PREFIX/tdbtest.ldb"
5 else
6 LDB_URL="tdbtest.ldb"
7 fi
8 export LDB_URL
10 PATH=bin:$PATH
11 export PATH
13 rm -f $LDB_URL*
15 if [ -z "$LDBDIR" ]; then
16 LDBDIR=`dirname $0`/..
17 export LDBDIR
20 cat <<EOF | $VALGRIND ldbadd || exit 1
21 dn: @MODULES
22 @LIST: sample
23 EOF
25 cat <<EOF | $VALGRIND ldbadd || exit 1
26 dn: dc=bar
27 dc: bar
28 someThing: someThingElse
29 EOF
31 $VALGRIND ldbsearch "(touchedBy=sample)" | grep "touchedBy: sample" || exit 1