diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-01-10 21:39:44 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-02-19 00:19:06 +0000 |
commit | 04403ab0b5778126d98d5c9dc8064405688129e0 (patch) | |
tree | 6d4b7c9f4b969726e8c1a5d1af682b2a42540f9b /test | |
parent | 4c2efd7a1bc5b018f2e05a0d739fd856967e3de7 (diff) |
Add queue_size variable. Bug 1406
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0621 | 22 | ||||
-rw-r--r-- | test/log/0621 | 11 | ||||
-rwxr-xr-x | test/runtest | 3 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0621 | 19 | ||||
-rw-r--r-- | test/stderr/0433 | 6 | ||||
-rw-r--r-- | test/stderr/0438 | 3 | ||||
-rw-r--r-- | test/stderr/0609 | 1 | ||||
-rw-r--r-- | test/stderr/1007 | 8 | ||||
-rw-r--r-- | test/stderr/2201 | 1 |
9 files changed, 74 insertions, 0 deletions
diff --git a/test/confs/0621 b/test/confs/0621 new file mode 100644 index 000000000..32d906203 --- /dev/null +++ b/test/confs/0621 @@ -0,0 +1,22 @@ +# Exim test configuration 0621 + +.include DIR/aux-var/std_conf_prefix + + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex +queue_only + +log_selector = +millisec + +acl_not_smtp = on_rcpt + +begin acl + +on_rcpt: + accept logwrite = queue_size: $queue_size + + +# End diff --git a/test/log/0621 b/test/log/0621 new file mode 100644 index 000000000..9f7acbfd2 --- /dev/null +++ b/test/log/0621 @@ -0,0 +1,11 @@ +2017-07-30 18:51:05.712 10HmaX-0005vi-00 queue_size: 0 +2017-07-30 18:51:05.712 10HmaX-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss +2017-07-30 18:51:05.712 10HmaY-0005vi-00 queue_size: 0 +2017-07-30 18:51:05.712 10HmaY-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss +2017-07-30 18:51:05.712 10HmaZ-0005vi-00 queue_size: 0 +2017-07-30 18:51:05.712 10HmaZ-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss +2017-07-30 18:51:05.712 10HmbA-0005vi-00 queue_size: 3 +2017-07-30 18:51:05.712 10HmbA-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss + +******** SERVER ******** +2017-07-30 18:51:05.712 exim x.yz daemon started: pid=pppp, no queue runs, listening for SMTP on port PORT_D diff --git a/test/runtest b/test/runtest index d9db2ccc8..0dc5ec967 100755 --- a/test/runtest +++ b/test/runtest @@ -1211,6 +1211,9 @@ RESET_AFTER_EXTRA_LINE_READ: # are unset, because dane ain't always there. next if /in\shosts_require_dane\?\sno\s\(option\sunset\)/x; + # daemon notifier socket + s/^\d+ creating notifier socket$/ppppp creating notifier socket/; + # DISABLE_OCSP next if /in hosts_requ(est|ire)_ocsp\? (no|yes)/; diff --git a/test/scripts/0000-Basic/0621 b/test/scripts/0000-Basic/0621 new file mode 100644 index 000000000..53512ade4 --- /dev/null +++ b/test/scripts/0000-Basic/0621 @@ -0,0 +1,19 @@ +# $queue_size +# +exim -bd -DSERVER=server -oX PORT_D +**** +# +exim a@test.ex +**** +exim a@test.ex +**** +exim a@test.ex +Subject: msg 3 +**** +sleep 4 +exim a@test.ex +Subject: msg 4 +**** +# +killdaemon +no_msglog_check diff --git a/test/stderr/0433 b/test/stderr/0433 index d0f69f0cb..6164b0f41 100644 --- a/test/stderr/0433 +++ b/test/stderr/0433 @@ -7,6 +7,7 @@ configuration file is TESTSUITE/test-config admin user dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +ppppp creating notifier socket listening on all interfaces (IPv4) port 1225 pid written to TESTSUITE/spool/exim-daemon.pid changed uid/gid: running as a daemon @@ -23,6 +24,7 @@ configuration file is TESTSUITE/test-config admin user dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +ppppp creating notifier socket listening on all interfaces (IPv4) port 1225 listening on all interfaces (IPv4) port 1226 pid written to TESTSUITE/spool/exim-daemon.pid @@ -40,6 +42,7 @@ configuration file is TESTSUITE/test-config admin user dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +ppppp creating notifier socket listening on 127.0.0.1 port 1228 listening on all interfaces (IPv4) port 1225 listening on all interfaces (IPv4) port 1226 @@ -58,6 +61,7 @@ configuration file is TESTSUITE/test-config admin user dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +ppppp creating notifier socket listening on all interfaces (IPv4) port 1225 listening on all interfaces (IPv4) port 1226 listening on 127.0.0.1 port 1228 @@ -78,6 +82,7 @@ dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME daemon_smtp_port overridden by -oX: <: 1227 +creating notifier socket listening on 127.0.0.1 port 1228 listening on all interfaces (IPv4) port 1227 pid written to TESTSUITE/spool/exim-daemon.pid @@ -97,6 +102,7 @@ dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME local_interfaces overridden by -oX: <; 0.0.0.0.1225; 0.0.0.0.1226 +creating notifier socket listening on all interfaces (IPv4) port 1225 listening on all interfaces (IPv4) port 1226 pid written to TESTSUITE/spool/exim-daemon.pid diff --git a/test/stderr/0438 b/test/stderr/0438 index bac5bc1a6..b4afb0a5b 100644 --- a/test/stderr/0438 +++ b/test/stderr/0438 @@ -9,6 +9,7 @@ dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME daemon_smtp_port overridden by -oX: <: 1225 +creating notifier socket listening on all interfaces (IPv4) port 1225 pid written to TESTSUITE/spool/exim-daemon.pid changed uid/gid: running as a daemon @@ -27,6 +28,7 @@ dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME daemon_smtp_port overridden by -oX: <: 1225 +creating notifier socket listening on all interfaces (IPv4) port 1225 pid written to TESTSUITE/spool/exim-daemon.anotherpid changed uid/gid: running as a daemon @@ -45,6 +47,7 @@ dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME daemon_smtp_port overridden by -oX: <: 1225 +creating notifier socket listening on all interfaces (IPv4) port 1225 pid written to TESTSUITE/spool/mypidfile changed uid/gid: running as a daemon diff --git a/test/stderr/0609 b/test/stderr/0609 index 8cb2b5b91..d8b91de15 100644 --- a/test/stderr/0609 +++ b/test/stderr/0609 @@ -6,6 +6,7 @@ admin user dropping to exim gid; retaining priv uid ppppp daemon_smtp_port overridden by -oX: ppppp <: 1225 +ppppp creating notifier socket ppppp listening on all interfaces (IPv4) port 1225 ppppp pid written to TESTSUITE/spool/exim-daemon.pid ppppp LOG: MAIN diff --git a/test/stderr/1007 b/test/stderr/1007 index ad5f748f9..95a96a4d0 100644 --- a/test/stderr/1007 +++ b/test/stderr/1007 @@ -7,6 +7,7 @@ configuration file is TESTSUITE/test-config admin user dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +ppppp creating notifier socket listening on all interfaces (IPv6) port 1225 listening on all interfaces (IPv4) port 1225 pid written to TESTSUITE/spool/exim-daemon.pid @@ -24,6 +25,7 @@ configuration file is TESTSUITE/test-config admin user dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +ppppp creating notifier socket listening on all interfaces (IPv6) port 1225 listening on all interfaces (IPv4) port 1225 listening on all interfaces (IPv6) port 1226 @@ -43,6 +45,7 @@ configuration file is TESTSUITE/test-config admin user dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +ppppp creating notifier socket listening on all interfaces (IPv6) port 1225 listening on all interfaces (IPv4) port 1225 listening on all interfaces (IPv6) port 1226 @@ -63,6 +66,7 @@ configuration file is TESTSUITE/test-config admin user dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +ppppp creating notifier socket listening on all interfaces (IPv6) port 1225 listening on all interfaces (IPv4) port 1225 listening on all interfaces (IPv6) port 1226 @@ -83,6 +87,7 @@ configuration file is TESTSUITE/test-config admin user dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME +ppppp creating notifier socket listening on ip6:ip6:ip6:ip6:ip6:ip6:ip6:ip6 port 1225 listening on ip6:ip6:ip6:ip6:ip6:ip6:ip6:ip6 port 1226 pid written to TESTSUITE/spool/exim-daemon.pid @@ -102,6 +107,7 @@ dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME daemon_smtp_port overridden by -oX: <: 1227 +creating notifier socket listening on all interfaces (IPv6) port 1227 listening on all interfaces (IPv4) port 1227 listening on 127.0.0.1 port 1228 @@ -124,6 +130,7 @@ daemon_smtp_port overridden by -oX: <; 1227; 1225 local_interfaces overridden by -oX: <; 127.0.0.1 +creating notifier socket listening on 127.0.0.1 port 1227 listening on 127.0.0.1 port 1225 pid written to TESTSUITE/spool/exim-daemon.pid @@ -143,6 +150,7 @@ dropping to exim gid; retaining priv uid originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=CALLER_NAME local_interfaces overridden by -oX: <; ::0.1225; 0.0.0.0.1225; 0.0.0.0.1226 +creating notifier socket listening on all interfaces (IPv6) port 1225 listening on all interfaces (IPv4) port 1225 listening on all interfaces (IPv4) port 1226 diff --git a/test/stderr/2201 b/test/stderr/2201 index 23d3d6a5f..2d1386af6 100644 --- a/test/stderr/2201 +++ b/test/stderr/2201 @@ -193,6 +193,7 @@ admin user dropping to exim gid; retaining priv uid ppppp daemon_smtp_port overridden by -oX: ppppp <: 1225 +ppppp creating notifier socket ppppp listening on all interfaces (IPv4) port 1225 ppppp pid written to TESTSUITE/spool/exim-daemon.pid ppppp LOG: MAIN |