sysklogd/test/remote.sh
Joachim Nilsson ba9e494db2 Travis-CI: Debug networking capabilities
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-10-31 10:09:46 +01:00

24 lines
356 B
Bash
Executable File

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