mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 15:10:22 -05:00
Find scripts by short names (test000, rootdse)
This commit is contained in:
parent
11e23f6903
commit
6308a45de6
1 changed files with 10 additions and 3 deletions
13
tests/run.in
13
tests/run.in
|
|
@ -84,12 +84,19 @@ export BACKEND WAIT KILLSERVERS PRESERVE USERDATA
|
|||
if test $# = 0 ; then
|
||||
echo "$USAGE"; exit 1
|
||||
fi
|
||||
|
||||
SCRIPTDIR="${SRCDIR}/scripts"
|
||||
SCRIPTNAME="$1"
|
||||
SCRIPT="${SRCDIR}/scripts/${SCRIPTNAME}"
|
||||
shift
|
||||
|
||||
if test ! -x "${SCRIPT}" ; then
|
||||
echo "run: ${SCRIPT} not found (or not executable)"
|
||||
if test -x "${SCRIPTDIR}/${SCRIPTNAME}" ; then
|
||||
SCRIPT="${SCRIPTDIR}/${SCRIPTNAME}"
|
||||
elif test -x "`echo ${SCRIPTDIR}/test*-${SCRIPTNAME}`"; then
|
||||
SCRIPT="`echo ${SCRIPTDIR}/test*-${SCRIPTNAME}`"
|
||||
elif test -x "`echo ${SCRIPTDIR}/${SCRIPTNAME}-*`"; then
|
||||
SCRIPT="`echo ${SCRIPTDIR}/${SCRIPTNAME}-*`"
|
||||
else
|
||||
echo "run: ${SCRIPTNAME} not found (or not executable)"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue