]> git.sur5r.net Git - openldap/blob - tests/scripts/its-all
cleanup message
[openldap] / tests / scripts / its-all
1 #! /bin/sh
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2006 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 "#######################################################################"
21 echo "###                                                                 ###"
22 echo "### regression tests                                                ###"
23 echo "###                                                                 ###"
24 echo "#######################################################################"
25 echo "###"
26
27 echo ">>>>> Executing all LDAP ITS regression tests"
28
29 for CMD in $SRCDIR/data/regressions/its*/its*; do
30         # remove cruft from prior test
31         if test $PRESERVE = yes ; then
32                 /bin/rm -rf testrun/db.*
33         else
34                 /bin/rm -rf testrun
35         fi
36
37         echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
38         $CMD
39         RC=$?
40         if test $RC -eq 0 ; then
41                 echo ">>>>> $CMD completed ${TB}OK${TN}."
42         else
43                 echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
44                 exit $RC
45         fi
46
47         echo ">>>>> waiting for things to exit"
48         echo ""
49 done