2022-05-28 19:58:00 +05:30
|
|
|
#!/bin/sh
|
|
|
|
# Start, SIGHUP, and log a run of syslogd under Valgrind
|
|
|
|
# shellcheck disable=SC1090
|
2022-05-29 20:29:32 +05:30
|
|
|
#set -x
|
2022-05-28 19:58:00 +05:30
|
|
|
|
|
|
|
if [ x"${srcdir}" = x ]; then
|
|
|
|
srcdir=.
|
|
|
|
fi
|
|
|
|
|
|
|
|
# shellcheck disable=SC2034
|
|
|
|
VALGRIND="valgrind --leak-check=full --show-leak-kinds=all"
|
|
|
|
. ${srcdir}/lib.sh
|
|
|
|
|
|
|
|
# Only needed for verifying correct RFC3164 parsing
|
|
|
|
cat <<-EOF >"${CONFD}/99-wall.conf"
|
|
|
|
*.=emerg *
|
|
|
|
EOF
|
|
|
|
setup
|
|
|
|
|
|
|
|
|
|
|
|
print "TEST: Starting"
|
|
|
|
|
|
|
|
#../src/logger -u "${SOCK}" ${MSG}
|
|
|
|
|
|
|
|
# Wait for any OS delays
|
|
|
|
#sleep 1
|
|
|
|
|
|
|
|
reload
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
OK
|