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
|
|
|
|
2003-10-10 20:11:22 +08:00
|
|
|
SHTOOL="$SRCDIR/../build/shtool"
|
2002-02-11 07:49:57 +08:00
|
|
|
TB=`$SHTOOL echo -e "%B"`
|
|
|
|
TN=`$SHTOOL echo -e "%b"`
|
2004-08-24 17:26:39 +08:00
|
|
|
SLEEPTIME=10
|
2002-02-11 07:49:57 +08:00
|
|
|
|
2003-10-21 11:08:08 +08:00
|
|
|
echo ">>>>> Executing all LDAP tests for $BACKEND"
|
|
|
|
|
1999-01-10 10:25:41 +08:00
|
|
|
for CMD in $SRCDIR/scripts/test*; do
|
2003-10-21 11:08:08 +08:00
|
|
|
# remove cruft from prior test
|
2003-10-22 13:14:08 +08:00
|
|
|
if test $PRESERVE = yes ; then
|
|
|
|
/bin/rm -rf testrun/db.*
|
|
|
|
else
|
|
|
|
/bin/rm -rf testrun
|
|
|
|
fi
|
2003-10-21 11:08:08 +08:00
|
|
|
|
2002-02-11 07:49:57 +08:00
|
|
|
echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
|
2003-10-21 11:08:08 +08:00
|
|
|
$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
|
2003-10-21 11:08:08 +08:00
|
|
|
|
2004-08-24 17:26:39 +08:00
|
|
|
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
|