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