r2784 - in trunk/varnish-cache/bin/varnishtest: . tests
phk at projects.linpro.no
phk at projects.linpro.no
Tue Jun 24 12:04:09 CEST 2008
Author: phk
Date: 2008-06-24 12:04:08 +0200 (Tue, 24 Jun 2008)
New Revision: 2784
Added:
trunk/varnish-cache/bin/varnishtest/tests/c00003.vtc
Modified:
trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
Log:
Add a testcase for starting with some bad listen sockets.
Added: trunk/varnish-cache/bin/varnishtest/tests/c00003.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/c00003.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/c00003.vtc 2008-06-24 10:04:08 UTC (rev 2784)
@@ -0,0 +1,22 @@
+# Test that we get anything through at all
+#
+# $Id$
+
+test "Check that we start if one listen address works"
+
+varnish v1 -accept ":9081 127.0.0.2:9082" -arg "-b 127.0.0.1:9080" -start
+
+server s1 {
+ rxreq
+ txresp -hdr "Connection: close" -body "012345\n"
+} -start
+
+client c1 {
+ txreq -url "/"
+ rxresp
+ expect resp.status == 200
+} -run
+
+server s1 -wait
+
+varnish v1 -stop
Modified: trunk/varnish-cache/bin/varnishtest/vtc_varnish.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_varnish.c 2008-06-24 08:21:42 UTC (rev 2783)
+++ trunk/varnish-cache/bin/varnishtest/vtc_varnish.c 2008-06-24 10:04:08 UTC (rev 2784)
@@ -190,7 +190,7 @@
AN(vsb);
vsb_printf(vsb, "cd ../varnishd &&");
vsb_printf(vsb, " ./varnishd -d -d -n %s", v->name);
- vsb_printf(vsb, " -a %s -T %s", v->accept, v->telnet);
+ vsb_printf(vsb, " -a '%s' -T %s", v->accept, v->telnet);
vsb_printf(vsb, " %s", v->args);
vsb_finish(vsb);
AZ(vsb_overflowed(vsb));
More information about the varnish-commit
mailing list