From: tfheen Date: Tue, 24 Jun 2008 10:57:59 +0000 (+0000) Subject: Add test to exercise the -s parameter X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad4cc7a4421cab4c02b85cb2e2226989a4538eea;p=varnish Add test to exercise the -s parameter git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2789 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/b00005.vtc b/varnish-cache/bin/varnishtest/tests/b00005.vtc new file mode 100644 index 00000000..f290b7f8 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/b00005.vtc @@ -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"