[master] 023682a78 Run a varnishnsca via process and dump the screen

Poul-Henning Kamp phk at FreeBSD.org
Mon Nov 5 09:15:13 UTC 2018


commit 023682a784973d48486b5217da928c46d6a1e878
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Nov 5 09:13:53 2018 +0000

    Run a varnishnsca via process and dump the screen

diff --git a/bin/varnishtest/tests/u00003.vtc b/bin/varnishtest/tests/u00003.vtc
index e18d9b912..9dd5585cb 100644
--- a/bin/varnishtest/tests/u00003.vtc
+++ b/bin/varnishtest/tests/u00003.vtc
@@ -29,6 +29,8 @@ shell {
 		-w ${tmpdir}/ncsa.log
 }
 
+process p1 -winsz 25 132 {varnishncsa -n ${v1_name}} -start
+
 delay 1
 
 client c1 {
@@ -146,3 +148,9 @@ req (\d+) rxreq \5 - - -$} \
 	{varnishncsa -n ${v1_name} -d -F "%{VSL:Begin}x \
 %{VSL:Begin[2]}x %{VSL:Timestamp:Resp}x \
 %{VSL:Timestamp:Resp[2]}x %{VSL:Timestamp:foo}x"}
+
+process p1 -stop -screen-dump
+process p1 -expect-text 1 0 {"GET http://127.0.0.1/1?foo=bar HTTP/1.1" 200 100 "-" "-"}
+process p1 -expect-text 1 0 { - user [}
+process p1 -expect-text 2 0 {"GET http://127.0.0.1/1?foo=bar HTTP/1.1" 404 248 "-" "-"}
+process p1 -expect-text 3 0 {"GET http://127.0.0.1/2 HTTP/1.1" - - "-" "-"}


More information about the varnish-commit mailing list