openldap/tests/scripts/all

39 lines
633 B
Text
Raw Normal View History

1999-04-21 01:59:01 -04:00
#! /bin/sh
1999-09-01 20:52:43 -04:00
# $OpenLDAP$
1998-08-08 20:43:13 -04:00
# disable LDAP initialization
LDAPNOINIT=true; export LDAPNOINIT
1998-08-08 20:43:13 -04:00
echo ">>>>> Executing all LDAP tests..."
if test $# -eq 0 ; then
SRCDIR="."
1998-08-08 20:43:13 -04:00
else
SRCDIR=$1; shift
1998-08-08 20:43:13 -04:00
fi
echo ">>>>> Test Directory: $SRCDIR"
if test $# -eq 0 ; then
2002-01-15 12:26:44 -05:00
BACKEND=bdb
else
BACKEND=$1; shift
fi
echo ">>>>> Backend: $BACKEND"
for CMD in $SRCDIR/scripts/test*; do
echo ">>>>> Starting `basename $CMD` ..."
$CMD $SRCDIR $BACKEND
1998-08-08 20:43:13 -04:00
RC=$?
1999-04-21 01:59:01 -04:00
if test $RC -eq 0 ; then
1998-08-08 20:43:13 -04:00
echo ">>>>> $CMD completed OK."
else
echo ">>>>> $CMD failed (exit $RC)"
exit $RC
fi
1999-08-03 17:46:44 -04:00
echo ">>>>> waiting 10 seconds for things to exit"
sleep 10
1998-08-08 20:43:13 -04:00
echo
done