Adapt unit tests to leverage and test /etc/syslog.d/*.conf support

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-02 11:47:24 +01:00
parent 917ef4ed1d
commit 62c651a979
2 changed files with 12 additions and 0 deletions

View File

@ -5,8 +5,19 @@ if [ x"${srcdir}" = x ]; then
srcdir=.
fi
mkdir -p ${CONFD}
cat <<EOF > ${CONF}
# Nothing here yo
include ${CONFD}/*.conf
EOF
cat <<EOF > ${CONFD}/foo.conf
# Local log file, avoid sync to disk
*.* -${LOG}
EOF
cat <<EOF > ${CONFD}/bar.conf
# For remote logging
*.* @127.0.0.2
EOF

View File

@ -3,5 +3,6 @@ LOG=/tmp/${NM}.log
PID=/tmp/${NM}.pid
CAP=/tmp/${NM}.pcapng
CONF=/tmp/${NM}.conf
CONFD=/tmp/${NM}.d
SOCK=/tmp/${NM}.sock
PORT=5514