Use --detach in tests to avoid waiting

This commit is contained in:
Nicolas Williams
2016-12-04 16:42:33 -06:00
parent 8735d47d8b
commit 2027aa11ed
26 changed files with 95 additions and 205 deletions

View File

@@ -10,6 +10,7 @@ TESTS = $(SCRIPT_TESTS)
port = 49188
do_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \
-e 's,[@]env_setup[@],$(top_builddir)/tests/bin/setup-env,g' \
-e 's,[@]port[@],$(port),g' \
-e 's,[@]objdir[@],$(top_builddir)/tests/plugin,g' \
-e 's,[@]EGREP[@],$(EGREP),g'

View File

@@ -35,9 +35,12 @@
#
srcdir="@srcdir@"
env_setup="@env_setup@"
objdir="@objdir@"
EGREP="@EGREP@"
. ${env_setup}
testfailed="echo test failed; cat messages.log; exit 1"
# If there is no useful db support compile in, disable test
@@ -92,14 +95,8 @@ echo "Empty log"
> messages.log
echo Starting kdc
${kdc} &
kdcpid=$!
sh ${srcdir}/../kdc/wait-kdc.sh
if [ "$?" != 0 ] ; then
kill ${kdcpid}
exit 1
fi
${kdc} --detach --testing || { echo "kdc failed to start"; exit 1; }
kdcpid=`getpid kdc`
trap "kill ${kdcpid}; echo signal killing kdc; exit 1;" EXIT