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:
parent
917ef4ed1d
commit
62c651a979
@ -5,8 +5,19 @@ if [ x"${srcdir}" = x ]; then
|
|||||||
srcdir=.
|
srcdir=.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p ${CONFD}
|
||||||
cat <<EOF > ${CONF}
|
cat <<EOF > ${CONF}
|
||||||
|
# Nothing here yo
|
||||||
|
include ${CONFD}/*.conf
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat <<EOF > ${CONFD}/foo.conf
|
||||||
|
# Local log file, avoid sync to disk
|
||||||
*.* -${LOG}
|
*.* -${LOG}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat <<EOF > ${CONFD}/bar.conf
|
||||||
|
# For remote logging
|
||||||
*.* @127.0.0.2
|
*.* @127.0.0.2
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
@ -3,5 +3,6 @@ LOG=/tmp/${NM}.log
|
|||||||
PID=/tmp/${NM}.pid
|
PID=/tmp/${NM}.pid
|
||||||
CAP=/tmp/${NM}.pcapng
|
CAP=/tmp/${NM}.pcapng
|
||||||
CONF=/tmp/${NM}.conf
|
CONF=/tmp/${NM}.conf
|
||||||
|
CONFD=/tmp/${NM}.d
|
||||||
SOCK=/tmp/${NM}.sock
|
SOCK=/tmp/${NM}.sock
|
||||||
PORT=5514
|
PORT=5514
|
Loading…
Reference in New Issue
Block a user