[master] f39ade7 Add test for varnishstat -f

Federico G. Schwindt fgsch at lodoss.net
Mon Sep 12 21:30:19 CEST 2016


commit f39ade78fa882ccd8bb0f1bf92d5159c5c003f25
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Sep 12 20:13:21 2016 +0100

    Add test for varnishstat -f

diff --git a/bin/varnishtest/tests/README b/bin/varnishtest/tests/README
index dd21d38..a48967f 100644
--- a/bin/varnishtest/tests/README
+++ b/bin/varnishtest/tests/README
@@ -29,5 +29,5 @@ Naming scheme
 	id ~ ^s		--> Slow tests, expiry, grace etc.
 	id ~ ^t		--> Transport protocol tests
 	id ~ ^t02	--> HTTP2
-	id ~ ^u		--> Unusual background processes
+	id ~ ^u		--> Utilities and background processes
 	id ~ ^v		--> VCL tests: execute VRT functions
diff --git a/bin/varnishtest/tests/u00002.vtc b/bin/varnishtest/tests/u00002.vtc
new file mode 100644
index 0000000..38ce280
--- /dev/null
+++ b/bin/varnishtest/tests/u00002.vtc
@@ -0,0 +1,17 @@
+varnishtest "Test varnishstat -f option"
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+delay 1
+
+process p1 {varnishstat -1 -n ${v1_name} -f ^LCK.vbe.destroy \
+	-f LCK.vbe.* -f LCK.mempool.*} -run
+
+shell "grep -q vbe ${tmpdir}/p1/stdout"
+shell "grep -q mempool ${tmpdir}/p1/stdout"
+err_shell "" "grep -q LCK.vbe.destroy ${tmpdir}/p1/stdout"



More information about the varnish-commit mailing list