1# The client writes a message to Sys::Syslog native method. 2# The syslogd writes it into a file and through a pipe. 3# The syslogd passes it via TLS to an explicit loghost. 4# The server receives the message on its TLS socket. 5# Find the message in client, file, pipe, syslogd, server log. 6# Check that syslogd and server log contain localhost address. 7 8use strict; 9use warnings; 10use Socket; 11 12our %args = ( 13 syslogd => { 14 loghost => '@tls://localhost:$connectport', 15 loggrep => { 16 qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4', 17 get_testlog() => 1, 18 }, 19 }, 20 server => { 21 listen => { domain => AF_UNSPEC, proto => "tls", addr => "localhost" }, 22 loggrep => { 23 qr/listen sock: (127.0.0.1|::1) \d+/ => 1, 24 get_testlog() => 1, 25 }, 26 }, 27); 28 291; 30