Commit 8680c350 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Test the vcl.load CLI command while we are at it.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2921 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 81179811
...@@ -4,17 +4,26 @@ test "Check -f command line arg" ...@@ -4,17 +4,26 @@ test "Check -f command line arg"
shell "echo 'backend foo { .host = \"127.0.0.1\"; .port = \"9080\"; }' > /tmp/_b00013.vcl" 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 varnish v1 -arg "-h simple_list -f /tmp/_b00013.vcl" -start
shell "rm -f /tmp/_b00013.vcl"
server s1 { server s1 {
rxreq rxreq
expect req.url == "/foo" expect req.url == "/foo"
txresp -body "foo" txresp -body "foo"
rxreq
expect req.url == "/bar"
txresp -body "bar"
} -start } -start
client c1 { client c1 {
txreq -url /foo txreq -url /foo
rxresp 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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment