]> git.sur5r.net Git - openldap/blobdiff - tests/run.in
Happy New Year
[openldap] / tests / run.in
index 02d8429e9bbb2b4bcbc375c6bcb08dbd77d00c89..9e1d65c63cfdd0f7354d250b43440f2a28e11b5b 100644 (file)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 1998-2015 The OpenLDAP Foundation.
+## Copyright 1998-2018 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -189,6 +189,7 @@ fi
 . $SRCDIR/scripts/defines.sh
 
 SCRIPTDIR="${SRCDIR}/scripts"
+ITSDIR="${SRCDIR}/data/regressions"
 SCRIPTNAME="$1"
 shift
 
@@ -198,6 +199,8 @@ elif test -x "`echo ${SCRIPTDIR}/test*-${SCRIPTNAME}`"; then
        SCRIPT="`echo ${SCRIPTDIR}/test*-${SCRIPTNAME}`"
 elif test -x "`echo ${SCRIPTDIR}/${SCRIPTNAME}-*`"; then
        SCRIPT="`echo ${SCRIPTDIR}/${SCRIPTNAME}-*`"
+elif test -x "`echo ${ITSDIR}/${SCRIPTNAME}/${SCRIPTNAME}`"; then
+       SCRIPT="`echo ${ITSDIR}/${SCRIPTNAME}/${SCRIPTNAME}`"
 else
        echo "run: ${SCRIPTNAME} not found (or not executable)"
        exit 1;