openldap/tests/scripts/all

45 lines
1.1 KiB
Plaintext
Raw Normal View History

1999-04-21 13:59:01 +08:00
#! /bin/sh
1999-09-02 08:52:43 +08:00
# $OpenLDAP$
2003-11-29 04:00:23 +08:00
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
2005-01-02 04:49:32 +08:00
## Copyright 1998-2005 The OpenLDAP Foundation.
2003-11-29 04:00:23 +08:00
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
##
## A copy of this license is available in the file LICENSE in the
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
1998-08-09 08:43:13 +08:00
SHTOOL="$SRCDIR/../build/shtool"
2002-02-11 07:49:57 +08:00
TB=`$SHTOOL echo -e "%B"`
TN=`$SHTOOL echo -e "%b"`
SLEEPTIME=10
2002-02-11 07:49:57 +08:00
echo ">>>>> Executing all LDAP tests for $BACKEND"
for CMD in $SRCDIR/scripts/test*; do
# remove cruft from prior test
if test $PRESERVE = yes ; then
/bin/rm -rf testrun/db.*
else
/bin/rm -rf testrun
fi
2002-02-11 07:49:57 +08:00
echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
$CMD
1998-08-09 08:43:13 +08:00
RC=$?
1999-04-21 13:59:01 +08:00
if test $RC -eq 0 ; then
2002-02-11 07:49:57 +08:00
echo ">>>>> $CMD completed ${TB}OK${TN}."
1998-08-09 08:43:13 +08:00
else
2002-02-11 07:49:57 +08:00
echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
1998-08-09 08:43:13 +08:00
exit $RC
fi
echo ">>>>> waiting $SLEEPTIME seconds for things to exit"
sleep $SLEEPTIME
2002-02-11 07:49:57 +08:00
echo ""
1998-08-09 08:43:13 +08:00
done