Commit f41fbd19 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Rename '-x dumprst' to '-x dumprstparam', we may have more RST coming

in the future.
parent ef1b8cb1
......@@ -70,7 +70,7 @@ const void *pick(const struct choice *cp, const char *which, const char *kind);
void MCF_ParamInit(struct cli *);
void MCF_ParamSet(struct cli *, const char *param, const char *val);
void MCF_ParamProtect(struct cli *, const char *arg);
void MCF_DumpRst(void);
void MCF_DumpRstParam(void);
extern struct params mgt_param;
/* mgt_sandbox.c */
......
......@@ -458,8 +458,8 @@ main(int argc, char * const *argv)
VCS_Message("varnishd");
exit(0);
case 'x':
if (!strcmp(optarg, "dumprst")) {
MCF_DumpRst();
if (!strcmp(optarg, "dumprstparam")) {
MCF_DumpRstParam();
exit (0);
}
usage();
......
......@@ -1503,14 +1503,14 @@ MCF_ParamInit(struct cli *cli)
/*--------------------------------------------------------------------*/
void
MCF_DumpRst(void)
MCF_DumpRstParam(void)
{
const struct parspec *pp;
const char *p, *q;
int i;
printf("\n.. The following is the autogenerated "
"output from varnishd -x dumprst\n\n");
"output from varnishd -x dumprstparam\n\n");
for (i = 0; i < nparspec; i++) {
pp = parspecs[i];
printf("%s\n", pp->name);
......
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 dumprst > /dev/null 2>&1"
shell "cd ${topbuild}/bin/varnishd && ./varnishd -x dumprstparam > /dev/null 2>&1"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment