From 62c651a9794f08caf8424d024226f69301cfa90f Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 2 Nov 2019 11:47:24 +0100 Subject: [PATCH] Adapt unit tests to leverage and test /etc/syslog.d/*.conf support Signed-off-by: Joachim Nilsson --- test/start.sh | 11 +++++++++++ test/test.rc | 1 + 2 files changed, 12 insertions(+) diff --git a/test/start.sh b/test/start.sh index 49b5762..d8a53a5 100755 --- a/test/start.sh +++ b/test/start.sh @@ -5,8 +5,19 @@ if [ x"${srcdir}" = x ]; then srcdir=. fi +mkdir -p ${CONFD} cat < ${CONF} +# Nothing here yo +include ${CONFD}/*.conf +EOF + +cat < ${CONFD}/foo.conf +# Local log file, avoid sync to disk *.* -${LOG} +EOF + +cat < ${CONFD}/bar.conf +# For remote logging *.* @127.0.0.2 EOF diff --git a/test/test.rc b/test/test.rc index da5610e..4d00bb5 100644 --- a/test/test.rc +++ b/test/test.rc @@ -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 \ No newline at end of file