]> git.sur5r.net Git - openldap/blob - tests/scripts/defines.sh
c45092ccb611e10fd257b4cf4e4fa97cbce56d69
[openldap] / tests / scripts / defines.sh
1 #! /bin/sh
2 # $OpenLDAP$
3
4 DATADIR=$SRCDIR/data
5 PROGDIR=./progs
6 DBDIR=./test-db
7 REPLDIR=./test-repl
8
9 CONF=$DATADIR/slapd.conf
10 MCONF=$DATADIR/slapd-master.conf
11 PWCONF=$DATADIR/slapd-pw.conf
12 ACLCONF=$DATADIR/slapd-acl.conf
13 RCONF=$DATADIR/slapd-referrals.conf
14 MASTERCONF=$DATADIR/slapd-repl-master.conf
15 SRMASTERCONF=$DATADIR/slapd-syncrepl-master.conf
16 SLAVECONF=$DATADIR/slapd-repl-slave.conf
17 SRREFSLAVECONF=$DATADIR/slapd-syncrepl-slave-refresh.conf
18 SRPERSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist.conf
19 REFSLAVECONF=$DATADIR/slapd-ref-slave.conf
20 SUBMASTERCONF=$DATADIR/slapd-repl-submaster.conf
21 SUBSLAVECONF=$DATADIR/slapd-repl-subslave.conf
22 SCHEMACONF=$DATADIR/slapd-schema.conf
23 GLUECONF=$DATADIR/slapd-glue.conf
24
25 DBCONF=$DBDIR/slapd.conf
26 ADDCONF=$DBDIR/slapadd.conf
27 REPLCONF=$REPLDIR/slapd.conf
28
29 TOOLARGS="-x $LDAP_TOOLARGS"
30 TOOLPROTO="-P 3"
31
32 PASSWDCONF=$DATADIR/slapd-passwd.conf
33
34 CLIENTDIR=../clients/tools
35 #CLIENTDIR=/usr/local/bin
36
37 LDIFFILTER=$SRCDIR/scripts/acfilter.sh
38 SUBFILTER=$SRCDIR/scripts/subfilter.sh
39 UNDIFFFILTER=$SRCDIR/scripts/undiff.sh
40 CONFFILTER=$SRCDIR/scripts/conf.sh
41 STRIPATTR=$SRCDIR/scripts/stripattr.sh
42
43 SLAPADD="../servers/slapd/tools/slapadd $LDAP_VERBOSE"
44 SLAPCAT="../servers/slapd/tools/slapcat $LDAP_VERBOSE"
45 SLAPINDEX="../servers/slapd/tools/slapindex $LDAP_VERBOSE"
46
47 unset DIFF_OPTIONS
48 DIFF="diff -iu"
49 CMP="diff -i"
50 BCMP="diff -iB"
51 CMPOUT=/dev/null
52 SLAPD="../servers/slapd/slapd -s0"
53 SLURPD=../servers/slurpd/slurpd
54 LDAPPASSWD="$CLIENTDIR/ldappasswd $TOOLARGS"
55 LDAPSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS -LLL"
56 LDAPRSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS"
57 LDAPMODIFY="$CLIENTDIR/ldapmodify $TOOLPROTO $TOOLARGS"
58 LDAPADD="$CLIENTDIR/ldapmodify -a $TOOLPROTO $TOOLARGS"
59 LDAPMODRDN="$CLIENTDIR/ldapmodrdn $TOOLPROTO $TOOLARGS"
60 LDAPWHOAMI="$CLIENTDIR/ldapwhoami $TOOLARGS"
61 SLAPDTESTER=$PROGDIR/slapd-tester
62 LVL=${SLAPD_DEBUG-261}
63 LOCALHOST=localhost
64 PORT=9009
65 SLAVEPORT=9010
66 MASTERURI="ldap://${LOCALHOST}:$PORT/"
67 SLAVEURI="ldap://${LOCALHOST}:$SLAVEPORT/"
68 LDIF=$DATADIR/test.ldif
69 LDIFGLUED=$DATADIR/test-glued.ldif
70 LDIFORDERED=$DATADIR/test-ordered.ldif
71 LDIFORDEREDCP=$DATADIR/test-ordered-cp.ldif
72 LDIFORDEREDNOCP=$DATADIR/test-ordered-nocp.ldif
73 LDIFBASE=$DATADIR/test-base.ldif
74 LDIFPASSWD=$DATADIR/passwd.ldif
75 LDIFPASSWDOUT=$DATADIR/passwd-out.ldif
76 LDIFLANG=$DATADIR/test-lang.ldif
77 LDIFLANGOUT=$DATADIR/lang-out.ldif
78 LDIFREF=$DATADIR/referrals.ldif
79 MONITOR=""
80 REFDN="c=US"
81 BASEDN="o=University of Michigan,c=US"
82 MANAGERDN="cn=Manager,o=University of Michigan,c=US"
83 UPDATEDN="cn=Replica,o=University of Michigan,c=US"
84 PASSWD=secret
85 BABSDN="cn=Barbara Jensen,ou=Information Technology DivisioN,OU=People,o=University of Michigan,c=us"
86 BJORNSDN="cn=Bjorn Jensen,ou=Information Technology DivisioN,OU=People,o=University of Michigan,c=us"
87 JAJDN="cn=James A Jones 1,ou=Alumni Association,ou=People,o=University of Michigan,c=US"
88 MASTERLOG=$DBDIR/master.log
89 SLAVELOG=$DBDIR/slave.log
90 SLURPLOG=$DBDIR/slurp.log
91 SEARCHOUT=$DBDIR/ldapsearch.out
92 SEARCHFLT=$DBDIR/ldapsearch.flt
93 LDIFFLT=$DBDIR/ldif.flt
94 SUBFLT0=$DBDIR/sub0.flt
95 SUBFLT1=$DBDIR/sub1.flt
96 SUBFLT2=$DBDIR/sub2.flt
97 MASTEROUT=$DBDIR/master.out
98 SLAVEOUT=$DBDIR/slave.out
99 SUBMASTEROUT=$DBDIR/submaster.out
100 TESTOUT=$DBDIR/test.out
101 INITOUT=$DBDIR/init.out
102 REFERRALOUT=$DATADIR/referrals.out
103 SEARCHOUTMASTER=$DATADIR/search.out.master
104 SEARCHOUTX=$DATADIR/search.out.xsearch
105 MODIFYOUTMASTER=$DATADIR/modify.out.master
106 ADDDELOUTMASTER=$DATADIR/adddel.out.master
107 MODRDNOUTMASTER0=$DATADIR/modrdn.out.master.0
108 MODRDNOUTMASTER1=$DATADIR/modrdn.out.master.1
109 MODRDNOUTMASTER2=$DATADIR/modrdn.out.master.2
110 MODRDNOUTMASTER3=$DATADIR/modrdn.out.master.3
111 ACLOUTMASTER=$DATADIR/acl.out.master
112 REPLOUTMASTER=$DATADIR/repl.out.master
113 MODSRCHFILTERS=$DATADIR/modify.search.filters
114 # Just in case we linked the binaries dynamically
115 LD_LIBRARY_PATH=`pwd`/../libraries:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH