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