openldap/tests/scripts/all

32 lines
606 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
SHTOOL="$SRCDIR/../build/shtool"
2002-02-10 18:49:57 -05:00
TB=`$SHTOOL echo -e "%B"`
TN=`$SHTOOL echo -e "%b"`
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-10 18:49:57 -05:00
echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
$CMD
1998-08-08 20:43:13 -04:00
RC=$?
1999-04-21 01:59:01 -04:00
if test $RC -eq 0 ; then
2002-02-10 18:49:57 -05:00
echo ">>>>> $CMD completed ${TB}OK${TN}."
1998-08-08 20:43:13 -04:00
else
2002-02-10 18:49:57 -05:00
echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
1998-08-08 20:43:13 -04:00
exit $RC
fi
1999-08-03 17:46:44 -04:00
echo ">>>>> waiting 10 seconds for things to exit"
sleep 10
2002-02-10 18:49:57 -05:00
echo ""
1998-08-08 20:43:13 -04:00
done