]> err.no Git - varnish/commitdiff
Add a testcase for starting with some bad listen sockets.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jun 2008 10:04:08 +0000 (10:04 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jun 2008 10:04:08 +0000 (10:04 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2784 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/c00003.vtc [new file with mode: 0644]
varnish-cache/bin/varnishtest/vtc_varnish.c

diff --git a/varnish-cache/bin/varnishtest/tests/c00003.vtc b/varnish-cache/bin/varnishtest/tests/c00003.vtc
new file mode 100644 (file)
index 0000000..e90e2c3
--- /dev/null
@@ -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
index bb290d2f5f8d4aa0210d05a5f40e02bc0c0e33bf..2d3cff44750624bd2abd2ef4737e7a50857f576d 100644 (file)
@@ -190,7 +190,7 @@ varnish_launch(struct varnish *v)
        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));