]> git.sur5r.net Git - openldap/blob - tests/scripts/all
Happy new year
[openldap] / tests / scripts / all
1 #! /bin/sh
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2004 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
11 ##
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
15
16 SHTOOL="$SRCDIR/../build/shtool"
17 TB=`$SHTOOL echo -e "%B"`
18 TN=`$SHTOOL echo -e "%b"`
19
20 echo ">>>>> Executing all LDAP tests for $BACKEND"
21
22 for CMD in $SRCDIR/scripts/test*; do
23         # remove cruft from prior test
24         if test $PRESERVE = yes ; then
25                 /bin/rm -rf testrun/db.*
26         else
27                 /bin/rm -rf testrun
28         fi
29
30         echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
31         $CMD
32         RC=$?
33         if test $RC -eq 0 ; then
34                 echo ">>>>> $CMD completed ${TB}OK${TN}."
35         else
36                 echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
37                 exit $RC
38         fi
39
40         echo ">>>>> waiting 10 seconds for things to exit"
41         sleep 10
42         echo ""
43 done