From: phk Date: Thu, 10 Jul 2008 19:40:17 +0000 (+0000) Subject: Add a test for the -f argument X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa02a6c475cd2c9788e1d7ef31f0cb2606cb03a2;p=varnish Add a test for the -f argument git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2920 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/b00014.vtc b/varnish-cache/bin/varnishtest/tests/b00014.vtc new file mode 100644 index 00000000..f422d2ed --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/b00014.vtc @@ -0,0 +1,20 @@ +# $Id$ + +test "Check -f command line arg" + +shell "echo 'backend foo { .host = \"127.0.0.1\"; .port = \"9080\"; }' > /tmp/_b00013.vcl" +varnish v1 -arg "-h simple_list -f /tmp/_b00013.vcl" -start +shell "rm -f /tmp/_b00013.vcl" + +server s1 { + rxreq + expect req.url == "/foo" + txresp -body "foo" +} -start + +client c1 { + txreq -url /foo + rxresp +} + +client c1 -run