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