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
ad3fa105
Unverified
Commit
ad3fa105
authored
Jul 09, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Varnishtest: Generalize varnishd_args to varnishd_args_(pre|ap)pend
parent
046724d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
vtc_varnish.c
bin/varnishtest/vtc_varnish.c
+12
-7
No files found.
bin/varnishtest/vtc_varnish.c
View file @
ad3fa105
...
...
@@ -406,6 +406,10 @@ varnish_launch(struct varnish *v)
VSB_cat
(
vsb
,
"cd ${pwd} &&"
);
VSB_printf
(
vsb
,
" exec varnishd %s -d -n %s -i %s"
,
v
->
jail
,
v
->
workdir
,
v
->
name
);
if
(
macro_isdef
(
NULL
,
"varnishd_args_prepend"
))
{
VSB_putc
(
vsb
,
' '
);
macro_cat
(
v
->
vl
,
vsb
,
"varnishd_args_prepend"
,
NULL
);
}
VSB_cat
(
vsb
,
VSB_data
(
params_vsb
));
if
(
leave_temp
)
{
VSB_cat
(
vsb
,
" -p debug=+vcl_keep"
);
...
...
@@ -430,9 +434,9 @@ varnish_launch(struct varnish *v)
if
(
vmod_path
!=
NULL
)
VSB_printf
(
vsb
,
" -p vmod_path=%s"
,
vmod_path
);
VSB_printf
(
vsb
,
" %s"
,
VSB_data
(
v
->
args
));
if
(
macro_isdef
(
NULL
,
"varnishd_args"
))
{
if
(
macro_isdef
(
NULL
,
"varnishd_args
_append
"
))
{
VSB_putc
(
vsb
,
' '
);
macro_cat
(
v
->
vl
,
vsb
,
"varnishd_args"
,
NULL
);
macro_cat
(
v
->
vl
,
vsb
,
"varnishd_args
_append
"
,
NULL
);
}
AZ
(
VSB_finish
(
vsb
));
vtc_log
(
v
->
vl
,
3
,
"CMD: %s"
,
VSB_data
(
vsb
));
...
...
@@ -1072,11 +1076,12 @@ vsl_catchup(struct varnish *v)
* \-arg STRING
* Pass an argument to varnishd, for example "-h simple_list".
*
* If the ${varnishd_args} macro is defined, it is expanded and
* appended to the varnishd command line, before the command line
* itself is expanded. This enables tweaks to the varnishd command
* line without editing test cases. This macro can be defined using
* the ``-D`` option for varnishtest.
* If the ${varnishd_args_prepend} or ${varnishd_args_append} macros are
* defined, they are expanded and inserted before / appended to the
* varnishd command line as constructed by varnishtest, before the
* command line itself is expanded. This enables tweaks to the varnishd
* command line without editing test cases. This macros can be defined
* using the ``-D`` option for varnishtest.
*
* \-vcl STRING
* Specify the VCL to load on this Varnish instance. You'll probably
...
...
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