1# The client writes message to overflow the memory buffer method. 2# The syslogd writes it into a file and through a pipe. 3# The syslogd passes it via UDP to the loghost. 4# The server receives the message on its UDP socket. 5# Syslogc checks the memory logs. 6# Find the message in client, file, pipe, syslogd, server log. 7# Check that syslogc -o reports overflow. 8 9use strict; 10use warnings; 11 12our %args = ( 13 client => { 14 func => sub { 15 my $self = shift; 16 write_lines($self, 40, 2000); 17 write_log($self); 18 }, 19 }, 20 syslogd => { 21 memory => 1, 22 loggrep => { 23 qr/Accepting control connection/ => 1, 24 qr/ctlcmd 5/ => 1, 25 get_testgrep() => 1, 26 }, 27 }, 28 syslogc => { 29 options => ["-o", "memory"], 30 exit => 1, 31 loggrep => { 32 qr/^memory has overflowed/ => 1, 33 }, 34 }, 35); 36 371; 38