]> git.sur5r.net Git - openldap/commitdiff
ITS#5810: Skip test for back-null
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 4 Dec 2009 16:45:19 +0000 (16:45 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 4 Dec 2009 16:45:19 +0000 (16:45 +0000)
tests/scripts/test046-dds
tests/scripts/test049-sync-config
tests/scripts/test050-syncrepl-multimaster
tests/scripts/test052-memberof
tests/scripts/test053-syncprov-glue
tests/scripts/test057-memberof-refint

index d77a459d6ce5c696e7cb7ee8674bd59c71fcf7fc..702b7d334266bb7ad4c11e8f9d7cd9be116b8e4e 100755 (executable)
 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"
index b23d78ba01a11c7341e24e93e0bf58bd12dd804b..a3db709da057755dc7169f2b248bbebaefaa9cde 100755 (executable)
@@ -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
index c6ede2952d513367ec48cdf48c0709bd53c118b1..69ab45d1133e444b7d562a599358e00d7375f1d0 100755 (executable)
@@ -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
index 16a6ef1fd684190ac64031de6ffd3a22f8c283b4..446bf61b6ba4d6b6bf39908a37edc278ea2d4b32 100755 (executable)
@@ -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
index 78c70f059a402e8246a34df156b16b6f74c7a3c4..0203d5d33b1a036990c788ef391468be92423295 100755 (executable)
@@ -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
index f392ec916c89162cb95e24f7afb7037a267c524b..96c73bd5d03f964a95ab049e153d9041fb20bc95 100755 (executable)
@@ -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