From 05a891257ffe3711c8244e1e2975549a7a2f2969 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 30 Dec 2011 11:55:39 +0000 Subject: add TESTNAME to environment variable Also, document SRCDIR in manpage, and add missing call to execute per-test teardown script. --- cmdtest.1.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'cmdtest.1.in') 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 -- cgit v1.2.1