From: Hallvard Furuseth Date: Fri, 4 Dec 2009 16:45:19 +0000 (+0000) Subject: ITS#5810: Skip test for back-null X-Git-Tag: ACLCHECK_0~31 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=27dc9462395d8ef5423646c97b7514184f910792;p=openldap ITS#5810: Skip test for back-null --- diff --git a/tests/scripts/test046-dds b/tests/scripts/test046-dds index d77a459d6c..702b7d3342 100755 --- a/tests/scripts/test046-dds +++ b/tests/scripts/test046-dds @@ -16,10 +16,11 @@ echo "running defines.sh" . $SRCDIR/scripts/defines.sh -if test $BACKEND = "ldif" ; then - echo "LDIF backend does not support acls, test skipped" +case $BACKEND in ldif | null) + # LDIF lacks ACL support, NULL cannot hold dynamic entries + echo "Test does not support $BACKEND backend, test skipped" exit 0 -fi +esac if test $DDS = ddsno; then echo "Dynamic Directory Services overlay not available, test skipped" diff --git a/tests/scripts/test049-sync-config b/tests/scripts/test049-sync-config index b23d78ba01..a3db709da0 100755 --- a/tests/scripts/test049-sync-config +++ b/tests/scripts/test049-sync-config @@ -21,6 +21,11 @@ if test $SYNCPROV = syncprovno; then exit 0 fi +if test $BACKEND = null; then + echo "$BACKEND backend does not support cn=config, test skipped" + exit 0 +fi + PRODIR=$TESTDIR/pro CONDIR=$TESTDIR/con1 DBPRO=$PRODIR/db diff --git a/tests/scripts/test050-syncrepl-multimaster b/tests/scripts/test050-syncrepl-multimaster index c6ede2952d..69ab45d113 100755 --- a/tests/scripts/test050-syncrepl-multimaster +++ b/tests/scripts/test050-syncrepl-multimaster @@ -21,6 +21,11 @@ if test $SYNCPROV = syncprovno; then exit 0 fi +if test $BACKEND = null; then + echo "$BACKEND backend does not support cn=config, test skipped" + exit 0 +fi + MMR=${MMR-4} if [ $MMR -gt 9 ]; then diff --git a/tests/scripts/test052-memberof b/tests/scripts/test052-memberof index 16a6ef1fd6..446bf61b6b 100755 --- a/tests/scripts/test052-memberof +++ b/tests/scripts/test052-memberof @@ -21,6 +21,11 @@ if test $MEMBEROF = memberofno; then exit 0 fi +if test $BACKEND = null; then + echo "$BACKEND backend does not support cn=config, test skipped" + exit 0 +fi + mkdir -p $TESTDIR $DBDIR1 $TESTDIR/confdir $SLAPPASSWD -g -n >$CONFIGPWF diff --git a/tests/scripts/test053-syncprov-glue b/tests/scripts/test053-syncprov-glue index 78c70f059a..0203d5d33b 100755 --- a/tests/scripts/test053-syncprov-glue +++ b/tests/scripts/test053-syncprov-glue @@ -27,6 +27,11 @@ if test $SYNCPROV = syncprovno; then exit 0 fi +if test $BACKEND = null; then + echo "$BACKEND backend does not support cn=config, test skipped" + exit 0 +fi + PRODDIR=$TESTDIR/prod PRO2DIR=$TESTDIR/pro2 CONSDIR=$TESTDIR/cons diff --git a/tests/scripts/test057-memberof-refint b/tests/scripts/test057-memberof-refint index f392ec916c..96c73bd5d0 100755 --- a/tests/scripts/test057-memberof-refint +++ b/tests/scripts/test057-memberof-refint @@ -27,10 +27,10 @@ if test $REFINT = refintno; then exit 0 fi -if test "$BACKEND" = "bdb" ; then - echo "Test does not support $BACKEND" +case $BACKEND in bdb | null) + echo "Test does not support $BACKEND, test skipped" exit 0 -fi +esac mkdir -p $TESTDIR $DBDIR1 $TESTDIR/confdir