| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
tests. Kernel stashes logs temporarily, test it. Fix some races
in existing tests.
|
|
|
|
| |
and server. Together with the syslogd ktrace this helps debugging.
|
| |
|
|
|
|
| |
syslogd to shutdown. So the test could miss some log messages.
|
| |
|
|
|
|
|
|
| |
file as user _syslogd. Since /usr/obj is 0770 now, user _syslogd
cannot access this file there anymore. Create pipe.log in temporary
directory in /tmp instead.
|
| |
|
|
|
|
| |
libevent method environment is set.
|
|
|
|
|
|
| |
terminal is blocking to receive messages. Stop the fake user
terminal and look for a delayed write debug message from syslogd.
This makes the test more reliable.
|
|
|
|
|
|
|
| |
file. All subtests get an additional /dev/console entry in
syslog.conf, then check that messages appear in the console file.
Add a test that stops syslogd, calls sendsyslog2() with LOG_CONS
and checks that the message appears in the console file.
|
|
|
|
|
| |
done with a utmp entry for a pty fake login. All messages are read
from the pty and written into a log file.
|
|
|
|
| |
after sudo.
|
|
|
|
|
| |
file. They are substituted automatically, to avoid this in each
single test.
|
| |
|
|
|
|
|
|
|
| |
arguments. Add tests to check wether syslogd privsep works. This
is done for debug and foreground and daemon mode. Fstat is checked
for chroot and sockets. Ktrace dump is grepped for setting uid and
gid.
|
|
|
|
|
| |
Increase timeouts and remove races, so that the syslogd tests pass
on my sparc64 machine.
|
| |
|
|
|
|
| |
on my old sparc64.
|
|
|
|
| |
when it receives a SIGHUP.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
the ktrace output of syslogd. Also make the tests work without DNS
and without sudo.
|
| |
|
|
|
|
|
|
| |
environment variables over sudo into syslogd. Run the tests with
the select(2) and poll(2) and kqueue(2) backend. Call "make libevent"
for these tests.
|
|
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.
|