From 0b25bc7fd7467ea8336890ed327e80355561c9d4 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 5 Oct 2008 20:13:32 +0000 Subject: [PATCH] More coverage testing for vcc_parse.c git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3250 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/v00016.vtc | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/varnish-cache/bin/varnishtest/tests/v00016.vtc b/varnish-cache/bin/varnishtest/tests/v00016.vtc index 23dc978d..221826c2 100644 --- a/varnish-cache/bin/varnishtest/tests/v00016.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00016.vtc @@ -37,3 +37,27 @@ varnish v1 -vcl { } +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + sub vcl_fetch { set obj.ttl = 1. k; } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + sub vcl_fetch { if (obj.ttl *= 2) { } } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + sub vcl_recv { if (req.backend > b) { } } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + sub vcl_hash { if (req.hash != "foo") { } } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + sub vcl_hash { if (2 == 3) { } } +} -- 2.39.5