]> git.sur5r.net Git - openldap/commitdiff
ITS#5408: Support back-ldif
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 12 Nov 2008 01:00:56 +0000 (01:00 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 12 Nov 2008 01:00:56 +0000 (01:00 +0000)
tests/scripts/test033-glue-syncrepl
tests/scripts/test040-subtree-rename

index e8ee1f89696597821df240425437da5c4ef3dbfb..240f5a38a351c35860836563520692221bff1a0f 100755 (executable)
 ## top-level directory of the distribution or, alternatively, at
 ## <http://www.OpenLDAP.org/license.html>.
 
-if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" ; then
-       echo "Test does not support $BACKEND"
+case $BACKEND in bdb | hdb | ldif) : ;; *)
+       echo "Test does not support $BACKEND backend, test skipped"
        exit 0
-fi
+esac
 
 echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh
@@ -36,7 +36,7 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-rm -f $DBDIR1A/* $DBDIR1B/*
+rm -rf $DBDIR1A/* $DBDIR1B/*
 cp -pr $DBDIR1C $DBDIR2C
 
 echo "Starting slapd 1 on TCP/IP port $PORT1..."
index 5d81ad144df2fe7a8bf2fbf6ce41816877fdc231..56c3e2192a16b679df7cfc514ae39e5a386d8131 100755 (executable)
@@ -17,7 +17,7 @@ echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh
 
 case $BACKEND in
-hdb)
+hdb | ldif)
        ;;
 *)
        echo "subtree rename not supported by back-$BACKEND"