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
33 @echo "run configure with --enable-bdb"
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
42 @echo "run configure with --enable-hdb"
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
49 ldbm: ldbm-$(BUILD_LDBM)
51 @echo "run configure with --enable-ldbm"
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 ; \
60 if test "$(BUILD_HDB)" != "no"; then \
61 $(srcdir)/scripts/all $(srcdir) ldbm hdb ; \
63 $(srcdir)/scripts/all $(srcdir) ldbm no ; \
68 test-passwd: links dirs FORCE
69 @echo "Initiating LDAP tests..."
70 @$(srcdir)/scripts/passwd-search $(srcdir) passwd
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
78 -$(RM) -r test-db/[!C]* test-repl/[!C]* test-cache/[!C]* *leak *gmon *core
80 veryclean-local: FORCE
81 @-$(RM) data schema ucdata
82 -$(RM) -r test-db test-repl test-cache