From a02ca9c75795f90316dac28918841a4489bba5c6 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 10 Jul 2008 19:59:56 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishtest/tests/b00014.vtc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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" -- 2.39.5