From: phk Date: Thu, 10 Jul 2008 19:59:56 +0000 (+0000) Subject: Test the vcl.load CLI command while we are at it. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a02ca9c75795f90316dac28918841a4489bba5c6;p=varnish Test the vcl.load CLI command while we are at it. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2921 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/b00014.vtc b/varnish-cache/bin/varnishtest/tests/b00014.vtc index f422d2ed..41c938c2 100644 --- a/varnish-cache/bin/varnishtest/tests/b00014.vtc +++ b/varnish-cache/bin/varnishtest/tests/b00014.vtc @@ -4,17 +4,26 @@ 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" + rxreq + expect req.url == "/bar" + txresp -body "bar" } -start client c1 { txreq -url /foo rxresp -} +} -run -client c1 -run +varnish v1 -cli "vcl.load foo /tmp/_b00013.vcl" -cli "vcl.use foo" + +client c1 { + txreq -url /bar + rxresp +} -run + +shell "rm -f /tmp/_b00013.vcl"