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