diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-08-22 01:32:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:22 -0500 |
commit | 35817c01a87f4bda0f492144a56d39a99bc07eb1 (patch) | |
tree | 6495a245745b48a3b9fffb13934a0681aacfae1d /source4/lib/ldb/tests/start_slapd.sh | |
parent | 862ba2617205832d4d5f0db07c54c4cc436a0f3d (diff) | |
download | samba-35817c01a87f4bda0f492144a56d39a99bc07eb1.tar.gz samba-35817c01a87f4bda0f492144a56d39a99bc07eb1.tar.bz2 samba-35817c01a87f4bda0f492144a56d39a99bc07eb1.zip |
r17679: - fix 'make test-ldap' to skip ldb specials
- allow ldb to be built in a separate build directory, using:
/some/path/to/ldb/configure
make
this will make it much easier to put ldb in the build farm without
interfering with the build farm builds of tdb and talloc
(This used to be commit 580ed6730d33bad62e9799a38377c40f2852ae89)
Diffstat (limited to 'source4/lib/ldb/tests/start_slapd.sh')
-rwxr-xr-x | source4/lib/ldb/tests/start_slapd.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/lib/ldb/tests/start_slapd.sh b/source4/lib/ldb/tests/start_slapd.sh index 6dd3eaa9b8..49ce5538f1 100755 --- a/source4/lib/ldb/tests/start_slapd.sh +++ b/source4/lib/ldb/tests/start_slapd.sh @@ -1,7 +1,12 @@ #!/bin/sh -mkdir -p tests/tmp/db +if [ -z "$LDBDIR" ]; then + LDBDIR=`dirname $0`/.. + export LDBDIR +fi -slapd -f tests/slapd.conf -h "`tests/ldapi_url.sh`" $* +mkdir -p $LDBDIR/tests/tmp/db + +slapd -f $LDBDIR/tests/slapd.conf -h "`$LDBDIR/tests/ldapi_url.sh`" $* sleep 2 |