X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2FMakefile.in;h=a20ba4542089c8545644b2b9f76d59294276fc28;hb=2a14eaf5dd1664414f863b4395b674921e619b09;hp=d75fad857c3605831b1467fdbd19238132437d89;hpb=06b7561096ecd9dea21d6946fc2eedd62a7584a2;p=openldap
diff --git a/tests/Makefile.in b/tests/Makefile.in
index d75fad857c..a20ba45420 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -1,46 +1,67 @@
+# Makefile.in for tests
# $OpenLDAP$
-## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
-## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+## This work is part of OpenLDAP Software .
##
-## tests Makefile.in for OpenLDAP
+## Copyright 1998-2007 The OpenLDAP Foundation.
+## All rights reserved.
+##
+## Redistribution and use in source and binary forms, with or without
+## modification, are permitted only as authorized by the OpenLDAP
+## Public License.
+##
+## A copy of this license is available in the file LICENSE in the
+## top-level directory of the distribution or, alternatively, at
+## .
+
+RUN=./run
SUBDIRS= progs
-BUILD_LDBM=@BUILD_LDBM@
-
-test: tests
-tests: ldbm
-
-ldbm: test-ldbm
-test-ldbm: FORCE
- @-$(LN_S) $(srcdir)/data .
- @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
- @if test "$(BUILD_LDBM)" = "yes" ; then \
- echo "Initiating LDAP tests for LDBM..." ; \
- $(MKDIR) test-db test-repl || true; \
- $(srcdir)/scripts/all $(srcdir) ldbm ; \
- else \
- echo "run configure with --enable-ldbm" ; \
- fi
-
-passwd: test-passwd
-test-passwd: FORCE
- @-$(LN_S) $(srcdir)/data .
- @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
- @echo "Initiating LDAP tests..."
- @-$(MKDIR) test-db test-repl || true
- @$(srcdir)/scripts/passwd-search $(srcdir) passwd
-
-test-nis-schema: test-nis-schema-ldbm
-test-nis-schema-ldbm:
- @-$(LN_S) $(srcdir)/data .
- @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
- @echo "Initiating LDAP server with NIS schema & ldbm backend..."; \
- $(MKDIR) test-db test-repl ; \
- $(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) ldbm
+
+BUILD_BDB=@BUILD_BDB@
+BUILD_HDB=@BUILD_HDB@
+BUILD_SQL=@BUILD_SQL@
+
+# test primary backends (default)
+test tests:
+ @$(MAKE) bdb
+ @$(MAKE) hdb
+
+# test all backends
+alltests: tests
+ @$(MAKE) sql
+
+bdb test-bdb: bdb-$(BUILD_BDB)
+bdb-no:
+ @echo "run configure with --enable-bdb to run BDB tests"
+
+bdb-yes bdb-mod: FORCE
+ @echo "Initiating LDAP tests for BDB..."
+ @$(RUN) -b bdb all
+
+hdb test-hdb: hdb-$(BUILD_HDB)
+hdb-no:
+ @echo "run configure with --enable-hdb to run HDB tests"
+
+hdb-yes hdb-mod: FORCE
+ @echo "Initiating LDAP tests for HDB..."
+ @$(RUN) -b hdb all
+
+sql test-sql: sql-$(BUILD_SQL)
+sql-no:
+ @echo "run configure with --enable-sql to run SQL tests"
+
+sql-yes sql-mod: FORCE
+ @echo "Initiating LDAP tests for SQL..."
+ @$(RUN) -b sql sql-all
+
+regressions: FORCE
+ @echo "Testing (available) ITS regressions"
+ @$(RUN) its-all
+
+its: regressions
clean-local: FORCE
- -$(RM) test-db/[!C]* test-repl/[!C]* *leak *gmon *core
+ -$(RM) -r testrun configpw configpw.conf *leak *gmon *core
veryclean-local: FORCE
- @-$(RM) data schema
- -$(RM) -r test-db test-repl
+ @-$(RM) run testdata schema ucdata