Follow-up to 69608f7
: Update API test with TAG formatting change
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
97dfe638b4
commit
d6370aeb1f
@ -9,7 +9,7 @@ export MSG="no-openlog-apitest"
|
||||
|
||||
echo "= Phase 1 - simple syslog(), no openlog() ==============="
|
||||
./api
|
||||
grep "api ${MSG}" ${LOG}
|
||||
grep "api: ${MSG}" ${LOG}
|
||||
|
||||
echo "= Phase 2 - syslog() with openlog() & custom facility ==="
|
||||
cat <<EOF >${CONFD}/console.conf
|
||||
@ -19,11 +19,11 @@ kill -HUP `cat ${PID}`
|
||||
sleep 2
|
||||
|
||||
./api -i foo
|
||||
grep "foo ${MSG}" ${LOGCONS}
|
||||
grep "foo: ${MSG}" ${LOGCONS}
|
||||
|
||||
echo "= Phase 3 - Verify setlogmask() filters out LOG_INFO ===="
|
||||
./api -i xyzzy -l
|
||||
grep "xyzzy ${MSG}" ${LOGCONS} || true
|
||||
grep "xyzzy: ${MSG}" ${LOGCONS} || true
|
||||
|
||||
echo "= Phase 4 - Verify RFC5424 API with syslogp() ==========="
|
||||
cat <<EOF >${CONFD}/v1.conf
|
||||
|
Loading…
Reference in New Issue
Block a user