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