r5535 - trunk/varnish-cache/bin/varnishtest/tests
phk at varnish-cache.org
phk at varnish-cache.org
Thu Nov 11 10:13:41 CET 2010
Author: phk
Date: 2010-11-11 10:13:41 +0100 (Thu, 11 Nov 2010)
New Revision: 5535
Added:
trunk/varnish-cache/bin/varnishtest/tests/m00003.vtc
Log:
Check that vmod_dir works.
Added: trunk/varnish-cache/bin/varnishtest/tests/m00003.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/m00003.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/m00003.vtc 2010-11-11 09:13:41 UTC (rev 5535)
@@ -0,0 +1,33 @@
+# $Id$
+
+test "Test vmod_dir param"
+
+server s1 {
+ rxreq
+ txresp -hdr "foo: bAr" -hdr "bar: fOo" -bodylen 4
+} -start
+
+varnish v1 -arg "-pthread_pools=1" \
+ -arg "-pvmod_dir=${topbuild}/lib/libvmod_std/.libs/" \
+ -vcl+backend {
+ import std;
+
+ sub vcl_deliver {
+ set resp.http.foo = std.toupper(resp.http.foo);
+ set resp.http.bar = std.tolower(resp.http.bar);
+ std.set_ip_tos(32);
+ }
+} -start
+
+client c1 {
+ txreq -url "/bar"
+ rxresp
+ expect resp.status == 200
+ expect resp.http.content-length == "4"
+ expect resp.http.foo == "BAR"
+ expect resp.http.bar == "foo"
+} -run
+
+varnish v1 -badvcl {
+ import std to;
+}
Property changes on: trunk/varnish-cache/bin/varnishtest/tests/m00003.vtc
___________________________________________________________________
Added: svn:keywords
+ Id
More information about the varnish-commit
mailing list