openldap/tests/scripts/test030-relay

68 lines
1.3 KiB
Plaintext
Raw Normal View History

2004-07-13 03:26:07 +08:00
#! /bin/sh
# $OpenLDAP$
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
## Copyright 1998-2004 The OpenLDAP Foundation.
## 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>.
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $RWM = rwmno ; then
echo "Rewrite/remap overlay not available, test skipped"
exit 0
fi
echo ""
RELAYS=
# back-relay
2004-07-13 03:26:07 +08:00
if test $BACKRELAY = relayno ; then
echo "relay backend not available, test skipped"
else
RELAYS="$RELAYS relay"
fi
# back-ldap
if test $BACKLDAP = ldapno ; then
echo "ldap backend not available, test skipped"
else
RELAYS="$RELAYS ldap"
fi
2004-12-31 01:45:07 +08:00
# back-meta
if test $BACKMETA = metano ; then
echo "meta backend not available, test skipped"
else
2004-12-31 01:45:07 +08:00
RELAYS="$RELAYS meta"
2004-07-13 03:26:07 +08:00
fi
first=1
for RELAY in $RELAYS ; do
if test $first = 1 ; then
first=0
else
echo ">>>>> waiting 10 seconds for things to exit"
sleep 10
echo ""
rm -rf $TESTDIR
fi
mkdir -p $TESTDIR $DBDIR1
. $SRCDIR/scripts/relay
done
echo ">>>>> Test succeeded"
exit 0
2004-07-20 08:28:15 +08:00