From 9f26171f799d141e2d6fd9c93ab1a0c505f1ff55 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 30 Dec 2004 18:05:20 +0000 Subject: [PATCH] allow to select what relays to use --- tests/scripts/test030-relay | 41 +++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 18 deletions(-) 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 -- 2.39.5