]> err.no Git - varnish/commitdiff
More coverage testing for vcc_parse.c
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Oct 2008 20:13:32 +0000 (20:13 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Oct 2008 20:13:32 +0000 (20:13 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3250 d4fa192b-c00b-0410-8231-f00ffab90ce4

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

index 23dc978d09a9a11238f4d877ef1891c4d5be4cdb..221826c2ce0d2019298411578d29a1bbccfa8408 100644 (file)
@@ -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) { } }
+}