[master] ce037da73 Add varnishd -C coverage for #3307

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon May 25 14:05:06 UTC 2020


commit ce037da7304833c20b58146f1060da41355d83b3
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon May 25 16:03:33 2020 +0200

    Add varnishd -C coverage for #3307

diff --git a/bin/varnishtest/tests/u00000.vtc b/bin/varnishtest/tests/u00000.vtc
index 46bc0c013..f7c13fb27 100644
--- a/bin/varnishtest/tests/u00000.vtc
+++ b/bin/varnishtest/tests/u00000.vtc
@@ -1,6 +1,17 @@
 varnishtest "Code coverage of mgt_main, (VCL compiler and RSTdump etc)"
 
 shell "varnishd -b 127.0.0.1:80 -C 2> ${tmpdir}/_.c"
+
+shell {
+	varnishd -n ${tmpdir}/no_keep -C -b 127.0.0.1:80 2> no_keep.c
+	test -s no_keep.c && ! test -d no_keep
+}
+
+shell {
+	varnishd -n ${tmpdir}/keep -p debug=+vcl_keep -C -b 127.0.0.1:80 2> keep.c
+	test -s keep.c && test -d keep
+}
+
 shell -err -expect {VCL version declaration missing} {
 	echo 'bad vcl' > ${tmpdir}/bad.vcl
 	varnishd -f ${tmpdir}/bad.vcl -n ${tmpdir}


More information about the varnish-commit mailing list