[master] 4a98171 Test multiple -f options for varnishd

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Feb 23 17:13:05 CET 2017


commit 4a98171a5d72af99dda7cecb258868131392e22f
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Thu Feb 23 16:59:49 2017 +0100

    Test multiple -f options for varnishd

diff --git a/bin/varnishtest/tests/a00009.vtc b/bin/varnishtest/tests/a00009.vtc
index db41d5a..ce0b210 100644
--- a/bin/varnishtest/tests/a00009.vtc
+++ b/bin/varnishtest/tests/a00009.vtc
@@ -62,3 +62,32 @@ shell {varnishadm -n ${tmpdir}/v0 start}
 shell {varnishadm -n ${tmpdir}/v0 debug.listen_address}
 
 process p1 -stop -wait
+
+# Test multiple -f options
+
+shell {
+	cat >${tmpdir}/ok1 <<-EOF
+	vcl 4.0;
+	backend ok1 {
+	  .host="${bad_backend}";
+	}
+	EOF
+
+	cat >${tmpdir}/ok2 <<-EOF
+	vcl 4.0;
+	backend ok2 {
+	  .host="${bad_backend}";
+	}
+	EOF
+}
+
+process p2 {
+	exec varnishd -n ${tmpdir}/v0 -F -a :0 -l2m,3m -f ${tmpdir}/ok1 \
+	    -f ${tmpdir}/ok2
+} -log -start
+
+delay 1
+shell -match "available.*boot0" {varnishadm -n ${tmpdir}/v0 vcl.list}
+shell -match "active.*boot"     {varnishadm -n ${tmpdir}/v0 vcl.list}
+
+process p2 -stop -wait



More information about the varnish-commit mailing list