summaryrefslogtreecommitdiff
path: root/cmdtest.1.in
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-12-30 11:55:39 +0000
committerLars Wirzenius <liw@liw.fi>2011-12-30 11:55:39 +0000
commit05a891257ffe3711c8244e1e2975549a7a2f2969 (patch)
treeb2eab553df038b5f40944ef8555a295f75044d67 /cmdtest.1.in
parent410ded65cee929b1871b9cf7bfb9545179f5e0a0 (diff)
downloadcmdtest-05a891257ffe3711c8244e1e2975549a7a2f2969.tar.gz
add TESTNAME to environment variable
Also, document SRCDIR in manpage, and add missing call to execute per-test teardown script.
Diffstat (limited to 'cmdtest.1.in')
-rw-r--r--cmdtest.1.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/cmdtest.1.in b/cmdtest.1.in
index 4791bb1..c76f30c 100644
--- a/cmdtest.1.in
+++ b/cmdtest.1.in
@@ -117,10 +117,21 @@ it is treated as if it were empty.
If the exit code file is missing, it is treated as if it specified an exit
code of zero.
.PP
-The shell scripts may use the following environment variable:
+The shell scripts may use the following environment variables:
.TP
.B DATADIR
a temporary directory where files may be created by the test
+.TP
+.B TESTNAME
+name of the current test (will be empty for
+.B setup-once
+and
+.BR teardown-once )
+.TP
+.B SRCDIR
+directory from which
+.B cmdtest
+was launched
.SH OPTIONS
.SH EXAMPLE
To test that the