2003-11-25 21:58:56 -05:00
|
|
|
# Makefile.in for tests
|
1999-09-01 20:52:43 -04:00
|
|
|
# $OpenLDAP$
|
2003-11-28 15:00:23 -05:00
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
|
##
|
2024-03-26 15:45:07 -04:00
|
|
|
## Copyright 1998-2024 The OpenLDAP Foundation.
|
2003-11-25 21:58:56 -05:00
|
|
|
## All rights reserved.
|
1998-10-24 21:41:42 -04:00
|
|
|
##
|
2003-11-25 21:58:56 -05:00
|
|
|
## 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
|
|
|
|
|
## <http://www.OpenLDAP.org/license.html>.
|
|
|
|
|
|
2003-10-20 23:08:08 -04:00
|
|
|
RUN=./run
|
2019-07-16 13:18:38 -04:00
|
|
|
SUBDIRS= modules progs
|
2003-10-20 23:08:08 -04:00
|
|
|
|
2018-01-11 10:43:18 -05:00
|
|
|
BUILD_SLAPD=@BUILD_SLAPD@
|
2017-05-25 10:48:43 -04:00
|
|
|
BUILD_BALANCER=@BUILD_BALANCER@
|
1999-02-15 05:49:20 -05:00
|
|
|
|
2005-10-06 15:17:42 -04:00
|
|
|
# test primary backends (default)
|
2003-10-13 05:56:25 -04:00
|
|
|
test tests:
|
2011-09-01 19:56:56 -04:00
|
|
|
@$(MAKE) mdb
|
2017-05-25 10:48:43 -04:00
|
|
|
@$(MAKE) lloadd
|
2005-10-06 15:17:42 -04:00
|
|
|
|
|
|
|
|
# test all backends
|
|
|
|
|
alltests: tests
|
2004-08-24 05:26:39 -04:00
|
|
|
@$(MAKE) sql
|
2011-11-20 07:53:35 -05:00
|
|
|
@$(MAKE) ldif
|
2021-02-10 08:56:09 -05:00
|
|
|
@$(MAKE) wt
|
2003-06-23 10:11:29 -04:00
|
|
|
|
2021-08-13 09:41:53 -04:00
|
|
|
# parallel test targets
|
|
|
|
|
partests: pmdb plloadd psql pldif pwt
|
|
|
|
|
|
|
|
|
|
pmdb:
|
|
|
|
|
@$(MAKE) mdb TESTINST=0 > testout.0
|
|
|
|
|
|
|
|
|
|
plloadd:
|
|
|
|
|
@$(MAKE) lloadd TESTINST=1 > testout.1
|
|
|
|
|
|
|
|
|
|
psql:
|
|
|
|
|
@$(MAKE) sql TESTINST=2 > testout.2
|
|
|
|
|
|
|
|
|
|
pldif:
|
|
|
|
|
@$(MAKE) ldif TESTINST=3 > testout.3
|
|
|
|
|
|
|
|
|
|
pwt:
|
|
|
|
|
@$(MAKE) wt TESTINST=4 > testout.4
|
|
|
|
|
|
2011-09-01 19:56:56 -04:00
|
|
|
mdb test-mdb: mdb-$(BUILD_MDB)
|
|
|
|
|
mdb-no:
|
|
|
|
|
@echo "run configure with --enable-mdb to run MDB tests"
|
|
|
|
|
|
|
|
|
|
mdb-yes mdb-mod: FORCE
|
|
|
|
|
@echo "Initiating LDAP tests for MDB..."
|
|
|
|
|
@$(RUN) -b mdb all
|
|
|
|
|
|
2004-08-24 05:26:39 -04:00
|
|
|
sql test-sql: sql-$(BUILD_SQL)
|
|
|
|
|
sql-no:
|
2004-08-29 22:57:22 -04:00
|
|
|
@echo "run configure with --enable-sql to run SQL tests"
|
2004-08-24 05:26:39 -04:00
|
|
|
|
|
|
|
|
sql-yes sql-mod: FORCE
|
|
|
|
|
@echo "Initiating LDAP tests for SQL..."
|
|
|
|
|
@$(RUN) -b sql sql-all
|
|
|
|
|
|
2009-11-29 06:46:48 -05:00
|
|
|
ldif test-ldif: FORCE
|
|
|
|
|
@echo "Initiating LDAP tests for LDIF..."
|
|
|
|
|
@$(RUN) -b ldif all
|
|
|
|
|
|
2021-02-10 08:56:09 -05:00
|
|
|
wt test-wt: wt-$(BUILD_WT)
|
|
|
|
|
wt-no:
|
|
|
|
|
@echo "run configure with --enable-wt to run back-wt tests"
|
|
|
|
|
|
|
|
|
|
wt-yes wt-mod: FORCE
|
|
|
|
|
@$(RUN) -b wt all
|
|
|
|
|
|
2017-05-25 10:48:43 -04:00
|
|
|
lloadd test-lloadd: lloadd-$(BUILD_BALANCER)
|
|
|
|
|
lloadd-no:
|
|
|
|
|
@echo "run configure with --enable-balancer to run the Load Balancer tests"
|
|
|
|
|
|
2018-01-24 12:48:29 -05:00
|
|
|
lloadd-yes lloadd-mod: lloadd-slapd-$(BUILD_SLAPD)
|
2018-01-11 10:43:18 -05:00
|
|
|
|
|
|
|
|
lloadd-slapd-no:
|
|
|
|
|
@echo "run configure with --enable-slapd to run the Load Balancer tests"
|
|
|
|
|
|
|
|
|
|
lloadd-slapd-yes: FORCE
|
2017-05-25 10:48:43 -04:00
|
|
|
@echo "Initiating LDAP tests for the Load Balancer..."
|
|
|
|
|
@$(RUN) lloadd-all
|
|
|
|
|
|
2005-12-20 14:46:07 -05:00
|
|
|
regressions: FORCE
|
|
|
|
|
@echo "Testing (available) ITS regressions"
|
2016-12-12 15:22:40 -05:00
|
|
|
@$(MAKE) mdb-its
|
2005-12-20 14:46:07 -05:00
|
|
|
|
|
|
|
|
its: regressions
|
|
|
|
|
|
2017-01-20 14:41:47 -05:00
|
|
|
mdb-its: mdb-its-$(BUILD_MDB)
|
2016-12-12 15:22:40 -05:00
|
|
|
mdb-its-no:
|
2017-01-20 14:41:47 -05:00
|
|
|
@echo "run configure with --enable-mdb to run MDB ITS regressions"
|
2016-12-12 15:22:40 -05:00
|
|
|
|
|
|
|
|
mdb-its-yes mdb-its-mod: FORCE
|
|
|
|
|
@$(RUN) -b mdb its-all
|
|
|
|
|
|
1998-10-24 21:41:42 -04:00
|
|
|
clean-local: FORCE
|
2007-05-18 11:32:50 -04:00
|
|
|
-$(RM) -r testrun configpw configpw.conf *leak *gmon *core
|
1998-10-24 21:41:42 -04:00
|
|
|
|
1998-11-22 01:24:59 -05:00
|
|
|
veryclean-local: FORCE
|
2005-08-17 18:05:44 -04:00
|
|
|
@-$(RM) run testdata schema ucdata
|
1998-10-24 21:41:42 -04:00
|
|
|
|