]> git.sur5r.net Git - openldap/blob - tests/scripts/all
0b48a448297028aad407d47f7ac2323d40dd7125
[openldap] / tests / scripts / all
1 #! /bin/sh
2
3 # disable LDAP initialization
4 LDAPNOINIT=true; export LDAPNOINIT
5
6 echo ">>>>> Executing all LDAP tests..."
7
8 if test $# -eq 0 ; then
9         SRCDIR="."
10 else
11         SRCDIR=$1; shift
12 fi
13
14 echo ">>>>> Test Directory: $SRCDIR"
15
16 if test $# -eq 0 ; then
17         BACKEND=ldbm
18 else
19         BACKEND=$1; shift
20 fi
21
22 echo ">>>>> Backend: $BACKEND"
23
24 for CMD in $SRCDIR/scripts/test*; do
25         echo ">>>>> Starting `basename $CMD` ..."
26         $CMD $SRCDIR $BACKEND
27         RC=$?
28         if test $RC -eq 0 ; then
29                 echo ">>>>> $CMD completed OK."
30         else
31                 echo ">>>>> $CMD failed (exit $RC)"
32                 exit $RC
33         fi
34         echo ">>>>> waiting 10 seconds for things to exit"
35         sleep 10
36         echo
37 done