From: Pierangelo Masarati Date: Thu, 30 Dec 2004 18:05:20 +0000 (+0000) Subject: allow to select what relays to use X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~7^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f26171f799d141e2d6fd9c93ab1a0c505f1ff55;p=openldap allow to select what relays to use --- diff --git a/tests/scripts/test030-relay b/tests/scripts/test030-relay index e7e457caed..d6bc8b5728 100755 --- a/tests/scripts/test030-relay +++ b/tests/scripts/test030-relay @@ -23,27 +23,32 @@ fi echo "" -RELAYS= -# back-relay -if test $BACKRELAY = relayno ; then - echo "relay backend not available, test skipped" -else - RELAYS="$RELAYS relay" -fi +if test "x$RELAYS" = "x" ; then + RELAYS= + # back-relay + 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" + # back-ldap + if test $BACKLDAP = ldapno ; then + echo "ldap backend not available, test skipped" + else + RELAYS="${RELAYS}ldap " + fi + + # back-meta + if test $BACKMETA = metano ; then + echo "meta backend not available, test skipped" + else + RELAYS="${RELAYS}meta " + fi fi -# back-meta -if test $BACKMETA = metano ; then - echo "meta backend not available, test skipped" -else - RELAYS="$RELAYS meta" -fi +echo "Using $RELAYS..." +echo "" first=1 for RELAY in $RELAYS ; do