Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / openldap / dist / tests / scripts / its-all
blobabbca79a47077a12bc4013772076de58ef365acf
1 #! /bin/sh
2 # $OpenLDAP: pkg/ldap/tests/scripts/its-all,v 1.4.2.3 2008/02/11 23:26:50 kurt Exp $
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2008 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.
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>.
16 SHTOOL="$SRCDIR/../build/shtool"
18 TB="" TN=""
19 if test -t 1 ; then
20 TB=`$SHTOOL echo -e "%B" 2>/dev/null`
21 TN=`$SHTOOL echo -e "%b" 2>/dev/null`
24 echo "#######################################################################"
25 echo "### ###"
26 echo "### regression tests ###"
27 echo "### ###"
28 echo "#######################################################################"
29 echo "###"
31 echo ">>>>> Executing all LDAP ITS regression tests"
33 for CMD in $SRCDIR/data/regressions/its*/its*; do
34 # remove cruft from prior test
35 if test $PRESERVE = yes ; then
36 /bin/rm -rf testrun/db.*
37 else
38 /bin/rm -rf testrun
41 echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
42 $CMD
43 RC=$?
44 if test $RC -eq 0 ; then
45 echo ">>>>> $CMD completed ${TB}OK${TN}."
46 else
47 echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
48 exit $RC
51 echo ""
52 done