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
0604adad
Commit
0604adad
authored
May 31, 2016
by
Guillaume Quintard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document shell/err_shell
parent
f8a0a866
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
vtc.c
bin/varnishtest/vtc.c
+21
-4
No files found.
bin/varnishtest/vtc.c
View file @
0604adad
...
...
@@ -419,8 +419,18 @@ cmd_varnishtest(CMD_ARGS)
AZ
(
av
[
2
]);
}
/**********************************************************************
* Shell command execution
/* SECTION: shell shell
*
* Pass the string given as argument to a shell. If you have multiple commands
* to run, you can use curly barces to describe a multi-lines script, eg::
*
* shell {
* echo begin
* cat /etc/fstab
* echo end
* }
*
* The vtc will fail if the return code of the shell is not 0.
*/
static
void
...
...
@@ -442,8 +452,15 @@ cmd_shell(CMD_ARGS)
av
[
1
],
s
,
strerror
(
errno
));
}
/**********************************************************************
* Shell command execution
/* SECTION: err_shell err_shell
*
* This is very similar to the the ``shell`` command, except it takes a first
* string as argument before the command::
*
* err_shell "foo" "echo foo"
*
* err_shell expect the shell command to fail AND stdout to match the string,
* failing the test case otherwise.
*/
static
void
...
...
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