From 87292c6f957a89f2dfff7ae8e49a34a728bb2519 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 29 Oct 2019 13:58:33 +0100 Subject: [PATCH] Verify logging to local file via syslogd Signed-off-by: Joachim Nilsson --- test/Makefile.am | 2 ++ test/local.sh | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100755 test/local.sh diff --git a/test/Makefile.am b/test/Makefile.am index bb71e98..c0d5b82 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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 diff --git a/test/local.sh b/test/local.sh new file mode 100755 index 0000000..046988d --- /dev/null +++ b/test/local.sh @@ -0,0 +1,8 @@ +#!/bin/sh +. ./test.rc + +MSG="foobar" + +../src/logger -u ${SCK} ${MSG} + +grep ${MSG} ${LOG}