From 86c6c56a237a964726a5b7fd5a72ae43a79e7ebc Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Thu, 10 Jul 2014 20:53:14 +0000 Subject: Check for the exact number of done requests in relayd log. --- regress/usr.sbin/relayd/args-http-persistent.pl | 4 +++- regress/usr.sbin/relayd/args-http-put.pl | 4 +++- regress/usr.sbin/relayd/args-https-persistent.pl | 4 +++- regress/usr.sbin/relayd/args-https-put.pl | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/regress/usr.sbin/relayd/args-http-persistent.pl b/regress/usr.sbin/relayd/args-http-persistent.pl index cd532c1b30b..bb2279f205b 100644 --- a/regress/usr.sbin/relayd/args-http-persistent.pl +++ b/regress/usr.sbin/relayd/args-http-persistent.pl @@ -14,7 +14,9 @@ our %args = ( "match request header log foo", "match response header log bar", ], - loggrep => qr/\, done/, + loggrep => { + qr/, (?:done|last write \(done\))/ => (1 + @lengths), + } }, server => { func => \&http_server, diff --git a/regress/usr.sbin/relayd/args-http-put.pl b/regress/usr.sbin/relayd/args-http-put.pl index a498a043517..39abc8579a0 100644 --- a/regress/usr.sbin/relayd/args-http-put.pl +++ b/regress/usr.sbin/relayd/args-http-put.pl @@ -15,7 +15,9 @@ our %args = ( "match request header log foo", "match response header log bar", ], - loggrep => qr/\, done/, + loggrep => { + qr/, (?:done|last write \(done\))/ => (1 + @lengths), + } }, server => { func => \&http_server, diff --git a/regress/usr.sbin/relayd/args-https-persistent.pl b/regress/usr.sbin/relayd/args-https-persistent.pl index 9ca2eaee06c..f6ba0f54dcb 100644 --- a/regress/usr.sbin/relayd/args-https-persistent.pl +++ b/regress/usr.sbin/relayd/args-https-persistent.pl @@ -15,7 +15,9 @@ our %args = ( "match request header log foo", "match response header log bar", ], - loggrep => qr/\, done/, + loggrep => { + qr/, (?:done|last write \(done\))/ => (1 + @lengths), + }, forwardssl => 1, listenssl => 1, }, diff --git a/regress/usr.sbin/relayd/args-https-put.pl b/regress/usr.sbin/relayd/args-https-put.pl index 1e6973726b2..9ea50cbab5a 100644 --- a/regress/usr.sbin/relayd/args-https-put.pl +++ b/regress/usr.sbin/relayd/args-https-put.pl @@ -16,9 +16,11 @@ our %args = ( "match request header log foo", "match response header log bar", ], + loggrep => { + qr/, (?:done|last write \(done\))/ => (1 + @lengths), + }, forwardssl => 1, listenssl => 1, - loggrep => qr/\, done/, }, server => { func => \&http_server, -- cgit v1.2.3