]> git.sur5r.net Git - openldap/blob - tests/Makefile.in
3184786344c92f0506fb447a67e9908e38cb69e1
[openldap] / tests / Makefile.in
1 # $OpenLDAP$
2 ## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4 ##
5 ## tests Makefile.in for OpenLDAP
6 SUBDIRS= progs
7 BUILD_BDB=@BUILD_BDB@
8 BUILD_HDB=@BUILD_HDB@
9 BUILD_LDBM=@BUILD_LDBM@
10 BUILD_MONITOR=@BUILD_MONITOR@
11 BUILD_CACHE=@BUILD_CACHE@
12
13 test: tests
14 tests: int-bdb
15
16 int-bdb: test-bdb
17         @$(MAKE) int-hdb
18 int-hdb: test-hdb
19         @$(MAKE) int-ldbm
20 int-ldbm: test-ldbm
21
22 bdb: test-bdb
23 test-bdb:       FORCE
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 ; \
31         else \
32                 echo "run configure with --enable-bdb" ; \
33         fi
34
35 hdb: test-hdb
36 test-hdb:       FORCE
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 ; \
44         else \
45                 echo "run configure with --enable-hdb" ; \
46         fi
47
48 ldbm: test-ldbm
49 test-ldbm:      FORCE
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 ; \
58                 else \
59                         if test "$(BUILD_HDB)" != "no"; then \
60                                 $(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_LDBM) $(BUILD_MONITOR) $(BUILD_CACHE) hdb ; \
61                         else \
62                                 $(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_LDBM) $(BUILD_MONITOR) $(BUILD_CACHE) no ; \
63                         fi ; \
64                 fi ; \
65         else \
66                 echo "run configure with --enable-ldbm" ; \
67         fi
68
69 passwd: test-passwd
70 test-passwd: FORCE
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
77
78 test-nis-schema:        test-nis-schema-ldbm
79 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
86
87 clean-local:    FORCE
88         -$(RM) -r test-db/[!C]* test-repl/[!C]* test-cache/[!C]* *leak *gmon *core
89
90 veryclean-local: FORCE
91         @-$(RM) data schema ucdata
92         -$(RM) -r test-db test-repl test-cache
93