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

phk at projects.linpro.no phk at projects.linpro.no
Fri Oct 10 23:43:02 CEST 2008


Author: phk
Date: 2008-10-10 23:43:02 +0200 (Fri, 10 Oct 2008)
New Revision: 3288

Added:
   trunk/varnish-cache/bin/varnishtest/tests/v00021.vtc
Log:
More VCL compiler coverage tests



Added: trunk/varnish-cache/bin/varnishtest/tests/v00021.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00021.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00021.vtc	2008-10-10 21:43:02 UTC (rev 3288)
@@ -0,0 +1,52 @@
+# $Id$
+
+test "VCL compiler coverage test: vcc_xref.c"
+
+varnish v1 -badvcl {
+	backend b { .host = "127.0.0.1"; }
+	sub vcl_recv { set obj.ttl = 1 w; }
+}
+
+varnish v1 -badvcl {
+	backend b { .host = "127.0.0.1"; }
+
+	sub foo { set obj.ttl = 1 w; }
+	sub vcl_recv { call foo ; }
+}
+
+varnish v1 -badvcl {
+	backend b { .host = "127.0.0.1"; }
+
+	sub vcl_recv { discard; }
+}
+
+varnish v1 -badvcl {
+	backend b { .host = "127.0.0.1"; }
+
+	sub foo { discard; }
+	sub vcl_recv { call foo; }
+}
+
+varnish v1 -badvcl {
+	backend b { .host = "127.0.0.1"; }
+
+	sub foo { call foo; }
+	sub vcl_recv { call foo; }
+}
+
+varnish v1 -badvcl {
+	backend b { .host = "127.0.0.1"; }
+
+	sub bar { call foo; }
+	sub foo { call bar; }
+	sub vcl_recv { call foo; }
+}
+
+
+varnish v1 -badvcl {
+	backend b { .host = "127.0.0.1"; }
+
+	acl foo { "localhost"; }
+
+}
+




More information about the varnish-commit mailing list