r2920 - trunk/varnish-cache/bin/varnishtest/tests

phk at projects.linpro.no phk at projects.linpro.no
Thu Jul 10 21:40:18 CEST 2008


Author: phk
Date: 2008-07-10 21:40:17 +0200 (Thu, 10 Jul 2008)
New Revision: 2920

Added:
   trunk/varnish-cache/bin/varnishtest/tests/b00014.vtc
Log:
Add a test for the -f argument



Added: trunk/varnish-cache/bin/varnishtest/tests/b00014.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/b00014.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/b00014.vtc	2008-07-10 19:40:17 UTC (rev 2920)
@@ -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




More information about the varnish-commit mailing list