Commit 29247f76 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Remove redundancy with varnishtest commands

parent a194ba85
......@@ -664,18 +664,20 @@ cmd_feature(CMD_ARGS)
*/
static const struct cmds cmds[] = {
{ "server", cmd_server },
{ "client", cmd_client },
{ "varnish", cmd_varnish },
{ "delay", cmd_delay },
{ "varnishtest",cmd_varnishtest },
{ "shell", cmd_shell },
{ "err_shell", cmd_err_shell },
{ "barrier", cmd_barrier },
{ "random", cmd_random },
{ "feature", cmd_feature },
{ "logexpect", cmd_logexpect },
{ "process", cmd_process },
#define CMD(n) { #n, cmd_##n }
CMD(server),
CMD(client),
CMD(varnish),
CMD(delay),
CMD(varnishtest),
CMD(shell),
CMD(err_shell),
CMD(barrier),
CMD(random),
CMD(feature),
CMD(logexpect),
CMD(process),
#undef CMD
{ NULL, NULL }
};
......
......@@ -58,13 +58,15 @@ struct cmds {
void parse_string(const char *spec, const struct cmds *cmd, void *priv,
struct vtclog *vl);
cmd_f cmd_delay;
cmd_f cmd_server;
cmd_f cmd_client;
cmd_f cmd_varnish;
cmd_f cmd_barrier;
cmd_f cmd_logexpect;
cmd_f cmd_process;
#define CMD(n) cmd_f cmd_##n
CMD(delay);
CMD(server);
CMD(client);
CMD(varnish);
CMD(barrier);
CMD(logexpect);
CMD(process);
#undef CMD
extern volatile sig_atomic_t vtc_error; /* Error, bail out */
extern int vtc_stop; /* Abandon current test, no error */
......
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