]> err.no Git - varnish/commitdiff
Test the vcl.load CLI command while we are at it.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 10 Jul 2008 19:59:56 +0000 (19:59 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 10 Jul 2008 19:59:56 +0000 (19:59 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2921 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/b00014.vtc

index f422d2ede887fd91388d9d873a2a2b6fb3aec5fa..41c938c29e6ab1585598179f42bc8adeaa4b5465 100644 (file)
@@ -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"