]> git.sur5r.net Git - openldap/blob - tests/Makefile.in
Keep from ldbm_sync'ing a DBCache unless it has been changed.
[openldap] / tests / Makefile.in
1 # $OpenLDAP$
2 ## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4 ##
5 ## tests Makefile.in for OpenLDAP
6 SUBDIRS= progs
7
8 BUILD_BDB2 = @BUILD_BDB2@
9
10 test: tests
11 tests: bdb2 ldbm
12
13 bdb2: test-bdb2
14 test-bdb2:      FORCE
15         @-$(LN_S) $(srcdir)/data data
16         @-$(LN_S) $(top_srcdir)/servers/slapd/schema schema 
17         @if test "$(BUILD_BDB2)" = "yes" ; then \
18                 echo "Initiating LDAP tests..." ; \
19                 $(MKDIR) test-db test-repl || true; \
20                 $(srcdir)/scripts/all $(srcdir) bdb2 ; \
21         else \
22                 echo "run configure with --enable-bdb2" ; \
23         fi
24
25 ldbm: test-ldbm
26 test-ldbm:      FORCE
27         @-$(LN_S) $(srcdir)/data data
28         @-$(LN_S) $(top_srcdir)/servers/slapd/schema schema 
29         @echo "Initiating LDAP tests..."
30         @-$(MKDIR) test-db test-repl || true
31         @$(srcdir)/scripts/all $(srcdir) ldbm
32
33 passwd: test-passwd
34 test-passwd: FORCE
35         @-$(LN_S) $(srcdir)/data data
36         @-$(LN_S) $(top_srcdir)/servers/slapd/schema schema 
37         @echo "Initiating LDAP tests..."
38         @-$(MKDIR) test-db test-repl || true
39         @$(srcdir)/scripts/passwd-search $(srcdir) passwd
40
41 test-nis-schema:        test-nis-schema-ldbm
42 test-nis-schema-ldbm:
43         @-$(LN_S) $(srcdir)/data data
44         @-$(LN_S) $(top_srcdir)/servers/slapd/schema schema 
45         @echo "Initiating LDAP server with NIS schema & ldbm backend..."; \
46         $(MKDIR) test-db test-repl ; \
47         $(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) ldbm
48
49 test-nis-schema-bdb2:
50         @-$(LN_S) $(srcdir)/data data
51         @-$(LN_S) $(top_srcdir)/servers/slapd/schema schema 
52         @echo "Initiating LDAP server with NIS schema & DB2 backend..."; \
53         @if test "$(BUILD_BDB2)" = "yes" ; then \
54                 echo "Initiating LDAP tests..." ; \
55                 $(MKDIR) test-db test-repl ; \
56                 $(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) bdb2 ; \
57         else \
58                 echo "run configure with --enable-bdb2" ; \
59         fi
60
61 clean-local:    FORCE
62         -$(RM) test-db/[!C]* test-repl/[!C]* *leak *gmon *core
63
64 veryclean-local: FORCE
65         @-$(RM) data schema
66         $(RM) -r test-db test-repl
67