2 # $OpenLDAP: pkg/ldap/tests/scripts/test030-relay,v 1.21.2.4 2008/02/11 23:26:51 kurt Exp $
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2008 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
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>.
16 echo "running defines.sh"
17 .
$SRCDIR/scripts
/defines.sh
19 if test $RWM = rwmno
; then
20 echo "rwm (Rewrite/remap) overlay not available, test skipped"
26 if test "x$RELAYS" = "x" ; then
29 if test $BACKRELAY = relayno
; then
30 echo "relay backend not available, test skipped"
32 if test "x$RELAYS" != "x" ; then
35 RELAYS
="${RELAYS}relay"
39 if test $BACKLDAP = ldapno
; then
40 echo "ldap backend not available, test skipped"
42 if test $THREADS = "threadsno" ; then
43 echo "Need threads support, test skipped"
45 if test "x$RELAYS" != "x" ; then
48 RELAYS
="${RELAYS}ldap"
53 if test $BACKMETA = metano
; then
54 echo "meta backend not available, test skipped"
56 if test $THREADS = "threadsno" ; then
57 echo "Need threads support, test skipped"
59 if test "x$RELAYS" != "x" ; then
62 RELAYS
="${RELAYS}meta"
67 if test "x$RELAYS" = "x" ; then
68 echo "no relaying capable backend is available"
69 echo ">>>>> Test succeeded"
73 echo "Testing virtual naming context mapping with $RELAYS backend(s)..."
77 if test -f $tmpfile ; then
81 for RELAY
in $RELAYS ; do
83 if test $THREADS = "threadsno" ; then
86 echo "Need threads support, test skipped"
92 if test $RUNIT = yes ; then
93 if test $first = 1 ; then
96 echo ">>>>> waiting for things to exit"
97 test $KILLSERVERS != no
&& wait
104 mkdir
-p $TESTDIR $DBDIR1
106 if test -f $tmpfile ; then
110 .
$SRCDIR/scripts
/relay
114 echo ">>>>> Test succeeded"
116 test $KILLSERVERS != no
&& wait