Add simple API test, syslog() no call to openlog()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2019-11-03 15:54:36 +01:00
parent c05956010c
commit b1548e7c73
5 changed files with 35 additions and 2 deletions

7
test/api.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -e
. ./test.rc
export MSG="no-openlog-apitest"
./api
grep "api ${MSG}" ${LOG}