]> git.sur5r.net Git - openldap/blob - tests/scripts/defines.sh
2a4aca3887cb29b5c5474df2f72df1e061709ca6
[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-2004 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 BACKRELAY=${AC_relay-relayno}
19 BACKSQL=${AC_sql-sqlno}
20 RDBMS=${SLAPD_USE_SQL-rdbmsno}
21 RDBMSWRITE=${SLAPD_USE_SQLWRITE-no}
22 PROXYCACHE=${AC_pcache-pcacheno}
23 PPOLICY=${AC_ppolicy-ppolicyno}
24 REFINT=${AC_refint-refintno}
25 UNIQUE=${AC_unique-uniqueno}
26 RWM=${AC_rwm-rwmno}
27 WITH_SASL=${AC_WITH_SASL-no}
28 USE_SASL=${SLAPD_USE_SASL-no}
29 WITHTLS=${AC_WITHTLS-yes}
30
31 DATADIR=./testdata
32 PROGDIR=./progs
33 TESTDIR=./testrun
34
35 DBDIR1A=$TESTDIR/db.1.a
36 DBDIR1B=$TESTDIR/db.1.b
37 DBDIR1C=$TESTDIR/db.1.c
38 DBDIR1=$DBDIR1A
39 DBDIR2=$TESTDIR/db.2.a
40 DBDIR3=$TESTDIR/db.3.a
41 DBDIR4=$TESTDIR/db.4.a
42 DBDIR5=$TESTDIR/db.5.a
43 DBDIR6=$TESTDIR/db.6.a
44
45 CONF=$DATADIR/slapd.conf
46 CONFTWO=$DATADIR/slapd2.conf
47 MCONF=$DATADIR/slapd-master.conf
48 PWCONF=$DATADIR/slapd-pw.conf
49 WHOAMICONF=$DATADIR/slapd-whoami.conf
50 ACLCONF=$DATADIR/slapd-acl.conf
51 RCONF=$DATADIR/slapd-referrals.conf
52 MASTERCONF=$DATADIR/slapd-repl-master.conf
53 SRMASTERCONF=$DATADIR/slapd-syncrepl-master.conf
54 SLAVECONF=$DATADIR/slapd-repl-slave.conf
55 PPOLICYCONF=$DATADIR/slapd-ppolicy.conf
56 PROXYCACHECONF=$DATADIR/slapd-proxycache.conf
57 CACHEMASTERCONF=$DATADIR/slapd-cache-master.conf
58 R1SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-refresh1.conf
59 R2SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-refresh2.conf
60 P1SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist1.conf
61 P2SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist2.conf
62 P3SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist3.conf
63 REFSLAVECONF=$DATADIR/slapd-ref-slave.conf
64 SCHEMACONF=$DATADIR/slapd-schema.conf
65 GLUECONF=$DATADIR/slapd-glue.conf
66 REFINTCONF=$DATADIR/slapd-refint.conf
67 UNIQUECONF=$DATADIR/slapd-unique.conf
68 LIMITSCONF=$DATADIR/slapd-limits.conf
69 DNCONF=$DATADIR/slapd-dn.conf
70 EMPTYDNCONF=$DATADIR/slapd-emptydn.conf
71 IDASSERTCONF=$DATADIR/slapd-idassert.conf
72 LDAPGLUECONF1=$DATADIR/slapd-ldapglue.conf
73 LDAPGLUECONF2=$DATADIR/slapd-ldapgluepeople.conf
74 LDAPGLUECONF3=$DATADIR/slapd-ldapgluegroups.conf
75 RWMCONF=$DATADIR/slapd-relay.conf
76 SQLCONF=$DATADIR/slapd-sql.conf
77
78 CONF1=$TESTDIR/slapd.1.conf
79 CONF2=$TESTDIR/slapd.2.conf
80 CONF3=$TESTDIR/slapd.3.conf
81 CONF4=$TESTDIR/slapd.4.conf
82 CONF5=$TESTDIR/slapd.5.conf
83 CONF6=$TESTDIR/slapd.6.conf
84 ADDCONF=$TESTDIR/slapadd.conf
85
86 TOOLARGS="-x $LDAP_TOOLARGS"
87 TOOLPROTO="-P 3"
88
89 PASSWDCONF=$DATADIR/slapd-passwd.conf
90
91 CLIENTDIR=../clients/tools
92 #CLIENTDIR=/usr/local/bin
93
94 LDIFFILTER=$SRCDIR/scripts/acfilter.sh
95 CONFFILTER=$SRCDIR/scripts/conf.sh
96
97 SLAPADD="../servers/slapd/slapd -Ta $LDAP_VERBOSE"
98 SLAPCAT="../servers/slapd/slapd -Tc $LDAP_VERBOSE"
99 SLAPINDEX="../servers/slapd/slapd -Ti $LDAP_VERBOSE"
100
101 unset DIFF_OPTIONS
102 DIFF="diff -iu"
103 CMP="diff -i"
104 BCMP="diff -iB"
105 CMPOUT=/dev/null
106 SLAPD="../servers/slapd/slapd -s0"
107 SLURPD=../servers/slurpd/slurpd
108 LDAPPASSWD="$CLIENTDIR/ldappasswd $TOOLARGS"
109 LDAPSASLSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $LDAP_TOOLARGS -LLL"
110 LDAPSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS -LLL"
111 LDAPRSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS"
112 LDAPMODIFY="$CLIENTDIR/ldapmodify $TOOLPROTO $TOOLARGS"
113 LDAPADD="$CLIENTDIR/ldapmodify -a $TOOLPROTO $TOOLARGS"
114 LDAPMODRDN="$CLIENTDIR/ldapmodrdn $TOOLPROTO $TOOLARGS"
115 LDAPWHOAMI="$CLIENTDIR/ldapwhoami $TOOLARGS"
116 LDAPCOMPARE="$CLIENTDIR/ldapcompare $TOOLARGS"
117 SLAPDTESTER=$PROGDIR/slapd-tester
118 LVL=${SLAPD_DEBUG-261}
119 LOCALHOST=localhost
120 BASEPORT=${SLAPD_BASEPORT-9010}
121 PORT1=`expr $BASEPORT + 1`
122 PORT2=`expr $BASEPORT + 2`
123 PORT3=`expr $BASEPORT + 3`
124 PORT4=`expr $BASEPORT + 4`
125 PORT5=`expr $BASEPORT + 5`
126 PORT6=`expr $BASEPORT + 6`
127 URI1="ldap://${LOCALHOST}:$PORT1/"
128 URI2="ldap://${LOCALHOST}:$PORT2/"
129 URI3="ldap://${LOCALHOST}:$PORT3/"
130 URI4="ldap://${LOCALHOST}:$PORT4/"
131 URI5="ldap://${LOCALHOST}:$PORT5/"
132 URI6="ldap://${LOCALHOST}:$PORT6/"
133 LDIF=$DATADIR/test.ldif
134 LDIFGLUED=$DATADIR/test-glued.ldif
135 LDIFORDERED=$DATADIR/test-ordered.ldif
136 LDIFORDEREDCP=$DATADIR/test-ordered-cp.ldif
137 LDIFORDEREDNOCP=$DATADIR/test-ordered-nocp.ldif
138 LDIFBASE=$DATADIR/test-base.ldif
139 LDIFPASSWD=$DATADIR/passwd.ldif
140 LDIFWHOAMI=$DATADIR/test-whoami.ldif
141 LDIFPASSWDOUT=$DATADIR/passwd-out.ldif
142 LDIFPPOLICY=$DATADIR/ppolicy.ldif
143 LDIFLANG=$DATADIR/test-lang.ldif
144 LDIFLANGOUT=$DATADIR/lang-out.ldif
145 LDIFREF=$DATADIR/referrals.ldif
146 LDIFREFINT=$DATADIR/test-refint.ldif
147 LDIFUNIQUE=$DATADIR/test-unique.ldif
148 LDIFLIMITS=$DATADIR/test-limits.ldif
149 LDIFDN=$DATADIR/test-dn.ldif
150 LDIFEMPTYDN1=$DATADIR/test-emptydn1.ldif
151 LDIFEMPTYDN2=$DATADIR/test-emptydn2.ldif
152 LDIFIDASSERT1=$DATADIR/test-idassert1.ldif
153 LDIFIDASSERT2=$DATADIR/test-idassert2.ldif
154 LDIFLDAPGLUE1=$DATADIR/test-ldapglue.ldif
155 LDIFLDAPGLUE2=$DATADIR/test-ldapgluepeople.ldif
156 LDIFLDAPGLUE3=$DATADIR/test-ldapgluegroups.ldif
157 MONITOR=""
158 REFDN="c=US"
159 BASEDN="dc=example,dc=com"
160 MANAGERDN="cn=Manager,dc=example,dc=com"
161 UPDATEDN="cn=Replica,dc=example,dc=com"
162 PASSWD=secret
163 BABSDN="cn=Barbara Jensen,ou=Information Technology DivisioN,OU=People,dc=example,dc=com"
164 BJORNSDN="cn=Bjorn Jensen,ou=Information Technology DivisioN,OU=People,dc=example,dc=com"
165 JAJDN="cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com"
166 REFINTDN="cn=Manager,o=refint"
167 UNIQUEDN="cn=Manager,o=unique"
168 EMPTYDNDN="cn=Manager,c=US"
169
170 LOG1=$TESTDIR/slapd.1.log
171 LOG2=$TESTDIR/slapd.2.log
172 LOG3=$TESTDIR/slapd.3.log
173 LOG4=$TESTDIR/slapd.4.log
174 LOG5=$TESTDIR/slapd.5.log
175 LOG6=$TESTDIR/slapd.6.log
176 SLAPADDLOG1=$TESTDIR/slapadd.1.log
177 SLURPLOG=$TESTDIR/slurp.log
178
179 SEARCHOUT=$TESTDIR/ldapsearch.out
180 SEARCHFLT=$TESTDIR/ldapsearch.flt
181 LDIFFLT=$TESTDIR/ldif.flt
182 TESTOUT=$TESTDIR/test.out
183 INITOUT=$TESTDIR/init.out
184
185 SERVER1OUT=$TESTDIR/server1.out
186 SERVER1FLT=$TESTDIR/server1.flt
187 SERVER2OUT=$TESTDIR/server2.out
188 SERVER2FLT=$TESTDIR/server2.flt
189 SERVER3OUT=$TESTDIR/server3.out
190 SERVER3FLT=$TESTDIR/server3.flt
191 SERVER4OUT=$TESTDIR/server4.out
192 SERVER4FLT=$TESTDIR/server4.flt
193 SERVER5OUT=$TESTDIR/server5.out
194 SERVER5FLT=$TESTDIR/server5.flt
195 SERVER6OUT=$TESTDIR/server6.out
196 SERVER6FLT=$TESTDIR/server6.flt
197
198 MASTEROUT=$SERVER1OUT
199 MASTERFLT=$SERVER1FLT
200 SLAVEOUT=$SERVER2OUT
201 SLAVEFLT=$SERVER2FLT
202
203 PROXYCACHEOUT=$DATADIR/proxycache.out
204 REFERRALOUT=$DATADIR/referrals.out
205 SEARCHOUTMASTER=$DATADIR/search.out.master
206 SEARCHOUTX=$DATADIR/search.out.xsearch
207 MODIFYOUTMASTER=$DATADIR/modify.out.master
208 ADDDELOUTMASTER=$DATADIR/adddel.out.master
209 MODRDNOUTMASTER0=$DATADIR/modrdn.out.master.0
210 MODRDNOUTMASTER1=$DATADIR/modrdn.out.master.1
211 MODRDNOUTMASTER2=$DATADIR/modrdn.out.master.2
212 MODRDNOUTMASTER3=$DATADIR/modrdn.out.master.3
213 ACLOUTMASTER=$DATADIR/acl.out.master
214 REPLOUTMASTER=$DATADIR/repl.out.master
215 MODSRCHFILTERS=$DATADIR/modify.search.filters
216 CERTIFICATETLS=$DATADIR/certificate.tls
217 CERTIFICATEOUT=$DATADIR/certificate.out
218 DNOUT=$DATADIR/dn.out
219 EMPTYDNOUT1=$DATADIR/emptydn.out.slapadd
220 EMPTYDNOUT2=$DATADIR/emptydn.out
221 IDASSERTOUT=$DATADIR/idassert.out
222 LDAPGLUEOUT=$DATADIR/ldapglue.out
223 LDAPGLUEANONYMOUSOUT=$DATADIR/ldapglueanonymous.out
224 RELAYOUT=$DATADIR/relay.out
225 SQLREAD=$DATADIR/sql-read.out
226 SQLWRITE=$DATADIR/sql-write.out
227
228 # Just in case we linked the binaries dynamically
229 LD_LIBRARY_PATH=`pwd`/../libraries:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH