test: run all syslogd with kernel logging disabled
Since we currently cannot test kernel logging, and we don't want to risk any log messages from the kernel to suddenly pop up and disturb tests, this patch explicitly disables it. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
e4330515e8
commit
99028414c3
@ -19,7 +19,7 @@ kern.* /dev/null
|
||||
*.*;kern.none ${LOG2} ;RFC5424
|
||||
EOF
|
||||
|
||||
../src/syslogd -a 127.0.0.2:* -b :${PORT2} -d -F -f ${CONF2} -p ${SOCK2} -m1 -C ${CACHE2} -P ${PID2} &
|
||||
../src/syslogd -K -a 127.0.0.2:* -b :${PORT2} -d -F -f ${CONF2} -p ${SOCK2} -m1 -C ${CACHE2} -P ${PID2} &
|
||||
|
||||
kill -HUP `cat ${PID}`
|
||||
sleep 2
|
||||
|
@ -99,7 +99,7 @@ setup()
|
||||
*.* @127.0.0.2:${PORT2} ;RFC3164
|
||||
EOF
|
||||
|
||||
../src/syslogd -m1 -b :${PORT} -d -sF -f ${CONF} -p ${SOCK} -p ${ALTSOCK} -C ${CACHE} -P ${PID} &
|
||||
../src/syslogd -K -m1 -b :${PORT} -d -sF -f ${CONF} -p ${SOCK} -p ${ALTSOCK} -C ${CACHE} -P ${PID} &
|
||||
|
||||
sleep 2
|
||||
cat ${PID} >> "$DIR/PIDs"
|
||||
|
@ -10,7 +10,7 @@ cat <<EOF > ${CONF}
|
||||
*.* -${LOG} ;rotate=10M:5,RFC5424
|
||||
EOF
|
||||
|
||||
../src/syslogd -m1 -b :${PORT} -d -sF -f ${CONF} -p ${SOCK} -p ${ALTSOCK} >${LOG2} &
|
||||
../src/syslogd -K -m1 -b :${PORT} -d -sF -f ${CONF} -p ${SOCK} -p ${ALTSOCK} >${LOG2} &
|
||||
echo "$!" > ${PID}
|
||||
cat ${PID} >> "$DIR/PIDs"
|
||||
|
||||
|
@ -15,7 +15,7 @@ export MSG="kilroy"
|
||||
cat <<-EOF >${CONFD2}/50-default.conf
|
||||
*.* ${LOG2}
|
||||
EOF
|
||||
../src/syslogd -a 127.0.0.2:* -b :${PORT2} -d -F -f ${CONF2} -p ${SOCK2} -m1 -C ${CACHE2} -P ${PID2} &
|
||||
../src/syslogd -K -a 127.0.0.2:* -b :${PORT2} -d -F -f ${CONF2} -p ${SOCK2} -m1 -C ${CACHE2} -P ${PID2} &
|
||||
sleep 3
|
||||
cat ${PID2} >> "$DIR/PIDs"
|
||||
kill -USR1 `cat ${PID2}`
|
||||
|
Loading…
Reference in New Issue
Block a user