]> git.sur5r.net Git - openldap/blob - tests/scripts/test030-relay
add back-meta to relay testing; disabled by now, needs work to line up with the rwm...
[openldap] / tests / scripts / test030-relay
1 #! /bin/sh
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2004 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
11 ##
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>.
15
16 echo "running defines.sh"
17 . $SRCDIR/scripts/defines.sh
18
19 if test $RWM = rwmno ; then 
20         echo "Rewrite/remap overlay not available, test skipped"
21         exit 0
22 fi 
23
24 echo ""
25
26 RELAYS=
27 # back-relay
28 if test $BACKRELAY = relayno ; then 
29         echo "relay backend not available, test skipped"
30 else
31         RELAYS="$RELAYS relay"
32 fi
33
34 # back-ldap
35 if test $BACKLDAP = ldapno ; then 
36         echo "ldap backend not available, test skipped"
37 else
38         RELAYS="$RELAYS ldap"
39 fi
40
41 # back-meta - disable by now, needs work to line up with rwm
42 if test $BACKMETA = metano ; then 
43         echo "meta backend not available, test skipped"
44 else
45         # RELAYS="$RELAYS meta"
46         echo "==> back-meta disabled by now, needs work"
47         echo ""
48 fi 
49
50 first=1
51 for RELAY in $RELAYS ; do
52         if test $first = 1 ; then
53                 first=0
54         else
55                 echo ">>>>> waiting 10 seconds for things to exit"
56                 sleep 10
57                 echo ""
58
59                 rm -rf $TESTDIR
60         fi
61
62         mkdir -p $TESTDIR $DBDIR1
63
64         . $SRCDIR/scripts/relay
65 done
66
67 echo ">>>>> Test succeeded"
68 exit 0
69