From: phk Date: Fri, 10 Oct 2008 21:13:32 +0000 (+0000) Subject: More VCL compiler coverage tests X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd297ae81157cb220900d52d94afc63c1a59e816;p=varnish More VCL compiler coverage tests git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3286 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/v00016.vtc b/varnish-cache/bin/varnishtest/tests/v00016.vtc index 221826c2..9c169eaf 100644 --- a/varnish-cache/bin/varnishtest/tests/v00016.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00016.vtc @@ -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"; } diff --git a/varnish-cache/bin/varnishtest/tests/v00019.vtc b/varnish-cache/bin/varnishtest/tests/v00019.vtc index 75ed6569..7824d370 100644 --- a/varnish-cache/bin/varnishtest/tests/v00019.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00019.vtc @@ -54,4 +54,3 @@ varnish v1 -badvcl { backend b { .host = "127.0.0.1"; } ? } -