sysklogd/test/logger.sh
Joachim Wiberg 87ff7d6901 test: verify remote logging in logger tool
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2022-07-31 22:56:16 +02:00

22 lines
447 B
Bash
Executable File

#!/bin/sh
# Verify logger capabilities, for now just remote logger
# shellcheck disable=SC1090
#set -x
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/lib.sh
ip link set lo up
print "Starting stand-alone logger test ..."
cap_start
logger -b -H "$(basename "$0")" -h 127.0.0.3 -I $$ -t test1 "Kilroy was here"
cap_stop
# Check for the composed BSD procname{PID] syntax
STR="test1\[$$\]"
cap_find "$STR" || FAIL "Cannot find: $STR"
OK