]> git.sur5r.net Git - openldap/blob - tests/Makefile.in
39cedf75959cbe93546deaa96df53aec71c4d616
[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
12 test: tests
13 tests: bdb hdb ldbm
14
15 bdb: test-bdb
16 test-bdb:       FORCE
17         @-$(LN_S) $(srcdir)/data .
18         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
19         @-$(LN_S) ../libraries/liblunicode ucdata
20         @if test "$(BUILD_BDB)" = "yes" ; then \
21                 echo "Initiating LDAP tests for BDB..." ; \
22                 $(MKDIR) test-db test-repl || true; \
23                 $(srcdir)/scripts/all $(srcdir) bdb $(BUILD_MONITOR) ; \
24         else \
25                 echo "run configure with --enable-bdb" ; \
26         fi
27
28 hdb: test-hdb
29 test-hdb:       FORCE
30         @-$(LN_S) $(srcdir)/data .
31         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
32         @-$(LN_S) ../libraries/liblunicode ucdata
33         @if test "$(BUILD_HDB)" = "yes" ; then \
34                 echo "Initiating LDAP tests for HDB..." ; \
35                 $(MKDIR) test-db test-repl || true; \
36                 $(srcdir)/scripts/all $(srcdir) hdb $(BUILD_MONITOR) ; \
37         else \
38                 echo "run configure with --enable-hdb" ; \
39         fi
40
41 ldbm: test-ldbm
42 test-ldbm:      FORCE
43         @-$(LN_S) $(srcdir)/data .
44         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
45         @-$(LN_S) ../libraries/liblunicode ucdata
46         @if test "$(BUILD_LDBM)" = "yes" ; then \
47                 echo "Initiating LDAP tests for LDBM..." ; \
48                 $(MKDIR) test-db test-repl || true; \
49                 $(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_MONITOR); \
50         else \
51                 echo "run configure with --enable-ldbm" ; \
52         fi
53
54 passwd: test-passwd
55 test-passwd: FORCE
56         @-$(LN_S) $(srcdir)/data .
57         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
58         @-$(LN_S) ../libraries/liblunicode ucdata
59         @echo "Initiating LDAP tests..."
60         @-$(MKDIR) test-db test-repl || true
61         @$(srcdir)/scripts/passwd-search $(srcdir) passwd
62
63 test-nis-schema:        test-nis-schema-ldbm
64 test-nis-schema-ldbm:
65         @-$(LN_S) $(srcdir)/data .
66         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
67         @-$(LN_S) ../libraries/liblunicode ucdata
68         @echo "Initiating LDAP server with NIS schema & ldbm backend..."; \
69         $(MKDIR) test-db test-repl ; \
70         $(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) ldbm
71
72 clean-local:    FORCE
73         -$(RM) -r test-db/[!C]* test-repl/[!C]* *leak *gmon *core
74
75 veryclean-local: FORCE
76         @-$(RM) data schema ucdata
77         -$(RM) -r test-db test-repl
78