]> git.sur5r.net Git - openldap/blobdiff - tests/run.in
Add slapo-constraint, dgIdentity notes
[openldap] / tests / run.in
index 475e2885f6772c672a7dd962f92af12005f47258..24133fbcb5d33e0156059cd874b8f927dfb082eb 100644 (file)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 1998-2006 The OpenLDAP Foundation.
+## Copyright 1998-2007 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -55,10 +55,10 @@ AC_THREADS=threads@BUILD_THREAD@
 AC_LIBS_DYNAMIC=lib@BUILD_LIBS_DYNAMIC@
 
 # sanitize
-if test "${AC_ldap}" = "ldapmod" -a "${AC_LIBS_DYNAMIC}" = "static" ; then
+if test "${AC_ldap}" = "ldapmod" && test "${AC_LIBS_DYNAMIC}" = "static" ; then
        AC_ldap="ldapno"
 fi
-if test "${AC_meta}" = "metamod" -a "${AC_LIBS_DYNAMIC}" = "static" ; then
+if test "${AC_meta}" = "metamod" && test "${AC_LIBS_DYNAMIC}" = "static" ; then
        AC_meta="metano"
 fi
 
@@ -176,13 +176,13 @@ if test -d ${TESTDIR} ; then
                /bin/rm -rf ${TESTDIR}/db.*
        fi
 fi
+mkdir -p ${TESTDIR}
 
 if test $USERDATA = yes ; then
        if test ! -d userdata ; then
                echo "User data directory (userdata) does not exist."
                exit 1
        fi
-       mkdir -p ${TESTDIR}
        cp -R userdata/* ${TESTDIR}
 fi