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
562f866a
Commit
562f866a
authored
May 31, 2022
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: Use the vtc_feature param in the test suite
Better diff with the --word-diff --word-diff-regex=. options.
parent
d651ec04
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
30 additions
and
30 deletions
+30
-30
b00025.vtc
bin/varnishtest/tests/b00025.vtc
+1
-1
b00058.vtc
bin/varnishtest/tests/b00058.vtc
+2
-2
c00052.vtc
bin/varnishtest/tests/c00052.vtc
+3
-3
c00053.vtc
bin/varnishtest/tests/c00053.vtc
+2
-2
c00057.vtc
bin/varnishtest/tests/c00057.vtc
+2
-2
m00000.vtc
bin/varnishtest/tests/m00000.vtc
+1
-1
m00008.vtc
bin/varnishtest/tests/m00008.vtc
+2
-2
r00742.vtc
bin/varnishtest/tests/r00742.vtc
+1
-1
r00911.vtc
bin/varnishtest/tests/r00911.vtc
+2
-2
r01406.vtc
bin/varnishtest/tests/r01406.vtc
+1
-1
r01504.vtc
bin/varnishtest/tests/r01504.vtc
+1
-1
r01562.vtc
bin/varnishtest/tests/r01562.vtc
+1
-1
r02976.vtc
bin/varnishtest/tests/r02976.vtc
+1
-1
r03159.vtc
bin/varnishtest/tests/r03159.vtc
+1
-1
v00019.vtc
bin/varnishtest/tests/v00019.vtc
+1
-1
v00020.vtc
bin/varnishtest/tests/v00020.vtc
+3
-3
v00031.vtc
bin/varnishtest/tests/v00031.vtc
+3
-3
v00060.vtc
bin/varnishtest/tests/v00060.vtc
+1
-1
blob_b00011.vtc
vmod/tests/blob_b00011.vtc
+1
-1
No files found.
bin/varnishtest/tests/b00025.vtc
View file @
562f866a
varnishtest "more backends"
varnish v1 -arg "-p vcc_
err_unref=of
f" -vcl {
varnish v1 -arg "-p vcc_
feature=-err_unre
f" -vcl {
backend d0 { .host = "${bad_backend}"; }
backend d1 { .host = "${bad_backend}"; }
backend d2 { .host = "${bad_backend}"; }
...
...
bin/varnishtest/tests/b00058.vtc
View file @
562f866a
...
...
@@ -2,11 +2,11 @@ varnishtest "Test backend definition documentation examples"
feature cmd {getent hosts localhost && getent services http}
varnish v1 -arg "-p vcc_
err_unref=of
f" -vcl {
varnish v1 -arg "-p vcc_
feature=-err_unre
f" -vcl {
backend b1 {.host = "127.0.0.1";}
backend b2 {.host = "[::1]:8080";}
backend b3 {.host = "localhost:8081";}
backend b4 {.host = "localhost:http";}
backend b5 {.host = "127.0.0.1";.port = "8081";}
backend b6 {.host = "127.0.0.1";.port = "http";}
}
\ No newline at end of file
}
bin/varnishtest/tests/c00052.vtc
View file @
562f866a
...
...
@@ -7,13 +7,13 @@ server s1 {
varnish v1
varnish v1 -cliok "param.set vcc_
allow_inline_c true
"
varnish v1 -cliok "param.set vcc_
feature +allow_inline_c
"
varnish v1 -vcl+backend {
C{ /*...*/ }C
}
varnish v1 -cliok "param.set vcc_
allow_inline_c false
"
varnish v1 -cliok "param.set vcc_
feature -allow_inline_c
"
varnish v1 -errvcl {Inline-C not allowed} {
backend default {
...
...
@@ -31,7 +31,7 @@ varnish v1 -errvcl {Inline-C not allowed} {
}
}
varnish v1 -cliok "param.set vcc_
allow_inline_c true
"
varnish v1 -cliok "param.set vcc_
feature +allow_inline_c
"
varnish v1 -vcl+backend {
sub vcl_recv {
...
...
bin/varnishtest/tests/c00053.vtc
View file @
562f866a
...
...
@@ -11,7 +11,7 @@ varnish v1 -vcl+backend {
include "${tmpdir}/_.c00053";
}
varnish v1 -cliok "param.set vcc_
unsafe_path off
"
varnish v1 -cliok "param.set vcc_
feature -unsafe_path
"
varnish v1 -errvcl {' is unsafe} {
backend default { .host = "${s1_sock}"; }
...
...
@@ -28,7 +28,7 @@ shell "rm -f ${tmpdir}/_.c00053"
# Testing of include +glob
varnish v1 -cliok "param.set vcc_
unsafe_path on
"
varnish v1 -cliok "param.set vcc_
feature +unsafe_path
"
varnish v1 -errvcl "glob pattern matched no files." {
vcl 4.0;
...
...
bin/varnishtest/tests/c00057.vtc
View file @
562f866a
...
...
@@ -11,7 +11,7 @@ server s1 {
varnish v1 \
-arg "-p feature=+no_coredump" \
-arg "-p vcc_
allow_inline_c=true
" \
-arg "-p vcc_
feature=+allow_inline_c
" \
-arg "-p thread_pool_stack=128k" \
-vcl+backend {
C{
...
...
@@ -66,7 +66,7 @@ varnish v1 -expectexit 0x40
varnish v2 \
-arg "-p feature=+no_coredump" \
-arg "-p vcc_
allow_inline_c=true
" \
-arg "-p vcc_
feature=+allow_inline_c
" \
-vcl+backend {
C{
...
...
bin/varnishtest/tests/m00000.vtc
View file @
562f866a
...
...
@@ -157,7 +157,7 @@ varnish v1 -errvcl {Failed initialization} {
}
}
varnish v1 -cliok "param.set vcc_
allow_inline_c on
"
varnish v1 -cliok "param.set vcc_
feature +allow_inline_c
"
varnish v1 -vcl {
import vtc;
...
...
bin/varnishtest/tests/m00008.vtc
View file @
562f866a
...
...
@@ -29,7 +29,7 @@ varnish v1 -vcl+backend {
import std;
}
varnish v1 -cliok "param.set vcc_
unsafe_path off
"
varnish v1 -cliok "param.set vcc_
feature -unsafe_path
"
varnish v1 -errvcl {'import ... from path ...' is unsafe.} {
backend default { .host = "${s1_sock}"; }
...
...
@@ -43,7 +43,7 @@ varnish v1 -vcl+backend {
import std;
}
varnish v1 -cliok "param.set vcc_
unsafe_path on
"
varnish v1 -cliok "param.set vcc_
feature +unsafe_path
"
varnish v1 -cliok "param.set vmod_path /nowhere:/else"
...
...
bin/varnishtest/tests/r00742.vtc
View file @
562f866a
...
...
@@ -5,7 +5,7 @@ server s1 {
txresp
} -start
varnish v1 -cliok "param.set vcc_
allow_inline_c true
" -vcl+backend {
varnish v1 -cliok "param.set vcc_
feature +allow_inline_c
" -vcl+backend {
C{
#include <stdio.h>
}C
...
...
bin/varnishtest/tests/r00911.vtc
View file @
562f866a
varnishtest "vcc_err_unref should also cover subs"
varnishtest "vcc_
feature::
err_unref should also cover subs"
server s1 {
rxreq
...
...
@@ -6,7 +6,7 @@ server s1 {
txresp -body "foobar"
} -start
varnish v1 -arg "-p vcc_
err_unref=false
" -vcl+backend {
varnish v1 -arg "-p vcc_
feature=-err_unref
" -vcl+backend {
sub foobar {
set req.http.foobar = "foobar";
}
...
...
bin/varnishtest/tests/r01406.vtc
View file @
562f866a
...
...
@@ -5,7 +5,7 @@ server s1 {
txresp
} -start
varnish v1 -arg "-p vcc_
allow_inline_c=true
" -vcl+backend {
varnish v1 -arg "-p vcc_
feature=+allow_inline_c
" -vcl+backend {
import std ;
C{
...
...
bin/varnishtest/tests/r01504.vtc
View file @
562f866a
varnishtest "unreferenced or null acls"
varnish v1 -arg "-p vcc_
err_unref=of
f" -vcl {
varnish v1 -arg "-p vcc_
feature=-err_unre
f" -vcl {
import vtc;
backend s1 {
.host = "${bad_backend}";
...
...
bin/varnishtest/tests/r01562.vtc
View file @
562f866a
...
...
@@ -12,7 +12,7 @@ server s2 {
txresp -status 200 -hdr "Foo: Foo" -body "56"
} -start
varnish v1 -cliok "param.set vcc_
allow_inline_c true
" -vcl+backend {
varnish v1 -cliok "param.set vcc_
feature +allow_inline_c
" -vcl+backend {
sub vcl_recv {
return (pass);
}
...
...
bin/varnishtest/tests/r02976.vtc
View file @
562f866a
...
...
@@ -9,7 +9,7 @@ server s1 -repeat 5 { # probe requests
txresp
} -start
varnish v1 -cliok {param.set vcc_
err_unref of
f}
varnish v1 -cliok {param.set vcc_
feature -err_unre
f}
varnish v1 -vcl {
backend b1 {
...
...
bin/varnishtest/tests/r03159.vtc
View file @
562f866a
...
...
@@ -12,7 +12,7 @@ shell {
process p1 -winsz 100 80 -log {
varnishd -F -n "${tmpdir}/t" -a "${tmpdir}/sock" \
-p vcc_
err_unref=of
f -f "${tmpdir}/unref.vcl" \
-p vcc_
feature=-err_unre
f -f "${tmpdir}/unref.vcl" \
-l 2m 2>&1
} -start
...
...
bin/varnishtest/tests/v00019.vtc
View file @
562f866a
...
...
@@ -28,7 +28,7 @@ varnish v1 -errvcl {Unterminated string, starting at} {
"
}
varnish v1 -cliok "param.set vcc_
allow_inline_c true
" -vcl {
varnish v1 -cliok "param.set vcc_
feature +allow_inline_c
" -vcl {
backend b { .host = "${localhost}"; }
sub vcl_recv { C{ int i; (void)i; }C }
}
...
...
bin/varnishtest/tests/v00020.vtc
View file @
562f866a
varnishtest "VCL compiler coverage test: vcc_parse.c & vcc_expr.c"
varnish v1 -cliok "param.set vcc_
allow_inline_c true
" -vcl {
varnish v1 -cliok "param.set vcc_
feature +allow_inline_c
" -vcl {
backend b { .host = "${localhost}"; }
C{
#include <stdio.h>
...
...
@@ -310,7 +310,7 @@ varnish v1 -errvcl {Not available in subroutine 'vcl_recv'.} {
}
}
varnish v1 -cliok "param.set vcc_
err_unref of
f"
varnish v1 -cliok "param.set vcc_
feature -err_unre
f"
varnish v1 -errvcl {Impossible Subroutine} {
backend b { .host = "127.0.0.1"; }
...
...
@@ -319,7 +319,7 @@ varnish v1 -errvcl {Impossible Subroutine} {
}
}
varnish v1 -cliok "param.set vcc_
err_unref on
"
varnish v1 -cliok "param.set vcc_
feature +err_unref
"
varnish v1 -errvcl {
('<vcl.inline>' Line 4 Pos 44) -- (Pos 49)
...
...
bin/varnishtest/tests/v00031.vtc
View file @
562f866a
varnishtest "param vcc_err_unref"
varnishtest "param vcc_
feature::
err_unref"
varnish v1 -errvcl {Unused backend c, defined:} {
backend b { .host = "${localhost}"; }
backend c { .host = "${localhost}"; }
}
varnish v1 -cliok "param.set vcc_
err_unref false
"
varnish v1 -cliok "param.set vcc_
feature -err_unref
"
varnish v1 -vcl {
backend b { .host = "${localhost}"; }
backend c { .host = "${localhost}"; }
}
varnish v1 -cliok "param.set vcc_
err_unref true
"
varnish v1 -cliok "param.set vcc_
feature +err_unref
"
varnish v1 -errvcl {Unused backend c, defined:} {
backend b { .host = "${localhost}"; }
...
...
bin/varnishtest/tests/v00060.vtc
View file @
562f866a
...
...
@@ -44,7 +44,7 @@ client c1 {
expect resp.status == 503
} -run
varnish v1 -cliok "param.set vcc_
err_unref of
f"
varnish v1 -cliok "param.set vcc_
feature -err_unre
f"
varnish v1 -vcl {
backend bad { .host = "${bad_backend}"; }
backend nil none;
...
...
vmod/tests/blob_b00011.vtc
View file @
562f866a
...
...
@@ -5,7 +5,7 @@ varnishtest "VMOD blob workspace overflow conditions"
# Since not all of them may be called by all VCLs we also need to ensure this
# will not result in a compilation failure.
varnish v1 -cliok "param.set vcc_
err_unref of
f"
varnish v1 -cliok "param.set vcc_
feature -err_unre
f"
varnish v1 -cliok "param.set debug +syncvsl"
shell {
...
...
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