r5137 - trunk/varnish-cache/bin/varnishtest/tests
phk at varnish-cache.org
phk at varnish-cache.org
Thu Aug 26 18:02:05 CEST 2010
Author: phk
Date: 2010-08-26 18:02:04 +0200 (Thu, 26 Aug 2010)
New Revision: 5137
Modified:
trunk/varnish-cache/bin/varnishtest/tests/v00020.vtc
Log:
More coverage of vcc_expr.c
Modified: trunk/varnish-cache/bin/varnishtest/tests/v00020.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00020.vtc 2010-08-26 15:44:18 UTC (rev 5136)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00020.vtc 2010-08-26 16:02:04 UTC (rev 5137)
@@ -1,6 +1,6 @@
# $Id$
-test "VCL compiler coverage test: vcc_parse.c"
+test "VCL compiler coverage test: vcc_parse.c & vcc_expr.c"
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
@@ -17,6 +17,11 @@
backend b { .host = "127.0.0.1"; }
sub vcl_fetch {
set beresp.ttl = 1w;
+ set beresp.ttl *= 1.5;
+ set beresp.ttl = 1.5 s * 2.5;
+ set beresp.ttl = 1.5 s / 2.5;
+ set beresp.ttl = 1.5h + 1.5s;
+ set beresp.ttl = 1.5h - 1.5s;
}
}
More information about the varnish-commit
mailing list