From bd297ae81157cb220900d52d94afc63c1a59e816 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 10 Oct 2008 21:13:32 +0000 Subject: [PATCH] More VCL compiler coverage tests git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3286 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/v00016.vtc | 33 +++++++++++++++++++ .../bin/varnishtest/tests/v00019.vtc | 1 - 2 files changed, 33 insertions(+), 1 deletion(-) 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"; } ? } - -- 2.39.5