Makefile.in revision 1.1.1.1
1# Makefile.in for tests
2# $OpenLDAP: pkg/ldap/tests/Makefile.in,v 1.60.2.4 2008/02/11 23:26:50 kurt Exp $
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2008 The OpenLDAP Foundation.
6## All rights reserved.
7##
8## Redistribution and use in source and binary forms, with or without
9## modification, are permitted only as authorized by the OpenLDAP
10## Public License.
11##
12## A copy of this license is available in the file LICENSE in the
13## top-level directory of the distribution or, alternatively, at
14## <http://www.OpenLDAP.org/license.html>.
15
16RUN=./run
17SUBDIRS= progs
18
19BUILD_BDB=@BUILD_BDB@
20BUILD_HDB=@BUILD_HDB@
21BUILD_SQL=@BUILD_SQL@
22
23# test primary backends (default)
24test tests:
25	@$(MAKE) bdb
26	@$(MAKE) hdb
27
28# test all backends
29alltests: tests
30	@$(MAKE) sql
31
32bdb test-bdb:	bdb-$(BUILD_BDB)
33bdb-no:
34	@echo "run configure with --enable-bdb to run BDB tests"
35
36bdb-yes bdb-mod: FORCE
37	@echo "Initiating LDAP tests for BDB..."
38	@$(RUN) -b bdb all
39
40hdb test-hdb:	hdb-$(BUILD_HDB)
41hdb-no:
42	@echo "run configure with --enable-hdb to run HDB tests"
43
44hdb-yes hdb-mod: FORCE
45	@echo "Initiating LDAP tests for HDB..."
46	@$(RUN) -b hdb all
47
48sql test-sql:	sql-$(BUILD_SQL)
49sql-no:
50	@echo "run configure with --enable-sql to run SQL tests"
51
52sql-yes sql-mod:	FORCE
53	@echo "Initiating LDAP tests for SQL..."
54	@$(RUN) -b sql sql-all
55
56regressions:	FORCE
57	@echo "Testing (available) ITS regressions"
58	@$(RUN) its-all
59
60its: regressions
61
62clean-local:	FORCE
63	-$(RM) -r testrun configpw configpw.conf *leak *gmon *core
64
65veryclean-local: FORCE
66	@-$(RM) run testdata schema ucdata
67
68