r2789 - trunk/varnish-cache/bin/varnishtest/tests
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Tue Jun 24 12:58:00 CEST 2008
Author: tfheen
Date: 2008-06-24 12:57:59 +0200 (Tue, 24 Jun 2008)
New Revision: 2789
Added:
trunk/varnish-cache/bin/varnishtest/tests/b00005.vtc
Log:
Add test to exercise the -s parameter
Added: trunk/varnish-cache/bin/varnishtest/tests/b00005.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/b00005.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/b00005.vtc 2008-06-24 10:57:59 UTC (rev 2789)
@@ -0,0 +1,25 @@
+# $Id$
+
+test "Check that -s works"
+
+varnish v1 -arg "-s file,varnishtest_backing,10M -b 127.0.0.1:9080" -start
+
+server s1 {
+ rxreq
+ txresp -hdr "Connection: close" -body "012345\n"
+}
+
+server s1 -start
+
+client c1 {
+ txreq -url "/"
+ rxresp
+ expect resp.status == 200
+}
+
+client c1 -run
+
+server s1 -wait
+
+varnish v1 -stop
+shell "rm ../varnishd/varnishtest_backing"
More information about the varnish-commit
mailing list