Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
24d426d5
Commit
24d426d5
authored
Jul 02, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add code to dump VSL descriptions in RST format
parent
f41fbd19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
mgt_main.c
bin/varnishd/mgt/mgt_main.c
+38
-0
a00009.vtc
bin/varnishtest/tests/a00009.vtc
+1
-0
No files found.
bin/varnishd/mgt/mgt_main.c
View file @
24d426d5
...
...
@@ -70,6 +70,40 @@ struct vev_base *mgt_evb;
int
exit_status
=
0
;
struct
vsb
*
vident
;
/*--------------------------------------------------------------------*/
static
void
mgt_sltm
(
const
char
*
tag
,
const
char
*
sdesc
,
const
char
*
ldesc
)
{
int
i
;
printf
(
"
\n
%s
\n
"
,
tag
);
i
=
strlen
(
tag
);
printf
(
"%*.*s
\n\n
"
,
i
,
i
,
"------------------------------------"
);
if
(
*
ldesc
!=
'\0'
)
printf
(
"%s
\n
"
,
ldesc
);
else
if
(
*
sdesc
!=
'\0'
)
printf
(
"%s
\n
"
,
sdesc
);
else
printf
(
"%s
\n
"
,
"(description not yet written)"
);
}
static
void
mgt_DumpRstVsl
(
void
)
{
printf
(
"
\n
.. The following is autogenerated output from "
"varnishd -x dumprstvsl
\n\n
"
);
#define SLTM(tag, sdesc, ldesc) mgt_sltm(#tag, sdesc, ldesc);
#include "tbl/vsl_tags.h"
#undef SLTM
}
/*--------------------------------------------------------------------*/
static
void
build_vident
(
void
)
{
...
...
@@ -462,6 +496,10 @@ main(int argc, char * const *argv)
MCF_DumpRstParam
();
exit
(
0
);
}
if
(
!
strcmp
(
optarg
,
"dumprstvsl"
))
{
mgt_DumpRstVsl
();
exit
(
0
);
}
usage
();
break
;
case
'w'
:
...
...
bin/varnishtest/tests/a00009.vtc
View file @
24d426d5
...
...
@@ -2,3 +2,4 @@ varnishtest "Code coverage of VCL compiler and RSTdump"
shell "cd ${topbuild}/bin/varnishd && ./varnishd -b 127.0.0.1:80 -C -n ${tmpdir} > /dev/null 2>&1"
shell "cd ${topbuild}/bin/varnishd && ./varnishd -x dumprstparam > /dev/null 2>&1"
shell "cd ${topbuild}/bin/varnishd && ./varnishd -x dumprstvsl > /dev/null 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