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

phk at projects.linpro.no phk at projects.linpro.no
Fri Oct 10 23:13:32 CEST 2008


Author: phk
Date: 2008-10-10 23:13:32 +0200 (Fri, 10 Oct 2008)
New Revision: 3286

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/v00016.vtc
   trunk/varnish-cache/bin/varnishtest/tests/v00019.vtc
Log:
More VCL compiler coverage tests



Modified: trunk/varnish-cache/bin/varnishtest/tests/v00016.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00016.vtc	2008-10-10 20:57:51 UTC (rev 3285)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00016.vtc	2008-10-10 21:13:32 UTC (rev 3286)
@@ -3,9 +3,42 @@
 test "Various VCL compiler coverage tests"
 
 varnish v1 -vcl {
+	backend b { .host = "127.0.0.1"; }
+	include "/dev/null" ;
+}
 
+varnish v1 -badvcl {
 	backend b { .host = "127.0.0.1"; }
+	include "/dev/null" |
+}
 
+varnish v1 -badvcl {
+	backend b { .host = "127.0.0.1"; }
+	include <<
+}
+
+varnish v1 -vcl {
+	backend b { .host = "127.0.0.1"; }
+	sub vcl_recv {
+		if (req.url == "foo") {
+		} elsif (req.url == "bar") {
+		} elseif (req.url == "baz") {
+		}
+	}
+}
+
+varnish v1 -badvcl {
+	/* token test */
+        error lookup hash pipe pass fetch deliver discard keep restart
+        include 
+        if else elseif elsif
+	++ -- && || <= == != >= >> << += -= *= /=
+}
+
+varnish v1 -vcl {
+
+	backend b { .host = "127.0.0.1"; }
+
 	/* Test string regexp matching and "else if" */
 	sub vcl_recv {
 		if ((req.url ~ "foobar")) {

Modified: trunk/varnish-cache/bin/varnishtest/tests/v00019.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00019.vtc	2008-10-10 20:57:51 UTC (rev 3285)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00019.vtc	2008-10-10 21:13:32 UTC (rev 3286)
@@ -54,4 +54,3 @@
 	backend b { .host = "127.0.0.1"; }
 	?
 }
-




More information about the varnish-commit mailing list