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
b2bee0e3
Commit
b2bee0e3
authored
Jan 07, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More coverage of mgt_main.c
parent
f597b86d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
mgt_main.c
bin/varnishd/mgt/mgt_main.c
+1
-1
a00009.vtc
bin/varnishtest/tests/a00009.vtc
+7
-1
No files found.
bin/varnishd/mgt/mgt_main.c
View file @
b2bee0e3
...
...
@@ -746,7 +746,7 @@ main(int argc, char * const *argv)
av
=
VAV_Parse
(
optarg
,
NULL
,
ARGV_COMMA
);
AN
(
av
);
if
(
av
[
0
]
!=
NULL
)
ARGV_ERR
(
"
\t
-l ...: %s"
,
av
[
0
]);
ARGV_ERR
(
"
\t
-l ...: %s
\n
"
,
av
[
0
]);
if
(
av
[
1
]
!=
NULL
)
{
MCF_ParamSet
(
cli
,
"vsl_space"
,
av
[
1
]);
cli_check
(
cli
);
...
...
bin/varnishtest/tests/a00009.vtc
View file @
b2bee0e3
varnishtest "Code coverage of VCL compiler and RSTdump etc"
shell "varnishd -b 127.0.0.1:80 -C
-n ${tmpdir}
2> /${tmpdir}/_.c"
shell "varnishd -b 127.0.0.1:80 -C 2> /${tmpdir}/_.c"
shell "varnishd -x dumprstparam > /${tmpdir}/_.param"
shell "varnishd -x dumprstvsl > /${tmpdir}/_.vsl"
shell "varnishd -x dumprstcli > /${tmpdir}/_.cli"
...
...
@@ -16,3 +16,9 @@ err_shell {Only one of -b or -f can be specified} "varnishd -b a -f b 2>&1"
err_shell {-C needs either -b <backend> or -f <vcl_file>} "varnishd -C 2>&1"
err_shell {-d makes no sense with -C} "varnishd -C -b 127.0.0.1:80 -d 2>&1"
err_shell {-F makes no sense with -C} "varnishd -C -b 127.0.0.1:80 -F 2>&1"
err_shell {usage: varnishd [options]} "varnishd -h 2>&1"
err_shell {usage: varnishd [options]} "varnishd -? 2>&1"
err_shell {Invalid backslash sequence} {varnishd -l 'xyz\kk,xyz\foo' 2>&1}
err_shell {Invalid backslash sequence} {varnishd -l 'ab\8cd' 2>&1}
err_shell {Copyright (c) 2006} {varnishd -V 2>&1}
err_shell {Cannot open -S file (/nonexistent)} {varnishd -S /nonexistent 2>&1}
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