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