sysklogd/test/remote.sh
Joachim Nilsson 892ee80e59 Trim test times now that we've fixed the root cause on Travis-CI
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-10-31 10:52:27 +01:00

24 lines
332 B
Bash
Executable File

#!/bin/sh
set -ex
. ./test.rc
MSG="kilroy"
/sbin/ifconfig -a
tshark -Qni lo -w ${CAP} port ${PORT} &
#tcpdump -qlni lo -w ${CAP} port ${PORT} &
PID="$!"
sleep 1
ps fax |grep -A3 tshark
../src/logger -u ${SOCK} ${MSG}
sleep 1
kill -TERM ${PID}
wait ${PID}
tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG}
rm ${CAP}