]> git.sur5r.net Git - openldap/blob - tests/scripts/all
Rework support for certificate exact matching based, in part,
[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 WITHTLS=${WITHTLS-no}
28 BACKENDTYPE=${BACKENDTYPE-yes}
29
30 export MONITORDB PROXYCACHE WITHTLS BACKENDTYPE
31
32 echo ">>>>> Backend Type: $BACKENDTYPE"
33
34 if test $# -eq 0 ; then
35         SYNCREPL=no
36 else
37         SYNCREPL=$1; shift
38 fi
39
40 SHTOOL="$SRCDIR/../build/shtool"
41
42 TB=`$SHTOOL echo -e "%B"`
43 TN=`$SHTOOL echo -e "%b"`
44
45 for CMD in $SRCDIR/scripts/test*; do
46         echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
47         $CMD $SRCDIR $BACKEND $SYNCREPL
48         RC=$?
49         if test $RC -eq 0 ; then
50                 echo ">>>>> $CMD completed ${TB}OK${TN}."
51         else
52                 echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
53                 exit $RC
54         fi
55         echo ">>>>> waiting 10 seconds for things to exit"
56         sleep 10
57         echo ""
58 done