migrate to ${env_setup}

This commit is contained in:
Love Hornquist Astrand
2009-09-07 13:05:31 -07:00
parent 2b9ca6c027
commit 557685fed4

View File

@@ -34,14 +34,16 @@
# $Id$ # $Id$
# #
srcdir="@srcdir@" top_builddir="@top_builddir@"
env_setup="@env_setup@"
objdir="@objdir@" objdir="@objdir@"
EGREP="@EGREP@"
testfailed="echo test failed; cat messages.log; exit 1" testfailed="echo test failed; cat messages.log; exit 1"
. ${env_setup}
# If there is no useful db support compile in, disable test # If there is no useful db support compile in, disable test
../db/have-db || exit 77 ${have_db} || exit 77
R=TEST.H5L.SE R=TEST.H5L.SE
R2=TEST2.H5L.SE R2=TEST2.H5L.SE
@@ -100,7 +102,7 @@ echo Starting kdc
${kdc} & ${kdc} &
kdcpid=$! kdcpid=$!
sh ${srcdir}/wait-kdc.sh sh ${wait_kdc}
if [ "$?" != 0 ] ; then if [ "$?" != 0 ] ; then
kill -9 ${kdcpid} kill -9 ${kdcpid}
exit 1 exit 1
@@ -137,7 +139,7 @@ ${klist} -v | grep des-cbc-crc > /dev/null || { ec=1 ; eval "${testfailed}"; }
${kdestroy} ${kdestroy}
echo "killing kdc (${kdcpid})" echo "killing kdc (${kdcpid})"
sh ${srcdir}/leaks-kill.sh kdc $kdcpid || exit 1 sh ${leaks_kill} kdc $kdcpid || exit 1
trap "" EXIT trap "" EXIT