]> git.sur5r.net Git - openldap/blob - tests/scripts/defines.sh
f88faf8e964d1586da166fc2f4bdb29e876561c6
[openldap] / tests / scripts / defines.sh
1 #! /bin/sh
2 # $OpenLDAP$
3
4 DATADIR=$SRCDIR/data
5 PROGDIR=./progs
6
7 if test "$BACKEND" = "bdb2" ; then
8         CONF=$DATADIR/slapd-bdb2-master.conf
9         PWCONF=$DATADIR/slapd-bdb2-pw.conf
10         ACLCONF=$DATADIR/slapd-bdb2-acl.conf
11         MASTERCONF=$DATADIR/slapd-bdb2-repl-master.conf
12         SLAVECONF=$DATADIR/slapd-bdb2-repl-slave.conf
13         REFSLAVECONF=$DATADIR/slapd-bdb2-ref-slave.conf
14         TIMING="-t"
15 else
16         CONF=$DATADIR/slapd-master.conf
17         PWCONF=$DATADIR/slapd-pw.conf
18         ACLCONF=$DATADIR/slapd-acl.conf
19         MASTERCONF=$DATADIR/slapd-repl-master.conf
20         SLAVECONF=$DATADIR/slapd-repl-slave.conf
21         REFSLAVECONF=$DATADIR/slapd-ref-slave.conf
22 fi
23
24 if test "$LDAP_PROTO" ; then
25         PROTO="-P $LDAP_PROTO"
26 fi
27
28 PASSWDCONF=$DATADIR/slapd-passwd.conf
29
30 CLIENTDIR=../clients/tools
31 #CLIENTDIR=/usr/local/bin
32
33 LDIF2LDBM="../servers/slapd/tools/slapadd $LDAP_VERBOSE"
34
35 #CMP=cmp
36 CMP="diff -i -q"
37 SLAPD=../servers/slapd/slapd
38 SLURPD=../servers/slurpd/slurpd
39 LDAPPASSWD="$CLIENTDIR/ldappasswd"
40 LDAPSEARCH="$CLIENTDIR/ldapsearch $PROTO -LLL"
41 LDAPMODIFY="$CLIENTDIR/ldapmodify $PROTO"
42 LDAPADD="$CLIENTDIR/ldapadd $PROTO"
43 LDAPMODRDN="$CLIENTDIR/ldapmodrdn $PROTO"
44 SLAPDTESTER=$PROGDIR/slapd-tester
45 LVL=${SLAPD_DEBUG-5}
46 ADDR=127.0.0.1
47 PORT=9009
48 SLAVEPORT=9010
49 MASTERURI="ldap://localhost:$PORT/"
50 SLAVEURI="ldap://localhost:$SLAVEPORT/"
51 DBDIR=./test-db
52 REPLDIR=./test-repl
53 LDIF=$DATADIR/test.ldif
54 LDIFORDERED=$DATADIR/test-ordered.ldif
55 LDIFPASSWD=$DATADIR/passwd.ldif
56 LDIFPASSWDOUT=$DATADIR/passwd-out.ldif
57 MONITOR=""
58 BASEDN="o=University of Michigan, c=US"
59 MANAGERDN="cn=Manager, o=University of Michigan, c=US"
60 UPDATEDN="cn=Replica, o=University of Michigan, c=US"
61 PASSWD=secret
62 BABSDN="cn=Barbara Jensen, ou=Information Technology Division, ou=People, o=University of Michigan, c=US"
63 BJORNSDN="cn=Bjorn Jensen, ou=Information Technology Division, ou=People, o=University of Michigan, c=US"
64 JAJDN="cn=James A Jones 1, ou=Alumni Association, ou=People, o=University of Michigan, c=US"
65 MASTERLOG=$DBDIR/master.log
66 SLAVELOG=$DBDIR/slave.log
67 SLURPLOG=$DBDIR/slurp.log
68 SEARCHOUT=$DBDIR/ldapsearch.out
69 SEARCHFLT=$DBDIR/ldapsearch.flt
70 LDIFFLT=$DBDIR/ldif.flt
71 MASTEROUT=$DBDIR/master.out
72 SLAVEOUT=$DBDIR/slave.out
73 TESTOUT=$DBDIR/test.out
74 INITOUT=$DBDIR/init.out
75 SEARCHOUTMASTER=$DATADIR/search.out.master
76 MODIFYOUTMASTER=$DATADIR/modify.out.master
77 ADDDELOUTMASTER=$DATADIR/adddel.out.master
78 MODRDNOUTMASTER0=$DATADIR/modrdn.out.master.0
79 MODRDNOUTMASTER1=$DATADIR/modrdn.out.master.1
80 MODRDNOUTMASTER2=$DATADIR/modrdn.out.master.2
81 MODRDNOUTMASTER3=$DATADIR/modrdn.out.master.3
82 ACLOUTMASTER=$DATADIR/acl.out.master
83 REPLOUTMASTER=$DATADIR/repl.out.master
84 MODSRCHFILTERS=$DATADIR/modify.search.filters
85 # Just in case we linked the binaries dynamically
86 LD_LIBRARY_PATH=`pwd`/../libraries:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH