summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests/test-tdb.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-01 07:23:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:01 -0500
commit036a7dd9f8310d8bf380c8947f3ee76c51bcf6d0 (patch)
tree90f24f216ee5ea31810f658efb69ab661baa8308 /source4/lib/ldb/tests/test-tdb.sh
parentbd7812be319556162b22562a7c9670dce00d90f9 (diff)
downloadsamba-036a7dd9f8310d8bf380c8947f3ee76c51bcf6d0.tar.gz
samba-036a7dd9f8310d8bf380c8947f3ee76c51bcf6d0.tar.bz2
samba-036a7dd9f8310d8bf380c8947f3ee76c51bcf6d0.zip
r8039: allow ldb test suite to be run outside of the ldb directory
(This used to be commit f3e3b2ccd93b87c1c240cf7e44106389b089b526)
Diffstat (limited to 'source4/lib/ldb/tests/test-tdb.sh')
-rwxr-xr-xsource4/lib/ldb/tests/test-tdb.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/source4/lib/ldb/tests/test-tdb.sh b/source4/lib/ldb/tests/test-tdb.sh
index 470975e8b8..3d461b0b3f 100755
--- a/source4/lib/ldb/tests/test-tdb.sh
+++ b/source4/lib/ldb/tests/test-tdb.sh
@@ -3,10 +3,18 @@
export LDB_URL="tdbtest.ldb"
+PATH=bin:$PATH
+export PATH
+
rm -f tdbtest.ldb
-. tests/test-generic.sh
+if [ -z "$LDBDIR" ]; then
+ LDBDIR="."
+ export LDBDIR
+fi
+
+. $LDBDIR/tests/test-generic.sh
-. tests/test-extended.sh
+. $LDBDIR/tests/test-extended.sh
-. tests/test-tdb-features.sh
+. $LDBDIR/tests/test-tdb-features.sh