1 # Makefile.in for tests 2 # $OpenLDAP$ 3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>. 4 ## 5 ## Copyright 1998-2024 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 16 RUN=./run 17 SUBDIRS= progs 18 19 BUILD_MDB=@BUILD_MDB@ 20 BUILD_SQL=@BUILD_SQL@ 21 BUILD_SLAPD=@BUILD_SLAPD@ 22 BUILD_BALANCER=@BUILD_BALANCER@ 23 BUILD_WT=@BUILD_WT@ 24 25 # test primary backends (default) 26 test tests: 27 @$(MAKE) mdb 28 @$(MAKE) lloadd 29 30 # test all backends 31 alltests: tests 32 @$(MAKE) sql 33 @$(MAKE) ldif 34 @$(MAKE) wt 35 36 # parallel test targets 37 partests: pmdb plloadd psql pldif pwt 38 39 pmdb: 40 @$(MAKE) mdb TESTINST=0 > testout.0 41 42 plloadd: 43 @$(MAKE) lloadd TESTINST=1 > testout.1 44 45 psql: 46 @$(MAKE) sql TESTINST=2 > testout.2 47 48 pldif: 49 @$(MAKE) ldif TESTINST=3 > testout.3 50 51 pwt: 52 @$(MAKE) wt TESTINST=4 > testout.4 53 54 mdb test-mdb: mdb-$(BUILD_MDB) 55 mdb-no: 56 @echo "run configure with --enable-mdb to run MDB tests" 57 58 mdb-yes mdb-mod: FORCE 59 @echo "Initiating LDAP tests for MDB..." 60 @$(RUN) -b mdb all 61 62 sql test-sql: sql-$(BUILD_SQL) 63 sql-no: 64 @echo "run configure with --enable-sql to run SQL tests" 65 66 sql-yes sql-mod: FORCE 67 @echo "Initiating LDAP tests for SQL..." 68 @$(RUN) -b sql sql-all 69 70 ldif test-ldif: FORCE 71 @echo "Initiating LDAP tests for LDIF..." 72 @$(RUN) -b ldif all 73 74 wt test-wt: wt-$(BUILD_WT) 75 wt-no: 76 @echo "run configure with --enable-wt to run back-wt tests" 77 78 wt-yes wt-mod: FORCE 79 @$(RUN) -b wt all 80 81 lloadd test-lloadd: lloadd-$(BUILD_BALANCER) 82 lloadd-no: 83 @echo "run configure with --enable-balancer to run the Load Balancer tests" 84 85 lloadd-yes lloadd-mod: lloadd-slapd-$(BUILD_SLAPD) 86 87 lloadd-slapd-no: 88 @echo "run configure with --enable-slapd to run the Load Balancer tests" 89 90 lloadd-slapd-yes: FORCE 91 @echo "Initiating LDAP tests for the Load Balancer..." 92 @$(RUN) lloadd-all 93 94 regressions: FORCE 95 @echo "Testing (available) ITS regressions" 96 @$(MAKE) mdb-its 97 98 its: regressions 99 100 mdb-its: mdb-its-$(BUILD_MDB) 101 mdb-its-no: 102 @echo "run configure with --enable-mdb to run MDB ITS regressions" 103 104 mdb-its-yes mdb-its-mod: FORCE 105 @$(RUN) -b mdb its-all 106 107 clean-local: FORCE 108 -$(RM) -r testrun configpw configpw.conf *leak *gmon *core 109 110 veryclean-local: FORCE 111 @-$(RM) run testdata schema ucdata 112 113