Commit 14427ee9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add "test" keyword for printing a test description



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2694 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 26f27d3f
......@@ -217,6 +217,21 @@ parse_string(char *buf, const struct cmds *cmd, void *priv)
}
}
/**********************************************************************
* Output test description
*/
static void
cmd_test(char **av, void *priv)
{
(void)priv;
assert(!strcmp(av[0], "test"));
printf("# TEST %s\n", av[1]);
AZ(av[2]);
}
/**********************************************************************
* Execute a file
*/
......@@ -236,6 +251,7 @@ static struct cmds cmds[] = {
{ "vcl", cmd_vcl },
{ "stats", cmd_stats },
{ "varnish", cmd_varnish },
{ "test", cmd_test },
{ NULL, NULL }
};
......
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