diff options
Diffstat (limited to 'regress/usr.sbin/syslogd/args-memory-list.pl')
-rw-r--r-- | regress/usr.sbin/syslogd/args-memory-list.pl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/regress/usr.sbin/syslogd/args-memory-list.pl b/regress/usr.sbin/syslogd/args-memory-list.pl new file mode 100644 index 00000000000..12697d60728 --- /dev/null +++ b/regress/usr.sbin/syslogd/args-memory-list.pl @@ -0,0 +1,26 @@ +# The client writes a message to Sys::Syslog native method. +# The syslogd writes it into a file and through a pipe. +# The syslogd passes it via UDP to the loghost. +# The server receives the message on its UDP socket. +# Syslogc lists the memory logs. +# Find the message in client, file, pipe, syslogd, server log. + +use strict; +use warnings; + +our %args = ( + syslogd => { + memory => 1, + loggrep => { + qr/Accepting control connection/ => 1, + qr/ctlcmd 4/ => 1, + get_testlog() => 1, + }, + }, + syslogc => { + options => ["-q"], + loggrep => qr/^memory /, + }, +); + +1; |