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
29247f76
Commit
29247f76
authored
Aug 18, 2016
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundancy with varnishtest commands
parent
a194ba85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
19 deletions
+23
-19
vtc.c
bin/varnishtest/vtc.c
+14
-12
vtc.h
bin/varnishtest/vtc.h
+9
-7
No files found.
bin/varnishtest/vtc.c
View file @
29247f76
...
...
@@ -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
}
};
...
...
bin/varnishtest/vtc.h
View file @
29247f76
...
...
@@ -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 */
...
...
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