]> err.no Git - varnish/commitdiff
More VCL compiler coverage tests
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 21:13:32 +0000 (21:13 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 21:13:32 +0000 (21:13 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3286 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/v00016.vtc
varnish-cache/bin/varnishtest/tests/v00019.vtc

index 221826c2ce0d2019298411578d29a1bbccfa8408..9c169eafe996642364121918812eb7a6c625b492 100644 (file)
@@ -2,6 +2,39 @@
 
 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"; }
index 75ed6569a900f989060d71e5a58994d580ef44f5..7824d370b4b56c1738422ce3a6cb045ee5c43eb4 100644 (file)
@@ -54,4 +54,3 @@ varnish v1 -badvcl {
        backend b { .host = "127.0.0.1"; }
        ?
 }
-