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