r3250 - trunk/varnish-cache/bin/varnishtest/tests

phk at projects.linpro.no phk at projects.linpro.no
Sun Oct 5 22:13:32 CEST 2008


Author: phk
Date: 2008-10-05 22:13:32 +0200 (Sun, 05 Oct 2008)
New Revision: 3250

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/v00016.vtc
Log:
More coverage testing for vcc_parse.c



Modified: trunk/varnish-cache/bin/varnishtest/tests/v00016.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00016.vtc	2008-10-05 20:09:40 UTC (rev 3249)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00016.vtc	2008-10-05 20:13:32 UTC (rev 3250)
@@ -37,3 +37,27 @@
 	
 }
 
+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) { } }
+}




More information about the varnish-commit mailing list