summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/syslogd/Makefile
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2014-12-28 14:08:02 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2014-12-28 14:08:02 +0000
commitfd4617a7c6b3d073626f344e37ed32776cb0348e (patch)
treebed53c2bcf044f55e21fee52241b310cec8970a2 /regress/usr.sbin/syslogd/Makefile
parent5074eadcbe2952ea5dc8377efdaa2d8568d057e0 (diff)
Add regression tests where OpenBSD syslogd is sending messages to
rsyslogd from ports. If the rsyslog package is installed, rsyslogd is used as drain to test interoperability. This will be especially useful for syslog via TCP and TLS.
Diffstat (limited to 'regress/usr.sbin/syslogd/Makefile')
-rw-r--r--regress/usr.sbin/syslogd/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/regress/usr.sbin/syslogd/Makefile b/regress/usr.sbin/syslogd/Makefile
index 5647005e1a4..a40f36d6062 100644
--- a/regress/usr.sbin/syslogd/Makefile
+++ b/regress/usr.sbin/syslogd/Makefile
@@ -1,10 +1,13 @@
-# $OpenBSD: Makefile,v 1.5 2014/09/13 23:38:24 bluhm Exp $
+# $OpenBSD: Makefile,v 1.6 2014/12/28 14:08:01 bluhm Exp $
# The following ports must be installed for the regression tests:
# p5-IO-Socket-INET6 object interface for AF_INET and AF_INET6 domain sockets
# p5-Socket6 Perl defines relating to AF_INET6 sockets
# p5-IO-Socket-SSL perl interface to SSL sockets
#
+# This package enables additional interoperability tests
+# rsyslog syslog daemon supporting databases, TCP, SSL, RELP
+#
# Check wether all required perl packages are installed. If some
# are missing print a warning and skip the tests, but do not fail.
@@ -22,10 +25,14 @@ regress:
# Automatically generate regress targets from test cases in directory.
ARGS != cd ${.CURDIR} && ls args-*.pl
+.if exists (/usr/local/sbin/rsyslogd)
TARGETS ?= ${ARGS}
+.else
+TARGETS ?= ${ARGS:Nargs-rsyslog*}
+.endif
REGRESS_TARGETS = ${TARGETS:S/^/run-regress-/}
-CLEANFILES += *.log *.log.? *.pem *.crt *.key syslogd.conf stamp-*
-CLEANFILES += *.sock ktrace.out *.ktrace *.fstat
+CLEANFILES += *.log *.log.? *.pem *.crt *.key *.conf stamp-*
+CLEANFILES += *.out *.sock ktrace.out *.ktrace *.fstat
.MAIN: all