mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user