X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=inline;f=tests%2FMakefile.in;h=642f39446595637a14eb5a9853e8557c2ebebc2c;hb=b34cf024884cf35572d98164381537f256b6dfee;hp=0bd9bc87832ad7fd5d59f95ff98c75ad85489349;hpb=c9eacbdc6407b65b395c13e1e93e8fe25bbbf041;p=openldap diff --git a/tests/Makefile.in b/tests/Makefile.in index 0bd9bc8783..642f394465 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -1,33 +1,57 @@ -## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved. -## COPYING RESTRICTIONS APPLY, see COPYRIGHT file +# Makefile.in for tests +# $OpenLDAP$ +## 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_BDB2 = @BUILD_BDB2@ - -test-bdb2: FORCE - @-$(LN_S) $(srcdir)/data . - @if test "$(BUILD_BDB2)" = "yes" ; then \ - echo "Initiating LDAP tests..." ; \ - $(MKDIR) test-db test-repl ; \ - $(srcdir)/scripts/all $(srcdir) bdb2 ; \ - else \ - echo "run configure with --enable-bdb2" ; \ - fi - -tests: test-ldbm -test: test-ldbm -test-ldbm: FORCE - @-$(LN_S) $(srcdir)/data . - @echo "Initiating LDAP tests..."; \ - $(MKDIR) test-db test-repl ; \ - $(srcdir)/scripts/all $(srcdir) ldbm +BUILD_BDB=@BUILD_BDB@ +BUILD_HDB=@BUILD_HDB@ +BUILD_LDBM=@BUILD_LDBM@ + +test tests: + @$(MAKE) bdb + @$(MAKE) hdb + @$(MAKE) ldbm + +bdb test-bdb: bdb-$(BUILD_BDB) +bdb-no: + @echo "run configure with --enable-bdb" + +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" + +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" + +ldbm-yes ldbm-mod: FORCE + @echo "Initiating LDAP tests for LDBM..." + @$(RUN) -b ldbm all clean-local: FORCE - $(RM) test-db/[!C]* test-repl/[!C]* *core + -$(RM) -r testrun *leak *gmon *core veryclean-local: FORCE - @-$(RM) data - $(RM) -r test-db test-repl + @-$(RM) data schema ucdata