]> git.sur5r.net Git - openldap/commitdiff
Modify run.in so that it can run individual regression tests
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 12 Dec 2016 19:53:14 +0000 (11:53 -0800)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 12 Dec 2016 19:53:14 +0000 (11:53 -0800)
tests/run.in

index 74e5a50b88ff4d8f9b4b1ba7792a228c96d4536c..2873f2233c6a0ac82c22bdedf526404f5f1d8617 100644 (file)
@@ -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;