summaryrefslogtreecommitdiff
path: root/lib/ldb/tests/test-tdb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ldb/tests/test-tdb.sh')
-rwxr-xr-xlib/ldb/tests/test-tdb.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/ldb/tests/test-tdb.sh b/lib/ldb/tests/test-tdb.sh
index c2285a93f1..3310c81392 100755
--- a/lib/ldb/tests/test-tdb.sh
+++ b/lib/ldb/tests/test-tdb.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+BINDIR=$1
+
if [ -n "$TEST_DATA_PREFIX" ]; then
LDB_URL="$TEST_DATA_PREFIX/tdbtest.ldb"
else
@@ -7,16 +9,18 @@ else
fi
export LDB_URL
-PATH=bin:$PATH
+PATH=$BINDIR:$PATH
export PATH
-rm -f $LDB_URL*
-
if [ -z "$LDBDIR" ]; then
LDBDIR=`dirname $0`/..
export LDBDIR
fi
+cd $LDBDIR
+
+rm -f $LDB_URL*
+
cat <<EOF | $VALGRIND ldbadd || exit 1
dn: @MODULES
@LIST: rdn_name