1# The client writes a message to a localhost IPv4 UDP socket.
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# Find the message in client, file, pipe, syslogd, server log.
6# Check that the file log contains the localhost name.
7
8use strict;
9use warnings;
10use Socket;
11
12our %args = (
13    client => {
14	connect => { domain => AF_INET, addr => "127.0.0.1", port => 514 },
15    },
16    syslogd => {
17	options => ["-u"],
18	fstat => {
19	    qr/^root .* internet/ => 0,
20	    qr/^_syslogd .* internet/ => 2,
21	},
22    },
23    file => {
24	loggrep => qr/ localhost /. get_testgrep(),
25    },
26);
27
281;
29