migrate to ${env_setup}
This commit is contained in:
@@ -34,14 +34,15 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
srcdir="@srcdir@"
|
env_setup="@env_setup@"
|
||||||
objdir="@objdir@"
|
objdir="@objdir@"
|
||||||
EGREP="@EGREP@"
|
|
||||||
|
|
||||||
testfailed="echo test failed; cat messages.log; exit 1"
|
. ${env_setup}
|
||||||
|
|
||||||
|
testfailed="echo test failed; exit 1"
|
||||||
|
|
||||||
# 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
|
||||||
@@ -50,16 +51,16 @@ R4=TEST4.H5L.SE
|
|||||||
|
|
||||||
port=@port@
|
port=@port@
|
||||||
|
|
||||||
kadmin="${TESTS_ENVIRONMENT} ../../kadmin/kadmin -l -r ${R}"
|
kadmin="${kadmin} -l -r ${R}"
|
||||||
kdc="${TESTS_ENVIRONMENT} ../../kdc/kdc --addresses=localhost -P $port"
|
kdc="${kdc} --addresses=localhost -P $port"
|
||||||
|
|
||||||
server=host/datan.test4.h5l.se@TEST4.H5L.ORG
|
server=host/datan.test4.h5l.se@TEST4.H5L.ORG
|
||||||
cache="FILE:${objdir}/cache.krb5"
|
cache="FILE:${objdir}/cache.krb5"
|
||||||
|
|
||||||
kinit="${TESTS_ENVIRONMENT} ../../kuser/kinit -c $cache --no-afslog"
|
kinit="${kinit} -c $cache --no-afslog"
|
||||||
klist="${TESTS_ENVIRONMENT} ../../kuser/klist -c $cache"
|
klist="${klist} -c $cache"
|
||||||
kgetcred="${TESTS_ENVIRONMENT} ../../kuser/kgetcred -c $cache"
|
kgetcred="${kgetcred} -c $cache"
|
||||||
kdestroy="${TESTS_ENVIRONMENT} ../../kuser/kdestroy -c $cache --no-unlog"
|
kdestroy="${kdestroy} -c $cache --no-unlog"
|
||||||
|
|
||||||
KRB5_CONFIG="${objdir}/krb5.conf"
|
KRB5_CONFIG="${objdir}/krb5.conf"
|
||||||
export KRB5_CONFIG
|
export KRB5_CONFIG
|
||||||
@@ -107,7 +108,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
|
||||||
@@ -149,7 +150,7 @@ ${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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user