Commit f7a3acb8 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Start documenting vtc's process

parent 0863fc70
......@@ -313,8 +313,47 @@ process_close(struct process *p)
p->fds[1] = -1;
}
/**********************************************************************
* Process command dispatch
/* SECTION: process process
*
* Run a process in the background with stdout and stderr redirected to
* ${tmpdir}/pNAME/stdout and ${tmpdir}/pNAME/stderr, respectively::
*
* process pNAME SPEC [-wait] [-start] [-run] [-kill STRING] [-stop] \
* [-write STRING] [-writeln STRING] [-close]
*
* pNAME
* Name of the process. It must start with 'p'.
*
* SPEC
* The command(s) to run in this process.
*
* \-start
* Start the process.
*
* \-wait
* Wait for the process to finish.
*
* \-run
* Shorthand for -start -wait.
*
* \-kill STRING
* Send a signal to the process. The argument can be either
* the string "TERM", "INT", or "KILL" for SIGTERM, SIGINT or SIGKILL
* signals, respectively, or a hyphen (-) followed by the signal
* number.
*
* \-stop
* Shorthand for -kill TERM.
*
* \-write STRING
* Write a string to the process' stdin.
*
* \-writeln STRING
* Same as -write followed by a newline (\\n).
*
* \-close
* Close the process' stdin.
*
*/
void
......
......@@ -183,6 +183,7 @@ VTCSYN_SRC = $(top_srcdir)/bin/varnishtest/vtc.c \
$(top_srcdir)/bin/varnishtest/vtc_http.c \
$(top_srcdir)/bin/varnishtest/vtc_http2.c \
$(top_srcdir)/bin/varnishtest/vtc_logexp.c \
$(top_srcdir)/bin/varnishtest/vtc_process.c \
$(top_srcdir)/bin/varnishtest/vtc_varnish.c
include/vtc-syntax.rst: vtc-syntax.py $(VTCSYN_SRC)
$(PYTHON) $(top_srcdir)/doc/sphinx/vtc-syntax.py $(VTCSYN_SRC) > $@
......
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