From aa02a6c475cd2c9788e1d7ef31f0cb2606cb03a2 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 10 Jul 2008 19:40:17 +0000 Subject: [PATCH] Add a test for the -f argument git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2920 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/b00014.vtc | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/b00014.vtc diff --git a/varnish-cache/bin/varnishtest/tests/b00014.vtc b/varnish-cache/bin/varnishtest/tests/b00014.vtc new file mode 100644 index 00000000..f422d2ed --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/b00014.vtc @@ -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 -- 2.39.5