]> git.sur5r.net Git - openldap/blobdiff - tests/run.in
Fix dn2id_delete
[openldap] / tests / run.in
index 230c7bc5f2b7ca556bee072ef488c28c6f74c2d9..cbf20d1222f7e43b58a443f9a9ca6fa01e55863f 100644 (file)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2011 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -23,9 +23,13 @@ EGREP_CMD="@EGREP@"
 
 export SRCDIR TOPSRCDIR LN_S EGREP_CMD
 
-# backends
+# backends known to ./run -b <backend> (used to deduce $BACKENDTYPE)
 AC_bdb=@BUILD_BDB@
 AC_hdb=@BUILD_HDB@
+AC_ldif=yes
+AC_null=@BUILD_NULL@
+
+# other backends
 AC_ldap=ldap@BUILD_LDAP@
 AC_meta=meta@BUILD_META@
 AC_monitor=@BUILD_MONITOR@
@@ -63,7 +67,7 @@ if test "${AC_meta}" = "metamod" && test "${AC_LIBS_DYNAMIC}" = "static" ; then
        AC_meta="metano"
 fi
 
-export AC_bdb AC_hdb AC_ldap AC_meta AC_monitor AC_relay AC_sql \
+export AC_bdb AC_hdb AC_ldap AC_meta AC_monitor AC_null AC_relay AC_sql \
        AC_accesslog AC_dds AC_dynlist AC_memberof AC_pcache AC_ppolicy \
        AC_refint AC_retcode AC_rwm AC_unique AC_syncprov AC_translucent \
        AC_valsort \
@@ -99,7 +103,7 @@ while test $# -gt 0 ; do
                        KILLSERVERS=no
                        shift ;;
                -l | -loop)
-                       NUM="$(echo $2 | sed 's/[0-9]//g')"
+                       NUM="`echo $2 | sed 's/[0-9]//g'`"
                        if [ -z "$NUM" ]; then
                                LOOP=$2
                        else
@@ -225,8 +229,11 @@ fi
 # disable LDAP initialization
 LDAPNOINIT=true; export LDAPNOINIT
 
-echo "Running ${SCRIPT}..."
+echo "Running ${SCRIPT} for ${BACKEND}..."
 while [ $COUNTER -le $LOOP ]; do
+       if [ $LOOP -gt 1 ]; then
+               echo "Running $COUNTER of $LOOP iterations"
+       fi
        $SCRIPT $*
        RC=$?