iprop: Use test port for testing
This commit is contained in:
@@ -45,6 +45,7 @@ port = 49188
|
|||||||
admport = 49189
|
admport = 49189
|
||||||
pwport = 49190
|
pwport = 49190
|
||||||
bx509port = 49191
|
bx509port = 49191
|
||||||
|
ipropport = 49192
|
||||||
|
|
||||||
if HAVE_DLOPEN
|
if HAVE_DLOPEN
|
||||||
do_dlopen = -e 's,[@]DLOPEN[@],true,g'
|
do_dlopen = -e 's,[@]DLOPEN[@],true,g'
|
||||||
@@ -60,6 +61,7 @@ do_subst = $(heim_verbose)sed $(do_dlopen) \
|
|||||||
-e 's,[@]admport[@],$(admport),g' \
|
-e 's,[@]admport[@],$(admport),g' \
|
||||||
-e 's,[@]bx509port[@],$(bx509port),g' \
|
-e 's,[@]bx509port[@],$(bx509port),g' \
|
||||||
-e 's,[@]pwport[@],$(pwport),g' \
|
-e 's,[@]pwport[@],$(pwport),g' \
|
||||||
|
-e 's,[@]ipropport[@],$(ipropport),g' \
|
||||||
-e 's,[@]objdir[@],$(top_builddir)/tests/kdc,g' \
|
-e 's,[@]objdir[@],$(top_builddir)/tests/kdc,g' \
|
||||||
-e 's,[@]top_builddir[@],$(top_builddir),g' \
|
-e 's,[@]top_builddir[@],$(top_builddir),g' \
|
||||||
-e 's,[@]db_type[@],$(db_type),g' \
|
-e 's,[@]db_type[@],$(db_type),g' \
|
||||||
|
@@ -49,6 +49,7 @@ expr "X`/bin/pwd || pwd`" : "X/afs/.*" > /dev/null 2>/dev/null && exit 77
|
|||||||
R=TEST.H5L.SE
|
R=TEST.H5L.SE
|
||||||
|
|
||||||
port=@port@
|
port=@port@
|
||||||
|
ipropport=@ipropport@
|
||||||
|
|
||||||
cache="FILE:${objdir}/cache.krb5"
|
cache="FILE:${objdir}/cache.krb5"
|
||||||
keytabfile=${objdir}/iprop.keytab
|
keytabfile=${objdir}/iprop.keytab
|
||||||
@@ -195,7 +196,12 @@ kdcpid=
|
|||||||
> iprop-stats
|
> iprop-stats
|
||||||
rm -f iprop-slave-status
|
rm -f iprop-slave-status
|
||||||
|
|
||||||
ipropd_slave="${ipropd_slave} --status-file=iprop-slave-status"
|
ipropd_slave="${ipropd_slave} --status-file=iprop-slave-status --port=$ipropport"
|
||||||
|
ipropd_slave="${ipropd_slave} --hostname=slave.test.h5l.se -k ${keytab}"
|
||||||
|
ipropd_slave="${ipropd_slave} --detach localhost"
|
||||||
|
ipropd_master="${ipropd_master} --hostname=localhost -k ${keytab}"
|
||||||
|
ipropd_master="${ipropd_master} --port=$ipropport"
|
||||||
|
ipropd_master="${ipropd_master} --database=${objdir}/current-db --detach"
|
||||||
|
|
||||||
trap "echo 'killing ipropd s + m + kdc'; kill -9 \${ipdm} \${ipds} \${kdcpid} >/dev/null 2>/dev/null; tail messages.log ; tail iprop-stats; exit 1;" EXIT
|
trap "echo 'killing ipropd s + m + kdc'; kill -9 \${ipdm} \${ipds} \${kdcpid} >/dev/null 2>/dev/null; tail messages.log ; tail iprop-stats; exit 1;" EXIT
|
||||||
|
|
||||||
@@ -205,16 +211,13 @@ kdcpid=`getpid kdc`
|
|||||||
|
|
||||||
echo "starting master" ; > messages.log
|
echo "starting master" ; > messages.log
|
||||||
env ${HEIM_MALLOC_DEBUG} \
|
env ${HEIM_MALLOC_DEBUG} \
|
||||||
${ipropd_master} --hostname=localhost -k ${keytab} \
|
${ipropd_master} || { echo "ipropd-master failed to start"; exit 1; }
|
||||||
--database=${objdir}/current-db --detach ||
|
|
||||||
{ echo "ipropd-master failed to start"; exit 1; }
|
|
||||||
ipdm=`getpid ipropd-master`
|
ipdm=`getpid ipropd-master`
|
||||||
|
|
||||||
echo "starting slave" ; > messages.log
|
echo "starting slave" ; > messages.log
|
||||||
env ${HEIM_MALLOC_DEBUG} \
|
env ${HEIM_MALLOC_DEBUG} \
|
||||||
KRB5_CONFIG="${objdir}/krb5-slave.conf" \
|
KRB5_CONFIG="${objdir}/krb5-slave.conf" \
|
||||||
${ipropd_slave} --hostname=slave.test.h5l.se -k ${keytab} --detach localhost ||
|
${ipropd_slave} || { echo "ipropd-slave failed to start"; exit 1; }
|
||||||
{ echo "ipropd-slave failed to start"; exit 1; }
|
|
||||||
ipds=`getpid ipropd-slave`
|
ipds=`getpid ipropd-slave`
|
||||||
sh ${wait_kdc} ipropd-slave messages.log 'slave status change: up-to-date' || exit 1
|
sh ${wait_kdc} ipropd-slave messages.log 'slave status change: up-to-date' || exit 1
|
||||||
get_iprop_ver || exit 1
|
get_iprop_ver || exit 1
|
||||||
@@ -314,8 +317,7 @@ echo "starting slave again" ; > messages.log
|
|||||||
> iprop-stats
|
> iprop-stats
|
||||||
env ${HEIM_MALLOC_DEBUG} \
|
env ${HEIM_MALLOC_DEBUG} \
|
||||||
KRB5_CONFIG="${objdir}/krb5-slave.conf" \
|
KRB5_CONFIG="${objdir}/krb5-slave.conf" \
|
||||||
${ipropd_slave} --hostname=slave.test.h5l.se -k ${keytab} --detach localhost ||
|
${ipropd_slave} || { echo "ipropd-slave failed to start"; exit 1; }
|
||||||
{ echo "ipropd-slave failed to start"; exit 1; }
|
|
||||||
ipds=`getpid ipropd-slave`
|
ipds=`getpid ipropd-slave`
|
||||||
|
|
||||||
echo "checking slave is up again"
|
echo "checking slave is up again"
|
||||||
@@ -342,8 +344,7 @@ rm -f iprop-slave-status
|
|||||||
echo "starting slave" ; > messages.log
|
echo "starting slave" ; > messages.log
|
||||||
env ${HEIM_MALLOC_DEBUG} \
|
env ${HEIM_MALLOC_DEBUG} \
|
||||||
KRB5_CONFIG="${objdir}/krb5-slave.conf" \
|
KRB5_CONFIG="${objdir}/krb5-slave.conf" \
|
||||||
${ipropd_slave} --hostname=slave.test.h5l.se -k ${keytab} --detach localhost ||
|
${ipropd_slave} || { echo "ipropd-slave failed to start"; exit 1; }
|
||||||
{ echo "ipropd-slave failed to start"; exit 1; }
|
|
||||||
ipds=`getpid ipropd-slave`
|
ipds=`getpid ipropd-slave`
|
||||||
wait_for_slave 0
|
wait_for_slave 0
|
||||||
|
|
||||||
@@ -387,16 +388,13 @@ cp ${objdir}/current.log.tmp ${objdir}/current.log
|
|||||||
|
|
||||||
echo "starting master" ; > messages.log
|
echo "starting master" ; > messages.log
|
||||||
env ${HEIM_MALLOC_DEBUG} \
|
env ${HEIM_MALLOC_DEBUG} \
|
||||||
${ipropd_master} --hostname=localhost -k ${keytab} \
|
${ipropd_master} || { echo "ipropd-master failed to start"; exit 1; }
|
||||||
--database=${objdir}/current-db --detach ||
|
|
||||||
{ echo "ipropd-master failed to start"; exit 1; }
|
|
||||||
ipdm=`getpid ipropd-master`
|
ipdm=`getpid ipropd-master`
|
||||||
|
|
||||||
echo "starting slave" ; > messages.log
|
echo "starting slave" ; > messages.log
|
||||||
env ${HEIM_MALLOC_DEBUG} \
|
env ${HEIM_MALLOC_DEBUG} \
|
||||||
KRB5_CONFIG="${objdir}/krb5-slave.conf" \
|
KRB5_CONFIG="${objdir}/krb5-slave.conf" \
|
||||||
${ipropd_slave} --hostname=slave.test.h5l.se -k ${keytab} --detach localhost ||
|
${ipropd_slave} || { echo "ipropd-slave failed to start"; exit 1; }
|
||||||
{ echo "ipropd-slave failed to start"; exit 1; }
|
|
||||||
ipds=`getpid ipropd-slave`
|
ipds=`getpid ipropd-slave`
|
||||||
wait_for_slave -1
|
wait_for_slave -1
|
||||||
|
|
||||||
@@ -431,9 +429,7 @@ kill -0 ${ipds} || { echo "slave no longer there"; exit 1; }
|
|||||||
|
|
||||||
echo "Staring master again" ; > messages.log
|
echo "Staring master again" ; > messages.log
|
||||||
env ${HEIM_MALLOC_DEBUG} \
|
env ${HEIM_MALLOC_DEBUG} \
|
||||||
${ipropd_master} --hostname=localhost -k ${keytab} \
|
${ipropd_master} || { echo "ipropd-master failed to start"; exit 1; }
|
||||||
--database=${objdir}/current-db --detach ||
|
|
||||||
{ echo "ipropd-master failed to start"; exit 1; }
|
|
||||||
ipdm=`getpid ipropd-master`
|
ipdm=`getpid ipropd-master`
|
||||||
|
|
||||||
echo "probing for slave pid"
|
echo "probing for slave pid"
|
||||||
|
Reference in New Issue
Block a user