]> git.sur5r.net Git - openldap/blob - tests/scripts/defines.sh
add some failed binds (but don't log too much)
[openldap] / tests / scripts / defines.sh
1 #! /bin/sh
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2006 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 MONITORDB=${AC_monitor-no}
17 BACKLDAP=${AC_ldap-ldapno}
18 BACKMETA=${AC_meta-metano}
19 BACKRELAY=${AC_relay-relayno}
20 BACKSQL=${AC_sql-sqlno}
21 RDBMS=${SLAPD_USE_SQL-rdbmsno}
22 RDBMSWRITE=${SLAPD_USE_SQLWRITE-no}
23 ACCESSLOG=${AC_accesslog-accesslogno}
24 DDS=${AC_dds-ddsno}
25 DYNLIST=${AC_dynlist-dynlistno}
26 PROXYCACHE=${AC_pcache-pcacheno}
27 PPOLICY=${AC_ppolicy-ppolicyno}
28 REFINT=${AC_refint-refintno}
29 RETCODE=${AC_retcode-retcodeno}
30 RWM=${AC_rwm-rwmno}
31 SYNCPROV=${AC_syncprov-syncprovno}
32 TRANSLUCENT=${AC_translucent-translucentno}
33 UNIQUE=${AC_unique-uniqueno}
34 VALSORT=${AC_valsort-valsortno}
35 WITH_SASL=${AC_WITH_SASL-no}
36 USE_SASL=${SLAPD_USE_SASL-no}
37 WITHTLS=${AC_WITHTLS-yes}
38 ACI=${AC_ACI_ENABLED-acino}
39 THREADS=${AC_THREADS-threadsno}
40
41 PROGDIR=./progs
42 DATADIR=${USER_DATADIR-./testdata}
43 TESTDIR=${USER_TESTDIR-./testrun}
44 SCHEMADIR=${USER_SCHEMADIR-./schema}
45
46 DBDIR1A=$TESTDIR/db.1.a
47 DBDIR1B=$TESTDIR/db.1.b
48 DBDIR1C=$TESTDIR/db.1.c
49 DBDIR1=$DBDIR1A
50 DBDIR2A=$TESTDIR/db.2.a
51 DBDIR2B=$TESTDIR/db.2.b
52 DBDIR2C=$TESTDIR/db.2.c
53 DBDIR2=$DBDIR2A
54 DBDIR3=$TESTDIR/db.3.a
55 DBDIR4=$TESTDIR/db.4.a
56 DBDIR5=$TESTDIR/db.5.a
57 DBDIR6=$TESTDIR/db.6.a
58 SQLCONCURRENCYDIR=$DATADIR/sql-concurrency
59
60 CONF=$DATADIR/slapd.conf
61 CONFTWO=$DATADIR/slapd2.conf
62 MCONF=$DATADIR/slapd-master.conf
63 COMPCONF=$DATADIR/slapd-component.conf
64 PWCONF=$DATADIR/slapd-pw.conf
65 WHOAMICONF=$DATADIR/slapd-whoami.conf
66 ACLCONF=$DATADIR/slapd-acl.conf
67 RCONF=$DATADIR/slapd-referrals.conf
68 MASTERCONF=$DATADIR/slapd-repl-master.conf
69 SRMASTERCONF=$DATADIR/slapd-syncrepl-master.conf
70 DSRMASTERCONF=$DATADIR/slapd-deltasync-master.conf
71 DSRSLAVECONF=$DATADIR/slapd-deltasync-slave.conf
72 SLAVECONF=$DATADIR/slapd-repl-slave.conf
73 PPOLICYCONF=$DATADIR/slapd-ppolicy.conf
74 PROXYCACHECONF=$DATADIR/slapd-proxycache.conf
75 CACHEMASTERCONF=$DATADIR/slapd-cache-master.conf
76 R1SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-refresh1.conf
77 R2SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-refresh2.conf
78 P1SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist1.conf
79 P2SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist2.conf
80 P3SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist3.conf
81 REFSLAVECONF=$DATADIR/slapd-ref-slave.conf
82 SCHEMACONF=$DATADIR/slapd-schema.conf
83 GLUECONF=$DATADIR/slapd-glue.conf
84 REFINTCONF=$DATADIR/slapd-refint.conf
85 RETCODECONF=$DATADIR/slapd-retcode.conf
86 UNIQUECONF=$DATADIR/slapd-unique.conf
87 LIMITSCONF=$DATADIR/slapd-limits.conf
88 DNCONF=$DATADIR/slapd-dn.conf
89 EMPTYDNCONF=$DATADIR/slapd-emptydn.conf
90 IDASSERTCONF=$DATADIR/slapd-idassert.conf
91 LDAPGLUECONF1=$DATADIR/slapd-ldapglue.conf
92 LDAPGLUECONF2=$DATADIR/slapd-ldapgluepeople.conf
93 LDAPGLUECONF3=$DATADIR/slapd-ldapgluegroups.conf
94 RELAYCONF=$DATADIR/slapd-relay.conf
95 CHAINCONF1=$DATADIR/slapd-chain1.conf
96 CHAINCONF2=$DATADIR/slapd-chain2.conf
97 GLUESYNCCONF1=$DATADIR/slapd-glue-syncrepl1.conf
98 GLUESYNCCONF2=$DATADIR/slapd-glue-syncrepl2.conf
99 SQLCONF=$DATADIR/slapd-sql.conf
100 SQLSRMASTERCONF=$DATADIR/slapd-sql-syncrepl-master.conf
101 TRANSLUCENTLOCALCONF=$DATADIR/slapd-translucent-local.conf
102 TRANSLUCENTREMOTECONF=$DATADIR/slapd-translucent-remote.conf
103 METACONF=$DATADIR/slapd-meta.conf
104 METACONF2=$DATADIR/slapd-meta2.conf
105 GLUELDAPCONF=$DATADIR/slapd-glue-ldap.conf
106 ACICONF=$DATADIR/slapd-aci.conf
107 VALSORTCONF=$DATADIR/slapd-valsort.conf
108 DYNLISTCONF=$DATADIR/slapd-dynlist.conf
109 RSLAVECONF=$DATADIR/slapd-repl-slave-remote.conf
110 PLSRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist-ldap.conf
111 DDSCONF=$DATADIR/slapd-dds.conf
112
113 CONF1=$TESTDIR/slapd.1.conf
114 CONF2=$TESTDIR/slapd.2.conf
115 CONF3=$TESTDIR/slapd.3.conf
116 CONF4=$TESTDIR/slapd.4.conf
117 CONF5=$TESTDIR/slapd.5.conf
118 CONF6=$TESTDIR/slapd.6.conf
119 ADDCONF=$TESTDIR/slapadd.conf
120
121 TOOLARGS="-x $LDAP_TOOLARGS"
122 TOOLPROTO="-P 3"
123
124 PASSWDCONF=$DATADIR/slapd-passwd.conf
125
126 CLIENTDIR=../clients/tools
127 #CLIENTDIR=/usr/local/bin
128
129 LDIFFILTER=$SRCDIR/scripts/acfilter.sh
130 CONFFILTER=$SRCDIR/scripts/conf.sh
131
132 SLAPADD="../servers/slapd/slapd -Ta -d 0 $LDAP_VERBOSE"
133 SLAPCAT="../servers/slapd/slapd -Tc -d 0 $LDAP_VERBOSE"
134 SLAPINDEX="../servers/slapd/slapd -Ti -d 0 $LDAP_VERBOSE"
135
136 unset DIFF_OPTIONS
137 # NOTE: -u/-c is not that portable...
138 DIFF="diff -i"
139 CMP="diff -i"
140 BCMP="diff -iB"
141 CMPOUT=/dev/null
142 SLAPD="../servers/slapd/slapd -s0"
143 SLURPD=../servers/slurpd/slurpd
144 LDAPPASSWD="$CLIENTDIR/ldappasswd $TOOLARGS"
145 LDAPSASLSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $LDAP_TOOLARGS -LLL"
146 LDAPSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS -LLL"
147 LDAPRSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS"
148 LDAPDELETE="$CLIENTDIR/ldapdelete $TOOLPROTO $TOOLARGS"
149 LDAPMODIFY="$CLIENTDIR/ldapmodify $TOOLPROTO $TOOLARGS"
150 LDAPADD="$CLIENTDIR/ldapmodify -a $TOOLPROTO $TOOLARGS"
151 LDAPMODRDN="$CLIENTDIR/ldapmodrdn $TOOLPROTO $TOOLARGS"
152 LDAPWHOAMI="$CLIENTDIR/ldapwhoami $TOOLARGS"
153 LDAPCOMPARE="$CLIENTDIR/ldapcompare $TOOLARGS"
154 LDAPEXOP="$CLIENTDIR/ldapexop $TOOLARGS"
155 SLAPDTESTER=$PROGDIR/slapd-tester
156 LVL=${SLAPD_DEBUG-261}
157 LOCALHOST=localhost
158 BASEPORT=${SLAPD_BASEPORT-9010}
159 PORT1=`expr $BASEPORT + 1`
160 PORT2=`expr $BASEPORT + 2`
161 PORT3=`expr $BASEPORT + 3`
162 PORT4=`expr $BASEPORT + 4`
163 PORT5=`expr $BASEPORT + 5`
164 PORT6=`expr $BASEPORT + 6`
165 URI1="ldap://${LOCALHOST}:$PORT1/"
166 URI2="ldap://${LOCALHOST}:$PORT2/"
167 URI3="ldap://${LOCALHOST}:$PORT3/"
168 URI4="ldap://${LOCALHOST}:$PORT4/"
169 URI5="ldap://${LOCALHOST}:$PORT5/"
170 URI6="ldap://${LOCALHOST}:$PORT6/"
171 LDIF=$DATADIR/test.ldif
172 LDIFGLUED=$DATADIR/test-glued.ldif
173 LDIFORDERED=$DATADIR/test-ordered.ldif
174 LDIFORDEREDCP=$DATADIR/test-ordered-cp.ldif
175 LDIFORDEREDNOCP=$DATADIR/test-ordered-nocp.ldif
176 LDIFBASE=$DATADIR/test-base.ldif
177 LDIFPASSWD=$DATADIR/passwd.ldif
178 LDIFWHOAMI=$DATADIR/test-whoami.ldif
179 LDIFPASSWDOUT=$DATADIR/passwd-out.ldif
180 LDIFPPOLICY=$DATADIR/ppolicy.ldif
181 LDIFLANG=$DATADIR/test-lang.ldif
182 LDIFLANGOUT=$DATADIR/lang-out.ldif
183 LDIFREF=$DATADIR/referrals.ldif
184 LDIFREFINT=$DATADIR/test-refint.ldif
185 LDIFUNIQUE=$DATADIR/test-unique.ldif
186 LDIFLIMITS=$DATADIR/test-limits.ldif
187 LDIFDN=$DATADIR/test-dn.ldif
188 LDIFEMPTYDN1=$DATADIR/test-emptydn1.ldif
189 LDIFEMPTYDN2=$DATADIR/test-emptydn2.ldif
190 LDIFIDASSERT1=$DATADIR/test-idassert1.ldif
191 LDIFIDASSERT2=$DATADIR/test-idassert2.ldif
192 LDIFLDAPGLUE1=$DATADIR/test-ldapglue.ldif
193 LDIFLDAPGLUE2=$DATADIR/test-ldapgluepeople.ldif
194 LDIFLDAPGLUE3=$DATADIR/test-ldapgluegroups.ldif
195 LDIFCOMPMATCH=$DATADIR/test-compmatch.ldif
196 LDIFCHAIN1=$DATADIR/test-chain1.ldif
197 LDIFCHAIN2=$DATADIR/test-chain2.ldif
198 LDIFTRANSLUCENTDATA=$DATADIR/test-translucent-data.ldif
199 LDIFTRANSLUCENTCONFIG=$DATADIR/test-translucent-config.ldif
200 LDIFTRANSLUCENTADD=$DATADIR/test-translucent-add.ldif
201 LDIFTRANSLUCENTMERGED=$DATADIR/test-translucent-merged.ldif
202 LDIFMETA=$DATADIR/test-meta.ldif
203 LDIFVALSORT=$DATADIR/test-valsort.ldif
204 SQLADD=$DATADIR/sql-add.ldif
205 MONITOR=""
206 REFDN="c=US"
207 BASEDN="dc=example,dc=com"
208 MANAGERDN="cn=Manager,dc=example,dc=com"
209 UPDATEDN="cn=Replica,dc=example,dc=com"
210 PASSWD=secret
211 BABSDN="cn=Barbara Jensen,ou=Information Technology DivisioN,OU=People,dc=example,dc=com"
212 BJORNSDN="cn=Bjorn Jensen,ou=Information Technology DivisioN,OU=People,dc=example,dc=com"
213 JAJDN="cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com"
214 JOHNDDN="cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com"
215 MELLIOTDN="cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com"
216 REFINTDN="cn=Manager,o=refint"
217 RETCODEDN="ou=RetCodes,$BASEDN"
218 UNIQUEDN="cn=Manager,o=unique"
219 EMPTYDNDN="cn=Manager,c=US"
220 TRANSLUCENTROOT="o=translucent"
221 TRANSLUCENTUSER="ou=users,o=translucent"
222 TRANSLUCENTDN="uid=binder,o=translucent"
223 TRANSLUCENTPASSWD="bindtest"
224 METABASEDN="ou=Meta,dc=example,dc=com"
225 METAMANAGERDN="cn=Manager,$METABASEDN"
226 VALSORTDN="cn=Manager,o=valsort"
227 VALSORTBASEDN="o=valsort"
228
229 LOG1=$TESTDIR/slapd.1.log
230 LOG2=$TESTDIR/slapd.2.log
231 LOG3=$TESTDIR/slapd.3.log
232 LOG4=$TESTDIR/slapd.4.log
233 LOG5=$TESTDIR/slapd.5.log
234 LOG6=$TESTDIR/slapd.6.log
235 SLAPADDLOG1=$TESTDIR/slapadd.1.log
236 SLURPLOG=$TESTDIR/slurp.log
237
238 SEARCHOUT=$TESTDIR/ldapsearch.out
239 SEARCHOUT2=$TESTDIR/ldapsearch2.out
240 SEARCHFLT=$TESTDIR/ldapsearch.flt
241 SEARCHFLT2=$TESTDIR/ldapsearch2.flt
242 LDIFFLT=$TESTDIR/ldif.flt
243 TESTOUT=$TESTDIR/test.out
244 INITOUT=$TESTDIR/init.out
245 VALSORTOUT1=$DATADIR/valsort1.out
246 VALSORTOUT2=$DATADIR/valsort2.out
247 VALSORTOUT3=$DATADIR/valsort3.out
248
249 SERVER1OUT=$TESTDIR/server1.out
250 SERVER1FLT=$TESTDIR/server1.flt
251 SERVER2OUT=$TESTDIR/server2.out
252 SERVER2FLT=$TESTDIR/server2.flt
253 SERVER3OUT=$TESTDIR/server3.out
254 SERVER3FLT=$TESTDIR/server3.flt
255 SERVER4OUT=$TESTDIR/server4.out
256 SERVER4FLT=$TESTDIR/server4.flt
257 SERVER5OUT=$TESTDIR/server5.out
258 SERVER5FLT=$TESTDIR/server5.flt
259 SERVER6OUT=$TESTDIR/server6.out
260 SERVER6FLT=$TESTDIR/server6.flt
261
262 MASTEROUT=$SERVER1OUT
263 MASTERFLT=$SERVER1FLT
264 SLAVEOUT=$SERVER2OUT
265 SLAVEFLT=$SERVER2FLT
266
267 PROXYCACHEOUT=$DATADIR/proxycache.out
268 REFERRALOUT=$DATADIR/referrals.out
269 SEARCHOUTMASTER=$DATADIR/search.out.master
270 SEARCHOUTX=$DATADIR/search.out.xsearch
271 COMPSEARCHOUT=$DATADIR/compsearch.out
272 MODIFYOUTMASTER=$DATADIR/modify.out.master
273 ADDDELOUTMASTER=$DATADIR/adddel.out.master
274 MODRDNOUTMASTER0=$DATADIR/modrdn.out.master.0
275 MODRDNOUTMASTER1=$DATADIR/modrdn.out.master.1
276 MODRDNOUTMASTER2=$DATADIR/modrdn.out.master.2
277 MODRDNOUTMASTER3=$DATADIR/modrdn.out.master.3
278 ACLOUTMASTER=$DATADIR/acl.out.master
279 REPLOUTMASTER=$DATADIR/repl.out.master
280 MODSRCHFILTERS=$DATADIR/modify.search.filters
281 CERTIFICATETLS=$DATADIR/certificate.tls
282 CERTIFICATEOUT=$DATADIR/certificate.out
283 DNOUT=$DATADIR/dn.out
284 EMPTYDNOUT1=$DATADIR/emptydn.out.slapadd
285 EMPTYDNOUT2=$DATADIR/emptydn.out
286 IDASSERTOUT=$DATADIR/idassert.out
287 LDAPGLUEOUT=$DATADIR/ldapglue.out
288 LDAPGLUEANONYMOUSOUT=$DATADIR/ldapglueanonymous.out
289 RELAYOUT=$DATADIR/relay.out
290 CHAINOUT=$DATADIR/chain.out
291 CHAINREFOUT=$DATADIR/chainref.out
292 CHAINMODOUT=$DATADIR/chainmod.out
293 GLUESYNCOUT=$DATADIR/gluesync.out
294 SQLREAD=$DATADIR/sql-read.out
295 SQLWRITE=$DATADIR/sql-write.out
296 TRANSLUCENTOUT=$DATADIR/translucent.search.out
297 METAOUT=$DATADIR/meta.out
298 METACONCURRENCYOUT=$DATADIR/metaconcurrency.out
299 MANAGEOUT=$DATADIR/manage.out
300 SUBTREERENAMEOUT=$DATADIR/subtree-rename.out
301 ACIOUT=$DATADIR/aci.out
302 DYNLISTOUT=$DATADIR/dynlist.out
303 DDSOUT=$DATADIR/dds.out
304
305 # Just in case we linked the binaries dynamically
306 LD_LIBRARY_PATH=`pwd`/../libraries:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH