From: phk Date: Sun, 5 Oct 2008 20:13:32 +0000 (+0000) Subject: More coverage testing for vcc_parse.c X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b25bc7fd7467ea8336890ed327e80355561c9d4;p=varnish More coverage testing for vcc_parse.c git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3250 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- 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) { } } +}