sysklogd/test/remote.sh
Joachim Nilsson 7a605f1435 Increase delay in remote logging test for Travis-CI
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-10-31 09:53:56 +01:00

21 lines
311 B
Bash
Executable File

#!/bin/sh
set -x
. ./test.rc
MSG="kilroy"
tshark -Qni lo -w ${CAP} port ${PORT} 2>/dev/null &
#tcpdump -qlni lo -w ${CAP} port ${PORT} 2>/dev/null &
PID="$!"
sleep 2
../src/logger -u ${SOCK} ${MSG}
sleep 2
kill -TERM ${PID}
wait ${PID}
tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG}
rm ${CAP}