]> git.sur5r.net Git - openldap/blob - tests/Makefile.in
d75fad857c3605831b1467fdbd19238132437d89
[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 BUILD_LDBM=@BUILD_LDBM@
8
9 test: tests
10 tests: ldbm
11
12 ldbm: test-ldbm
13 test-ldbm:      FORCE
14         @-$(LN_S) $(srcdir)/data .
15         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
16         @if test "$(BUILD_LDBM)" = "yes" ; then \
17                 echo "Initiating LDAP tests for LDBM..." ; \
18                 $(MKDIR) test-db test-repl || true; \
19                 $(srcdir)/scripts/all $(srcdir) ldbm ; \
20         else \
21                 echo "run configure with --enable-ldbm" ; \
22         fi
23
24 passwd: test-passwd
25 test-passwd: FORCE
26         @-$(LN_S) $(srcdir)/data .
27         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
28         @echo "Initiating LDAP tests..."
29         @-$(MKDIR) test-db test-repl || true
30         @$(srcdir)/scripts/passwd-search $(srcdir) passwd
31
32 test-nis-schema:        test-nis-schema-ldbm
33 test-nis-schema-ldbm:
34         @-$(LN_S) $(srcdir)/data .
35         @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
36         @echo "Initiating LDAP server with NIS schema & ldbm backend..."; \
37         $(MKDIR) test-db test-repl ; \
38         $(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) ldbm
39
40 clean-local:    FORCE
41         -$(RM) test-db/[!C]* test-repl/[!C]* *leak *gmon *core
42
43 veryclean-local: FORCE
44         @-$(RM) data schema
45         -$(RM) -r test-db test-repl
46