]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test030-relay
ITS#3671 must release conn->c_mutex to allow blocked writers to exit
[openldap] / tests / scripts / test030-relay
index 0e0c11a83bf27a1c11c4bf5527a9addc6a843ac0..656cc616f91cfc8d7a28538a9d13f918ce3b9d03 100755 (executable)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 1998-2004 The OpenLDAP Foundation.
+## Copyright 1998-2005 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -23,29 +23,47 @@ fi
 
 echo ""
 
-RELAYS=
-# back-relay
-if test $BACKRELAY = relayno ; then 
-       echo "relay backend not available, test skipped"
-else
-       RELAYS="$RELAYS relay"
+if test "x$RELAYS" = "x" ; then
+       RELAYS=
+       # back-relay
+       if test $BACKRELAY = relayno ; then 
+               echo "relay backend not available, test skipped"
+       else
+               if test "x$RELAYS" != "x" ; then
+                       RELAYS="${RELAYS} "
+               fi
+               RELAYS="${RELAYS}relay"
+       fi
+
+       # back-ldap
+       if test $BACKLDAP = ldapno ; then 
+               echo "ldap backend not available, test skipped"
+       else
+               if test "x$RELAYS" != "x" ; then
+                       RELAYS="${RELAYS} "
+               fi
+               RELAYS="${RELAYS}ldap"
+       fi
+
+       # back-meta
+       if test $BACKMETA = metano ; then 
+               echo "meta backend not available, test skipped"
+       else
+               if test "x$RELAYS" != "x" ; then
+                       RELAYS="${RELAYS} "
+               fi
+               RELAYS="${RELAYS}meta"
+       fi 
 fi
 
-# back-ldap
-if test $BACKLDAP = ldapno ; then 
-       echo "ldap backend not available, test skipped"
-else
-       RELAYS="$RELAYS ldap"
+if test "x$RELAYS" = "x" ; then
+       echo "no relaying capable backend is available"
+       echo ">>>>> Test succeeded"
+       exit 0
 fi
 
-# back-meta - disable by now, needs work to line up with rwm
-if test $BACKMETA = metano ; then 
-       echo "meta backend not available, test skipped"
-else
-       # RELAYS="$RELAYS meta"
-       echo "==> back-meta disabled by now, needs work"
-       echo ""
-fi 
+echo "Testing virtual naming context mapping with $RELAYS backend(s)..."
+echo ""
 
 first=1
 for RELAY in $RELAYS ; do