[6.0] 1f365b3f1 Test more of varnishhist

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 31 13:08:15 UTC 2018


commit 1f365b3f154053b0978edd12ecdb2075c67eddb2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Sep 6 07:40:16 2018 +0000

    Test more of varnishhist

diff --git a/bin/varnishtest/tests/u00009.vtc b/bin/varnishtest/tests/u00009.vtc
index 5a3bf928b..bd6286e4f 100644
--- a/bin/varnishtest/tests/u00009.vtc
+++ b/bin/varnishtest/tests/u00009.vtc
@@ -8,8 +8,12 @@ server s1 {
 varnish v1 -vcl+backend {} -start
 
 process p1 -dump {varnishhist -n ${v1_name}} -start
+process p2 -dump {varnishhist -n ${v1_name} -P b:BereqAcct::5:1:8} -start
+process p3 -dump {varnishhist -n ${v1_name} -P BerespBodytime} -start
 
 process p1 -expect-text 24 0 {1e2}
+process p2 -expect-text 24 0 {1e2}
+process p3 -expect-text 24 0 {1e2}
 
 delay 1
 
@@ -24,14 +28,14 @@ process p1 -expect-text 3 1 {20_}
 
 process p1 -screen_dump
 
-process p1 -winsz 23 80
+process p1 -winsz 23 80 -need-bytes +10
 
-delay 5
-
-process p1 -write {0>+-<}
-
-delay 1.5
+process p1 -write {0>+-<} -need-bytes +10
 
 process p1 -expect-text 2 1 {20_}
 
+process p1 -writehex 0c -need-bytes +10
+
 process p1 -screen_dump -write {q} -wait
+process p2 -screen_dump -write {q} -wait
+process p3 -screen_dump -write {q} -wait


More information about the varnish-commit mailing list