tests: improved radius log presentation

Include the radiusd output with debugging information on stdout
for the radius tests. This allows better visibility to potential
configuration issues of radiusd.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2023-12-25 12:07:14 +01:00
parent 6ac5c62d08
commit 21e35358b4
5 changed files with 15 additions and 5 deletions

View File

@@ -66,6 +66,8 @@ function finish {
test -n "${CLIPID}" && rm -f ${CLIPID} >/dev/null 2>&1
test -n "${CONFIG}" && rm -f ${CONFIG} >/dev/null 2>&1
rm -f ${OUTFILE} 2>&1
test -f "${RADIUSLOG}" && cat "${RADIUSLOG}"
rm -f "${RADIUSLOG}"
}
trap finish EXIT
@@ -109,7 +111,7 @@ ${CMDNS2} ${IP} link set dev lo up
# Run servers
rm -f ${RADIUSLOG}
${CMDNS2} ${RADIUSD} -d ${srcdir}/data/raddb/ -s -x -l ${RADIUSLOG} &
${CMDNS2} ${RADIUSD} -d ${srcdir}/data/raddb/ -s -xx -l ${RADIUSLOG} &
RADIUSPID=$!
update_config radius.config