diff options
author | 2014-10-05 18:43:05 +0000 | |
---|---|---|
committer | 2014-10-05 18:43:05 +0000 | |
commit | 1b4e4993b714b40953fe71db1ee3dc630d444d72 (patch) | |
tree | 266efa7776284191f7f01767fa85e1dae55fd64b | |
parent | The fixes to X509_PURPOSE_add() in r1.18 actually could cause a global (diff) | |
download | wireguard-openbsd-1b4e4993b714b40953fe71db1ee3dc630d444d72.tar.xz wireguard-openbsd-1b4e4993b714b40953fe71db1ee3dc630d444d72.zip |
Test that the specified libevent backend kqueue(2) or poll(2) or
select(2) is used by syslogd.
-rw-r--r-- | regress/usr.sbin/syslogd/args-libevent-kqueue.pl | 23 | ||||
-rw-r--r-- | regress/usr.sbin/syslogd/args-libevent-poll.pl | 23 | ||||
-rw-r--r-- | regress/usr.sbin/syslogd/args-libevent-select.pl | 23 |
3 files changed, 69 insertions, 0 deletions
diff --git a/regress/usr.sbin/syslogd/args-libevent-kqueue.pl b/regress/usr.sbin/syslogd/args-libevent-kqueue.pl new file mode 100644 index 00000000000..570c5ee9f05 --- /dev/null +++ b/regress/usr.sbin/syslogd/args-libevent-kqueue.pl @@ -0,0 +1,23 @@ +# 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. +# Find the message in client, file, pipe, syslogd, server log. +# Check in log and ktrace that kqueue has been used. + +use strict; +use warnings; + +$ENV{EVENT_NOKQUEUE} = 0; +$ENV{EVENT_NOPOLL} = 1; +$ENV{EVENT_NOSELECT} = 1; + +our %args = ( + syslogd => { + loggrep => qr/libevent using: kqueue/, + ktrace => 1, + kdump => qr/CALL kqueue/, + }, +); + +1; diff --git a/regress/usr.sbin/syslogd/args-libevent-poll.pl b/regress/usr.sbin/syslogd/args-libevent-poll.pl new file mode 100644 index 00000000000..1dd688a1ab6 --- /dev/null +++ b/regress/usr.sbin/syslogd/args-libevent-poll.pl @@ -0,0 +1,23 @@ +# 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. +# Find the message in client, file, pipe, syslogd, server log. +# Check in log and ktrace that poll has been used. + +use strict; +use warnings; + +$ENV{EVENT_NOKQUEUE} = 1; +$ENV{EVENT_NOPOLL} = 0; +$ENV{EVENT_NOSELECT} = 1; + +our %args = ( + syslogd => { + loggrep => qr/libevent using: poll/, + ktrace => 1, + kdump => qr/CALL poll/, + }, +); + +1; diff --git a/regress/usr.sbin/syslogd/args-libevent-select.pl b/regress/usr.sbin/syslogd/args-libevent-select.pl new file mode 100644 index 00000000000..9c9bb3662ba --- /dev/null +++ b/regress/usr.sbin/syslogd/args-libevent-select.pl @@ -0,0 +1,23 @@ +# 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. +# Find the message in client, file, pipe, syslogd, server log. +# Check in log and ktrace that select has been used. + +use strict; +use warnings; + +$ENV{EVENT_NOKQUEUE} = 1; +$ENV{EVENT_NOPOLL} = 1; +$ENV{EVENT_NOSELECT} = 0; + +our %args = ( + syslogd => { + loggrep => qr/libevent using: select/, + ktrace => 1, + kdump => qr/CALL select/, + }, +); + +1; |