test: fix search path for scripts

Fails when building in a sub-directory

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2021-11-22 11:22:04 +01:00
parent d0166e505d
commit 2d95e0ccf0
5 changed files with 20 additions and 5 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
. ./start.sh
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/start.sh
export MSG="no-openlog-apitest"

View File

@ -1,6 +1,9 @@
#!/bin/sh
# Test FWD between two syslogd, second binds 127.0.0.2:5555
. ./start.sh
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/start.sh
MSG="fwd and allow"

View File

@ -1,5 +1,8 @@
#!/bin/sh
. ./start.sh
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/start.sh
MSG="foobar"
MSG2="xyzzy"

View File

@ -1,6 +1,9 @@
#!/bin/sh -e
# Test '-- MARK --' in log, depends on fwd.sh
. ./start.sh
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/start.sh
check_mark()
{

View File

@ -1,5 +1,8 @@
#!/bin/sh
. ./start.sh
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/start.sh
MSG="kilroy"