]> git.sur5r.net Git - openldap/blob - tests/scripts/all
Sync with HEAD
[openldap] / tests / scripts / all
1 #! /bin/sh
2 # $OpenLDAP$
3
4 # disable LDAP initialization
5 LDAPNOINIT=true; export LDAPNOINIT
6
7 echo ">>>>> Executing all LDAP tests..."
8
9 if test $# -eq 0 ; then
10         SRCDIR="."
11 else
12         SRCDIR=$1; shift
13 fi
14
15 echo ">>>>> Test Directory: $SRCDIR"
16
17 if test $# -eq 0 ; then
18         BACKEND=bdb
19 else
20         BACKEND=$1; shift
21 fi
22
23 echo ">>>>> Backend: $BACKEND"
24
25 MONITORDB=${MONITORDB-no}
26 PROXYCACHE=${PROXYCACHE-no}
27 BACKENDTYPE=${BACKENDTYPE-yes}
28
29 export MONITORDB PROXYCACHE BACKENDTYPE
30
31 echo ">>>>> Backend Type: $BACKENDTYPE"
32
33 if test $# -eq 0 ; then
34         SYNCREPL=no
35 else
36         SYNCREPL=$1; shift
37 fi
38
39 SHTOOL="$SRCDIR/../build/shtool"
40
41 TB=`$SHTOOL echo -e "%B"`
42 TN=`$SHTOOL echo -e "%b"`
43
44 for CMD in $SRCDIR/scripts/test*; do
45         echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
46         $CMD $SRCDIR $BACKEND $SYNCREPL
47         RC=$?
48         if test $RC -eq 0 ; then
49                 echo ">>>>> $CMD completed ${TB}OK${TN}."
50         else
51                 echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
52                 exit $RC
53         fi
54         echo ">>>>> waiting 10 seconds for things to exit"
55         sleep 10
56         echo ""
57 done