Commit 62dc9421 authored by Guillaume Quintard's avatar Guillaume Quintard

Minor edits to varnishtest doc

parent 7e9883da
...@@ -178,7 +178,7 @@ AVAILABLE COMMANDS ...@@ -178,7 +178,7 @@ AVAILABLE COMMANDS
server server
****** ******
Creates mock of a server that can accept requests from Varnish and send Creates a mock server that can accept requests from Varnish and send
responses. Accepted parameters: responses. Accepted parameters:
\-listen \-listen
...@@ -188,6 +188,8 @@ client ...@@ -188,6 +188,8 @@ client
****** ******
Creates a client instance that sends requests to Varnish and receives responses. Creates a client instance that sends requests to Varnish and receives responses.
By default, a client will try and connect to the first varnish server available.
Accepted parameters: Accepted parameters:
\-connect \-connect
...@@ -197,11 +199,11 @@ server/client command arguments ...@@ -197,11 +199,11 @@ server/client command arguments
******************************* *******************************
\-repeat INT \-repeat INT
repeat the commands INT in order repeats the commands INT in order
\-wait \-wait
waits for commands to complete waits for commands to complete
\-start \-start
start the client, and continue without waiting for completion starts the client, and continue without waiting for completion
\-run \-run
equivalent to -start then -wait equivalent to -start then -wait
...@@ -212,30 +214,32 @@ varnish ...@@ -212,30 +214,32 @@ varnish
Starts Varnish instance. Accepted arguments: Starts Varnish instance. Accepted arguments:
\-arg STRING \-arg STRING
pass additional arguments to varnishd passes additional arguments to varnishd
\-cli \-cli
execute a command in CLI of running instance executes a command in CLI of running instance
\-cliok \-cliok
execute a command and expect it return OK status executes a command and expect it return OK status
\-clierr \-clierr
execute a command and expect it to error with given status executes a command and expect it to error with given status
(e.g. "-clierr 300 panic.clear") (e.g. "-clierr 300 panic.clear")
\-vcl+backend \-vcl STRING
specify VCL for the instance, and automatically inject a backend into the VCL specify VCL for the instance. You can create multiline strings by encasing them
in curly braces.
\-vcl+backend STRING
specifes VCL for the instance, and automatically inject backends definition
of currently defined servers.
\-errvcl \-errvcl
tests that invalid VCL results in an error. tests that invalid VCL results in an error.
\-vcl
specify VCL for the instance
\-stop \-stop
stop the instance stops the instance
\-wait-stopped \-wait-stopped
wait for the varnish child to stop waits for the varnish child to stop
\-wait-running \-wait-running
wait for the varnish child to start waits for the varnish child to start
\-wait \-wait
wait for varnish to stop waits for varnish to stop
\-expect \-expect
set up a test for asserting variables against expected results. sets up a test for asserting variables against expected results.
Syntax: "-expect <var> <comparison> <const>" Syntax: "-expect <var> <comparison> <const>"
See tests supplied with Varnish distribution for usage examples for all these See tests supplied with Varnish distribution for usage examples for all these
......
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