summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools/ldbtest.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-08-22 01:32:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:22 -0500
commit35817c01a87f4bda0f492144a56d39a99bc07eb1 (patch)
tree6495a245745b48a3b9fffb13934a0681aacfae1d /source4/lib/ldb/tools/ldbtest.c
parent862ba2617205832d4d5f0db07c54c4cc436a0f3d (diff)
downloadsamba-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/tools/ldbtest.c')
-rw-r--r--source4/lib/ldb/tools/ldbtest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/ldb/tools/ldbtest.c b/source4/lib/ldb/tools/ldbtest.c
index c912245682..62d8b84061 100644
--- a/source4/lib/ldb/tools/ldbtest.c
+++ b/source4/lib/ldb/tools/ldbtest.c
@@ -291,6 +291,13 @@ static void start_test_index(struct ldb_context **ldb)
struct ldb_dn *basedn;
int ret;
int flags = 0;
+ const char *specials;
+
+ specials = getenv("LDB_SPECIALS");
+ if (specials && atoi(specials) == 0) {
+ printf("LDB_SPECIALS disabled - skipping index test\n");
+ return;
+ }
if (options->nosync) {
flags |= LDB_FLG_NOSYNC;