X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest057-memberof-refint;h=35e450176e93b24cf39b41bfad1e39c5b8bcb722;hb=fc1396fa2e94ee2e752fd7c3ea5bb22f6592398a;hp=96c73bd5d03f964a95ab049e153d9041fb20bc95;hpb=27dc9462395d8ef5423646c97b7514184f910792;p=openldap
diff --git a/tests/scripts/test057-memberof-refint b/tests/scripts/test057-memberof-refint
index 96c73bd5d0..35e450176e 100755
--- a/tests/scripts/test057-memberof-refint
+++ b/tests/scripts/test057-memberof-refint
@@ -2,7 +2,7 @@
# $OpenLDAP$
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2012 The OpenLDAP Foundation.
## Portions Copyright 2008 Red Hat, Inc.
## All rights reserved.
##
@@ -27,10 +27,10 @@ if test $REFINT = refintno; then
exit 0
fi
-case $BACKEND in bdb | null)
- echo "Test does not support $BACKEND, test skipped"
+if test $BACKEND = bdb; then
+ echo "$BACKEND backend does not support subtree rename, test skipped"
exit 0
-esac
+fi
mkdir -p $TESTDIR $DBDIR1 $TESTDIR/confdir
@@ -66,8 +66,16 @@ fi
cat /dev/null > $TESTOUT
+indexInclude="" mainInclude="" bdbInclude="# " nullExclude=""
+test $INDEXDB = indexdb || indexInclude="# "
+test $MAINDB = maindb || mainInclude="# "
+case $BACKEND in
+bdb | hdb) bdbInclude="" ;;
+null) nullExclude="# " ;;
+esac
+
if [ "$MEMBEROF" = memberofmod ]; then
- echo "Inserting memberof overlay on producer..."
+ echo "Inserting memberof overlay on provider..."
$LDAPADD -D cn=config -H $URI1 -y $CONFIGPWF < $TESTOUT 2>&1
dn: cn=module,cn=config
objectClass: olcModuleList
@@ -84,29 +92,24 @@ EOF
fi
fi
-bdb_conf=""
-case $BACKEND in bdb | hdb)
-bdb_conf="olcDbCacheSize: 1000
-olcDbIndex: objectClass eq
-olcDbIndex: cn pres,eq,sub
-olcDbIndex: uid pres,eq,sub
-olcDbIndex: sn pres,eq,sub
-olcDbMode: 384"
-esac
-
echo "Running ldapadd to build slapd config database..."
$LDAPADD -h $LOCALHOST -p $PORT1 -D 'cn=config' -w `cat $CONFIGPWF` \
>> $TESTOUT 2>&1 <