]> err.no Git - varnish/commitdiff
Add a test for the -f argument
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 10 Jul 2008 19:40:17 +0000 (19:40 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 10 Jul 2008 19:40:17 +0000 (19:40 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2920 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/b00014.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/b00014.vtc b/varnish-cache/bin/varnishtest/tests/b00014.vtc
new file mode 100644 (file)
index 0000000..f422d2e
--- /dev/null
@@ -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