]> git.sur5r.net Git - openldap/blob - tests/Makefile.in
Changes from HEAD for beta
[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) ; \
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) ; \
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                 $(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_LDBM) $(BUILD_MONITOR) $(BUILD_CACHE); \
57         else \
58                 echo "run configure with --enable-ldbm" ; \
59         fi
60
61 passwd: test-passwd
62 test-passwd: FORCE
63         @-$(LN_S) $(srcdir)/data .
64         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
65         @-$(LN_S) ../libraries/liblunicode ucdata
66         @echo "Initiating LDAP tests..."
67         @-$(MKDIR) test-db test-repl || true
68         @$(srcdir)/scripts/passwd-search $(srcdir) passwd
69
70 test-nis-schema:        test-nis-schema-ldbm
71 test-nis-schema-ldbm:
72         @-$(LN_S) $(srcdir)/data .
73         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
74         @-$(LN_S) ../libraries/liblunicode ucdata
75         @echo "Initiating LDAP server with NIS schema & ldbm backend..."; \
76         $(MKDIR) test-db test-repl ; \
77         $(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) ldbm
78
79 clean-local:    FORCE
80         -$(RM) -r test-db/[!C]* test-repl/[!C]* test-cache/[!C]* *leak *gmon *core
81
82 veryclean-local: FORCE
83         @-$(RM) data schema ucdata
84         -$(RM) -r test-db test-repl test-cache
85