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