]> git.sur5r.net Git - openldap/blob - tests/Makefile.in
More changes to let BDB build without LDBM.
[openldap] / tests / Makefile.in
1 # $OpenLDAP$
2 ## Copyright 1998-2000 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_LDBM=@BUILD_LDBM@
8 BUILD_BDB=@BUILD_BDB@
9
10 test: tests
11 tests: ldbm
12
13 bdb: test-bdb
14 test-bdb:       FORCE
15         @-$(LN_S) $(srcdir)/data .
16         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
17         @-$(LN_S) ../libraries/liblunicode ucdata
18         @if test "$(BUILD_BDB)" = "yes" ; then \
19                 echo "Initiating LDAP tests for BDB..." ; \
20                 $(MKDIR) test-db test-repl || true; \
21                 $(srcdir)/scripts/all $(srcdir) bdb ; \
22         else \
23                 echo "run configure with --enable-bdb" ; \
24         fi
25
26 ldbm: test-ldbm
27 test-ldbm:      FORCE
28         @-$(LN_S) $(srcdir)/data .
29         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
30         @-$(LN_S) ../libraries/liblunicode ucdata
31         @if test "$(BUILD_LDBM)" = "yes" ; then \
32                 echo "Initiating LDAP tests for LDBM..." ; \
33                 $(MKDIR) test-db test-repl || true; \
34                 $(srcdir)/scripts/all $(srcdir) ldbm ; \
35         else \
36                 echo "run configure with --enable-ldbm" ; \
37         fi
38
39 passwd: test-passwd
40 test-passwd: FORCE
41         @-$(LN_S) $(srcdir)/data .
42         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
43         @-$(LN_S) ../libraries/liblunicode ucdata
44         @echo "Initiating LDAP tests..."
45         @-$(MKDIR) test-db test-repl || true
46         @$(srcdir)/scripts/passwd-search $(srcdir) passwd
47
48 test-nis-schema:        test-nis-schema-ldbm
49 test-nis-schema-ldbm:
50         @-$(LN_S) $(srcdir)/data .
51         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
52         @-$(LN_S) ../libraries/liblunicode ucdata
53         @echo "Initiating LDAP server with NIS schema & ldbm backend..."; \
54         $(MKDIR) test-db test-repl ; \
55         $(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) ldbm
56
57 clean-local:    FORCE
58         -$(RM) -r test-db/[!C]* test-repl/[!C]* *leak *gmon *core
59
60 veryclean-local: FORCE
61         @-$(RM) data schema ucdata
62         -$(RM) -r test-db test-repl
63