2 ## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5 ## tests Makefile.in for OpenLDAP
9 BUILD_LDBM=@BUILD_LDBM@
10 BUILD_MONITOR=@BUILD_MONITOR@
11 BUILD_CACHE=@BUILD_CACHE@
18 links: data schema ucdata
20 @-$(LN_S) $(srcdir)/data .
22 @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
24 @-$(LN_S) ../libraries/liblunicode ucdata
26 dirs: test-db test-repl
30 bdb test-bdb: bdb-$(BUILD_BDB)
32 @echo "run configure with --enable-bdb"
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
38 hdb test-hdb: hdb-$(BUILD_HDB)
40 @echo "run configure with --enable-hdb"
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
46 ldbm test-ldbm: ldbm-$(BUILD_LDBM)
48 @echo "run configure with --enable-ldbm"
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 ; \
57 if test "$(BUILD_HDB)" != "no"; then \
58 $(srcdir)/scripts/all $(srcdir) ldbm hdb ; \
60 $(srcdir)/scripts/all $(srcdir) ldbm no ; \
64 passwd test-passwd: links dirs FORCE
65 @echo "Initiating LDAP tests..."
66 @$(srcdir)/scripts/passwd-search $(srcdir) passwd
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
74 -$(RM) -r test-db/[!C]* test-repl/[!C]* test-cache/[!C]* *leak *gmon *core
76 veryclean-local: FORCE
77 @-$(RM) data schema ucdata
78 -$(RM) -r test-db test-repl test-cache