X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2FMakefile.in;h=0b664785ebf1103b2d8acd8267bf98be696bf46c;hb=bc23f5d1dcdbebfddcd2a17cf199d196192f35b1;hp=9fd04e2085e74c28b8e1ca14b2518ab628c288c9;hpb=0e2af54a3ffdeebe3901370683be56fcc53023b0;p=openldap diff --git a/tests/Makefile.in b/tests/Makefile.in index 9fd04e2085..0b664785eb 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -1,63 +1,67 @@ +# Makefile.in for tests # $OpenLDAP$ -## Copyright 1998-2002 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-2004 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@ + BUILD_BDB=@BUILD_BDB@ +BUILD_HDB=@BUILD_HDB@ +BUILD_LDBM=@BUILD_LDBM@ +BUILD_SQL=@BUILD_SQL@ + +test tests: + @$(MAKE) bdb + @$(MAKE) hdb + @$(MAKE) ldbm + @$(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 + +ldbm test-ldbm: ldbm-$(BUILD_LDBM) +ldbm-no: + @echo "run configure with --enable-ldbm to run LDBM tests" + +ldbm-yes ldbm-mod: FORCE + @echo "Initiating LDAP tests for LDBM..." + @$(RUN) -b ldbm all + +sql test-sql: sql-$(BUILD_SQL) +sql-no: + @echo "run configure with --enable-sql to run SQL tests" -test: tests -tests: ldbm - -bdb: test-bdb -test-bdb: FORCE - @-$(LN_S) $(srcdir)/data . - @-$(LN_S) $(top_srcdir)/servers/slapd/schema . - @-$(LN_S) ../libraries/liblunicode ucdata - @if test "$(BUILD_BDB)" = "yes" ; then \ - echo "Initiating LDAP tests for BDB..." ; \ - $(MKDIR) test-db test-repl || true; \ - $(srcdir)/scripts/all $(srcdir) bdb ; \ - else \ - echo "run configure with --enable-bdb" ; \ - fi - -ldbm: test-ldbm -test-ldbm: FORCE - @-$(LN_S) $(srcdir)/data . - @-$(LN_S) $(top_srcdir)/servers/slapd/schema . - @-$(LN_S) ../libraries/liblunicode ucdata - @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 . - @-$(LN_S) ../libraries/liblunicode ucdata - @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 . - @-$(LN_S) ../libraries/liblunicode ucdata - @echo "Initiating LDAP server with NIS schema & ldbm backend..."; \ - $(MKDIR) test-db test-repl ; \ - $(srcdir)/scripts/startup_nis_ldap_server.sh $(srcdir) ldbm +sql-yes sql-mod: FORCE + @echo "Initiating LDAP tests for SQL..." + @$(RUN) -b sql sql-all clean-local: FORCE - -$(RM) -r test-db/[!C]* test-repl/[!C]* *leak *gmon *core + -$(RM) -r testrun *leak *gmon *core veryclean-local: FORCE @-$(RM) data schema ucdata - -$(RM) -r test-db test-repl