2 ## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5 ## tests Makefile.in for OpenLDAP
9 BUILD_LDBM=@BUILD_LDBM@
10 BUILD_MONITOR=@BUILD_MONITOR@
11 BUILD_CACHE=@BUILD_CACHE@
24 @-$(LN_S) $(srcdir)/data .
25 @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
26 @-$(LN_S) ../libraries/liblunicode ucdata
27 @if test "$(BUILD_BDB)" != "no"; then \
28 echo "Initiating LDAP tests for BDB..." ; \
29 $(MKDIR) test-db test-repl || true; \
30 $(srcdir)/scripts/all $(srcdir) bdb $(BUILD_BDB) $(BUILD_MONITOR) $(BUILD_CACHE) bdb ; \
32 echo "run configure with --enable-bdb" ; \
37 @-$(LN_S) $(srcdir)/data .
38 @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
39 @-$(LN_S) ../libraries/liblunicode ucdata
40 @if test "$(BUILD_HDB)" != "no" ; then \
41 echo "Initiating LDAP tests for HDB..." ; \
42 $(MKDIR) test-db test-repl || true; \
43 $(srcdir)/scripts/all $(srcdir) hdb $(BUILD_HDB) $(BUILD_MONITOR) $(BUILD_CACHE) hdb ; \
45 echo "run configure with --enable-hdb" ; \
50 @-$(LN_S) $(srcdir)/data .
51 @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
52 @-$(LN_S) ../libraries/liblunicode ucdata
53 @if test "$(BUILD_LDBM)" != "no" ; then \
54 echo "Initiating LDAP tests for LDBM..." ; \
55 $(MKDIR) test-db test-repl || true; \
56 if test "$(BUILD_BDB)" != "no"; then \
57 $(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_LDBM) $(BUILD_MONITOR) $(BUILD_CACHE) bdb ; \
59 if test "$(BUILD_HDB)" != "no"; then \
60 $(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_LDBM) $(BUILD_MONITOR) $(BUILD_CACHE) hdb ; \
62 $(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_LDBM) $(BUILD_MONITOR) $(BUILD_CACHE) no ; \
66 echo "run configure with --enable-ldbm" ; \
71 @-$(LN_S) $(srcdir)/data .
72 @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
73 @-$(LN_S) ../libraries/liblunicode ucdata
74 @echo "Initiating LDAP tests..."
75 @-$(MKDIR) test-db test-repl || true
76 @$(srcdir)/scripts/passwd-search $(srcdir) passwd
78 test-nis-schema: test-nis-schema-ldbm
80 @-$(LN_S) $(srcdir)/data .
81 @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
82 @-$(LN_S) ../libraries/liblunicode ucdata
83 @echo "Initiating LDAP server with NIS schema & ldbm backend..."; \
84 $(MKDIR) test-db test-repl ; \
85 $(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) ldbm
88 -$(RM) -r test-db/[!C]* test-repl/[!C]* test-cache/[!C]* *leak *gmon *core
90 veryclean-local: FORCE
91 @-$(RM) data schema ucdata
92 -$(RM) -r test-db test-repl test-cache