[PATCH] Run background processes in varnishtest

Dridi Boukelmoune dridi at varni.sh
Fri Jun 5 10:16:49 CEST 2015


Hi,

I would like to add non-blocking process execution in varnishtest,
something different than the existing shell and err_shell commands.

I have found several use cases:
- testing varnish tools (there's a varnishncsa test)
- running unrelated programs (eg. redis for a redis vmod)
- attach strace to a pid (varnish or other process)

The second patch introduces a new macro for "-n" options, eg. ${v1_name}.

This was inspired by #1742.

Of course it's useless for all interactive executions, but you can
currently start a process, send signals, write to its stdin, and
stdout/err redirection to files... That's probably enough for many
use cases.

I haven't done much more (like -expect on the status code) because
it can easily be added afterwards if needed.

Best Regards,
Dridi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Run-background-processes-in-varnishtest.patch
Type: text/x-patch
Size: 16597 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150605/99fb1036/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-a-varnish-name-macro-in-varnishtest.patch
Type: text/x-patch
Size: 1306 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150605/99fb1036/attachment-0001.bin>


More information about the varnish-dev mailing list