]> err.no Git - varnish/commitdiff
Add a trivial pipe test
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Jun 2008 10:20:29 +0000 (10:20 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Jun 2008 10:20:29 +0000 (10:20 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2729 d4fa192b-c00b-0410-8231-f00ffab90ce4

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

diff --git a/varnish-cache/bin/varnishtest/tests/b00001.vtc b/varnish-cache/bin/varnishtest/tests/b00001.vtc
new file mode 100644 (file)
index 0000000..971820f
--- /dev/null
@@ -0,0 +1,26 @@
+# $Id$
+
+test "Check that a pipe transaction works"
+
+server s1 -repeat 1 {
+       rxreq 
+       txresp \
+               -hdr "Connection: close" \
+               -body "012345\n"
+}
+
+varnish v1 -vcl+backend {
+       sub vcl_recv {
+               pipe;
+       }
+} -start
+
+server s1 -start 
+
+client c1 {
+       txreq -url "/"
+       rxresp
+       expect resp.status == 200
+}
+
+client c1 -run