Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
a4a1b303
Commit
a4a1b303
authored
Feb 05, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't overload symbols
parent
9bb435c4
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
17 deletions
+17
-17
m00000.vtc
bin/varnishtest/tests/m00000.vtc
+3
-3
m00023.vtc
bin/varnishtest/tests/m00023.vtc
+2
-2
m00027.vtc
bin/varnishtest/tests/m00027.vtc
+1
-1
r01332.vtc
bin/varnishtest/tests/r01332.vtc
+3
-3
r02451.vtc
bin/varnishtest/tests/r02451.vtc
+2
-2
v00041.vtc
bin/varnishtest/tests/v00041.vtc
+6
-6
No files found.
bin/varnishtest/tests/m00000.vtc
View file @
a4a1b303
...
@@ -12,7 +12,7 @@ varnish v1 -vcl+backend {
...
@@ -12,7 +12,7 @@ varnish v1 -vcl+backend {
import vtc;
import vtc;
sub vcl_init {
sub vcl_init {
new obj = debug.obj();
new obj
x
= debug.obj();
}
}
sub vcl_recv {
sub vcl_recv {
...
@@ -28,8 +28,8 @@ varnish v1 -vcl+backend {
...
@@ -28,8 +28,8 @@ varnish v1 -vcl+backend {
set resp.http.not = vtc.typesize("*");
set resp.http.not = vtc.typesize("*");
debug.test_priv_call();
debug.test_priv_call();
debug.test_priv_vcl();
debug.test_priv_vcl();
obj.test_priv_call();
obj
x
.test_priv_call();
obj.test_priv_vcl();
obj
x
.test_priv_vcl();
std.log("VCL" + " initiated " + "log");
std.log("VCL" + " initiated " + "log");
std.syslog(8 + 7, "Somebody runs varnishtest");
std.syslog(8 + 7, "Somebody runs varnishtest");
debug.rot52(resp);
debug.rot52(resp);
...
...
bin/varnishtest/tests/m00023.vtc
View file @
a4a1b303
...
@@ -12,7 +12,7 @@ varnish v1 -vcl+backend {
...
@@ -12,7 +12,7 @@ varnish v1 -vcl+backend {
"127"/24;
"127"/24;
}
}
acl local {
acl local
s
{
// We assume c1 and s1 comes from same address
// We assume c1 and s1 comes from same address
"${s1_addr}"/24;
"${s1_addr}"/24;
}
}
...
@@ -24,7 +24,7 @@ varnish v1 -vcl+backend {
...
@@ -24,7 +24,7 @@ varnish v1 -vcl+backend {
}
}
sub vcl_recv {
sub vcl_recv {
if (debug.match_acl(ip=client.ip, acl=local)) {
if (debug.match_acl(ip=client.ip, acl=local
s
)) {
return (hash);
return (hash);
}
}
return (synth(500));
return (synth(500));
...
...
bin/varnishtest/tests/m00027.vtc
View file @
a4a1b303
...
@@ -13,7 +13,7 @@ varnish v1 -errvcl "Missing dynamic backend address or port" {
...
@@ -13,7 +13,7 @@ varnish v1 -errvcl "Missing dynamic backend address or port" {
}
}
sub vcl_init {
sub vcl_init {
new obj = debug.dyn("", "");
new obj
x
= debug.dyn("", "");
std.log("Should not happen");
std.log("Should not happen");
}
}
}
}
...
...
bin/varnishtest/tests/r01332.vtc
View file @
a4a1b303
...
@@ -9,12 +9,12 @@ varnish v1 -vcl+backend {
...
@@ -9,12 +9,12 @@ varnish v1 -vcl+backend {
import debug;
import debug;
sub vcl_init {
sub vcl_init {
new obj = debug.obj("don't care");
new obj
x
= debug.obj("don't care");
}
}
sub vcl_deliver {
sub vcl_deliver {
obj.enum(martin);
obj
x
.enum(martin);
set resp.http.foo = obj.foo("");
set resp.http.foo = obj
x
.foo("");
}
}
} -start
} -start
...
...
bin/varnishtest/tests/r02451.vtc
View file @
a4a1b303
...
@@ -21,7 +21,7 @@ varnish v1 -vcl+backend {
...
@@ -21,7 +21,7 @@ varnish v1 -vcl+backend {
import std;
import std;
sub vcl_init {
sub vcl_init {
new obj = debug.obj();
new obj
x
= debug.obj();
new vd = directors.shard();
new vd = directors.shard();
debug.test_priv_task("something");
debug.test_priv_task("something");
debug.test_priv_task("to remember");
debug.test_priv_task("to remember");
...
@@ -32,7 +32,7 @@ varnish v1 -vcl+backend {
...
@@ -32,7 +32,7 @@ varnish v1 -vcl+backend {
vd.reconfigure(replicas=25);
vd.reconfigure(replicas=25);
std.log("func " + debug.test_priv_task());
std.log("func " + debug.test_priv_task());
std.log("obj " + obj.test_priv_task());
std.log("obj " + obj
x
.test_priv_task());
}
}
sub vcl_recv {
sub vcl_recv {
...
...
bin/varnishtest/tests/v00041.vtc
View file @
a4a1b303
...
@@ -15,14 +15,14 @@ varnish v1 -arg "-p debug=+vclrel" -vcl+backend {
...
@@ -15,14 +15,14 @@ varnish v1 -arg "-p debug=+vclrel" -vcl+backend {
import std;
import std;
sub vcl_init {
sub vcl_init {
new obj = debug.obj();
new obj
x
= debug.obj();
}
}
sub vcl_init {
sub vcl_init {
debug.test_priv_task("something");
debug.test_priv_task("something");
debug.test_priv_task("to remember");
debug.test_priv_task("to remember");
std.log("func " + debug.test_priv_task());
std.log("func " + debug.test_priv_task());
std.log("obj " + obj.test_priv_task());
std.log("obj " + obj
x
.test_priv_task());
}
}
sub vcl_recv {
sub vcl_recv {
...
@@ -34,11 +34,11 @@ varnish v1 -arg "-p debug=+vclrel" -vcl+backend {
...
@@ -34,11 +34,11 @@ varnish v1 -arg "-p debug=+vclrel" -vcl+backend {
sub vcl_deliver {
sub vcl_deliver {
set resp.http.x0 = req.http.x0;
set resp.http.x0 = req.http.x0;
set resp.http.x1 = debug.test_priv_task();
set resp.http.x1 = debug.test_priv_task();
set resp.http.o1 = obj.test_priv_task();
set resp.http.o1 = obj
x
.test_priv_task();
}
}
sub vcl_backend_fetch {
sub vcl_backend_fetch {
obj.test_priv_task("b");
obj
x
.test_priv_task("b");
std.log("foo");
std.log("foo");
set bereq.http.bx0 = debug.test_priv_task(bereq.url);
set bereq.http.bx0 = debug.test_priv_task(bereq.url);
std.log("bar");
std.log("bar");
...
@@ -47,14 +47,14 @@ varnish v1 -arg "-p debug=+vclrel" -vcl+backend {
...
@@ -47,14 +47,14 @@ varnish v1 -arg "-p debug=+vclrel" -vcl+backend {
sub vcl_backend_response {
sub vcl_backend_response {
set beresp.http.bx0 = bereq.http.bx0;
set beresp.http.bx0 = bereq.http.bx0;
set beresp.http.bx1 = debug.test_priv_task("");
set beresp.http.bx1 = debug.test_priv_task("");
set beresp.http.bo1 = obj.test_priv_task("");
set beresp.http.bo1 = obj
x
.test_priv_task("");
}
}
sub vcl_fini {
sub vcl_fini {
debug.test_priv_task("cleaning");
debug.test_priv_task("cleaning");
debug.test_priv_task("up");
debug.test_priv_task("up");
std.log("func " + debug.test_priv_task());
std.log("func " + debug.test_priv_task());
std.log("obj " + obj.test_priv_task());
std.log("obj " + obj
x
.test_priv_task());
}
}
} -start
} -start
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment