1999-09-01 20:52:43 -04:00
|
|
|
# $OpenLDAP$
|
2003-01-03 15:20:47 -05:00
|
|
|
## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
|
1998-10-24 21:41:42 -04:00
|
|
|
## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
##
|
|
|
|
|
## tests Makefile.in for OpenLDAP
|
1999-02-22 06:28:01 -05:00
|
|
|
SUBDIRS= progs
|
2000-06-05 21:23:17 -04:00
|
|
|
BUILD_LDBM=@BUILD_LDBM@
|
2001-10-04 02:34:03 -04:00
|
|
|
BUILD_BDB=@BUILD_BDB@
|
2002-06-19 02:00:48 -04:00
|
|
|
BUILD_MONITOR=@BUILD_MONITOR@
|
1999-02-15 05:49:20 -05:00
|
|
|
|
1999-04-10 00:42:33 -04:00
|
|
|
test: tests
|
2002-01-15 12:26:44 -05:00
|
|
|
tests: bdb ldbm
|
1999-04-10 00:42:33 -04:00
|
|
|
|
2000-09-28 00:10:35 -04:00
|
|
|
bdb: test-bdb
|
|
|
|
|
test-bdb: FORCE
|
|
|
|
|
@-$(LN_S) $(srcdir)/data .
|
|
|
|
|
@-$(LN_S) $(top_srcdir)/servers/slapd/schema .
|
2000-10-30 15:02:13 -05:00
|
|
|
@-$(LN_S) ../libraries/liblunicode ucdata
|
2001-10-04 02:34:03 -04:00
|
|
|
@if test "$(BUILD_BDB)" = "yes" ; then \
|
2000-09-28 00:10:35 -04:00
|
|
|
echo "Initiating LDAP tests for BDB..." ; \
|
|
|
|
|
$(MKDIR) test-db test-repl || true; \
|
2002-06-19 02:00:48 -04:00
|
|
|
$(srcdir)/scripts/all $(srcdir) bdb $(BUILD_MONITOR) ; \
|
2000-09-28 00:10:35 -04:00
|
|
|
else \
|
|
|
|
|
echo "run configure with --enable-bdb" ; \
|
|
|
|
|
fi
|
|
|
|
|
|
2000-06-05 21:23:17 -04:00
|
|
|
ldbm: test-ldbm
|
|
|
|
|
test-ldbm: FORCE
|
2000-06-06 15:55:26 -04:00
|
|
|
@-$(LN_S) $(srcdir)/data .
|
|
|
|
|
@-$(LN_S) $(top_srcdir)/servers/slapd/schema .
|
2000-10-30 15:02:13 -05:00
|
|
|
@-$(LN_S) ../libraries/liblunicode ucdata
|
2000-06-05 21:23:17 -04:00
|
|
|
@if test "$(BUILD_LDBM)" = "yes" ; then \
|
|
|
|
|
echo "Initiating LDAP tests for LDBM..." ; \
|
1999-04-05 21:00:31 -04:00
|
|
|
$(MKDIR) test-db test-repl || true; \
|
2002-06-19 02:00:48 -04:00
|
|
|
$(srcdir)/scripts/all $(srcdir) ldbm $(BUILD_MONITOR); \
|
1999-02-08 06:42:14 -05:00
|
|
|
else \
|
2000-06-05 21:23:17 -04:00
|
|
|
echo "run configure with --enable-ldbm" ; \
|
1999-02-08 06:42:14 -05:00
|
|
|
fi
|
1998-10-24 21:41:42 -04:00
|
|
|
|
1999-04-29 02:50:00 -04:00
|
|
|
passwd: test-passwd
|
|
|
|
|
test-passwd: FORCE
|
2000-06-06 15:55:26 -04:00
|
|
|
@-$(LN_S) $(srcdir)/data .
|
|
|
|
|
@-$(LN_S) $(top_srcdir)/servers/slapd/schema .
|
2000-10-30 15:02:13 -05:00
|
|
|
@-$(LN_S) ../libraries/liblunicode ucdata
|
1999-04-29 02:50:00 -04:00
|
|
|
@echo "Initiating LDAP tests..."
|
|
|
|
|
@-$(MKDIR) test-db test-repl || true
|
|
|
|
|
@$(srcdir)/scripts/passwd-search $(srcdir) passwd
|
|
|
|
|
|
1999-05-11 23:29:06 -04:00
|
|
|
test-nis-schema: test-nis-schema-ldbm
|
|
|
|
|
test-nis-schema-ldbm:
|
2000-06-06 15:55:26 -04:00
|
|
|
@-$(LN_S) $(srcdir)/data .
|
|
|
|
|
@-$(LN_S) $(top_srcdir)/servers/slapd/schema .
|
2000-10-30 15:02:13 -05:00
|
|
|
@-$(LN_S) ../libraries/liblunicode ucdata
|
1999-05-11 23:29:06 -04:00
|
|
|
@echo "Initiating LDAP server with NIS schema & ldbm backend..."; \
|
|
|
|
|
$(MKDIR) test-db test-repl ; \
|
|
|
|
|
$(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) ldbm
|
|
|
|
|
|
1998-10-24 21:41:42 -04:00
|
|
|
clean-local: FORCE
|
2000-06-26 01:36:39 -04:00
|
|
|
-$(RM) -r test-db/[!C]* test-repl/[!C]* *leak *gmon *core
|
1998-10-24 21:41:42 -04:00
|
|
|
|
1998-11-22 01:24:59 -05:00
|
|
|
veryclean-local: FORCE
|
2000-09-03 19:48:35 -04:00
|
|
|
@-$(RM) data schema ucdata
|
2000-06-10 14:47:27 -04:00
|
|
|
-$(RM) -r test-db test-repl
|
1998-10-24 21:41:42 -04:00
|
|
|
|