Run syslogd regressions tests. As only one syslogd can run per
authorbluhm <bluhm@openbsd.org>
Wed, 20 Aug 2014 20:52:14 +0000 (20:52 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 20 Aug 2014 20:52:14 +0000 (20:52 +0000)
commit1f53c19fe11027baaa79c8fdd5154bbd2e2d526f
treeee255d78f7cd09d07397b41c2460919bbeaa4dea
parentbd6df50781f819bb0c67c810e6f0e3efbc245a74
Run syslogd regressions tests.  As only one syslogd can run per
machine, each test kills any syslogd first.  At the end the system's
syslogd gets restarted.
The test framework runs a client, and a server, and a syslogd.  The
messages are passed via the log socket or via UDP from the client
to syslogd.  From there UDP transport is used to reach the server.
All processes write log files where the message has to show up.
The test arguments are kept in the args-*.pl files.
The content of a log file, the data sent to a pipe process and what
the server received are checked.  The invocation of the sendsyslog(2)
syscall is checked with ktrace, the open file descriptors of syslogd
are checked with fstat.
16 files changed:
regress/usr.sbin/syslogd/Client.pm [new file with mode: 0644]
regress/usr.sbin/syslogd/LICENSE [new file with mode: 0644]
regress/usr.sbin/syslogd/Makefile [new file with mode: 0644]
regress/usr.sbin/syslogd/Proc.pm [new file with mode: 0644]
regress/usr.sbin/syslogd/README [new file with mode: 0644]
regress/usr.sbin/syslogd/Server.pm [new file with mode: 0644]
regress/usr.sbin/syslogd/Syslogd.pm [new file with mode: 0644]
regress/usr.sbin/syslogd/args-client-udp-nodns.pl [new file with mode: 0644]
regress/usr.sbin/syslogd/args-client-udp.pl [new file with mode: 0644]
regress/usr.sbin/syslogd/args-client-udp4-nodns.pl [new file with mode: 0644]
regress/usr.sbin/syslogd/args-client-udp4.pl [new file with mode: 0644]
regress/usr.sbin/syslogd/args-default.pl [new file with mode: 0644]
regress/usr.sbin/syslogd/args-sendsyslog.pl [new file with mode: 0644]
regress/usr.sbin/syslogd/args-socket.pl [new file with mode: 0644]
regress/usr.sbin/syslogd/funcs.pl [new file with mode: 0644]
regress/usr.sbin/syslogd/syslogd.pl [new file with mode: 0644]