1#! /bin/sh 2# $OpenLDAP: pkg/ldap/tests/scripts/all,v 1.26.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. 11## 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>. 15 16. $SRCDIR/scripts/defines.sh 17 18TB="" TN="" 19if test -t 1 ; then 20 TB=`$SHTOOL echo -e "%B" 2>/dev/null` 21 TN=`$SHTOOL echo -e "%b" 2>/dev/null` 22fi 23 24SLEEPTIME=10 25 26echo ">>>>> Executing all LDAP tests for $BACKEND" 27 28for CMD in $SRCDIR/scripts/test*; do 29 # remove cruft from prior test 30 if test $PRESERVE = yes ; then 31 /bin/rm -rf $TESTDIR/db.* 32 else 33 /bin/rm -rf $TESTDIR 34 fi 35 36 echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..." 37 $CMD 38 RC=$? 39 if test $RC -eq 0 ; then 40 echo ">>>>> $CMD completed ${TB}OK${TN}." 41 else 42 echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)" 43 exit $RC 44 fi 45 46# echo ">>>>> waiting $SLEEPTIME seconds for things to exit" 47# sleep $SLEEPTIME 48 echo "" 49done 50