Verify logging to local file via syslogd

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-10-29 13:58:33 +01:00
parent fc4840a698
commit 87292c6f95
2 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,8 @@
EXTRA_DIST = start.sh stop.sh
EXTRA_DIST += local.sh
CLEANFILES = *~ *.trs *.log
TEST_EXTENSIONS = .sh
TESTS = start.sh
TESTS += local.sh
TESTS += stop.sh

8
test/local.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
. ./test.rc
MSG="foobar"
../src/logger -u ${SCK} ${MSG}
grep ${MSG} ${LOG}