[master] f224bcf Add a test for varnishadm in pass mode

Poul-Henning Kamp phk at FreeBSD.org
Sat Jan 13 21:15:08 UTC 2018


commit f224bcf183c06a3141a0fe47cf0a4b4ebc9bcdf4
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Jan 13 21:14:18 2018 +0000

    Add a test for varnishadm in pass mode

diff --git a/bin/varnishtest/tests/u00012.vtc b/bin/varnishtest/tests/u00012.vtc
new file mode 100644
index 0000000..0660d07
--- /dev/null
+++ b/bin/varnishtest/tests/u00012.vtc
@@ -0,0 +1,33 @@
+varnishtest	"trivial run of varnishadm in pass mode"
+
+feature term
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+client c1 {
+	txreq
+	rxresp
+} -run
+
+varnish v1 -vsl_catchup
+
+process p1 -log {cat | varnishadm -n ${v1_name}} -start
+
+process p1 -write "ping\r"
+
+process p1 -need-bytes 30
+
+process p1 -write "vcl.list\r"
+
+process p1 -need-bytes 80
+
+process p1 -write "vcl.show vcl1\r"
+
+process p1 -need-bytes 100
+
+process p1 -screen_dump -write "\x04" -wait


More information about the varnish-commit mailing list