summaryrefslogtreecommitdiff
path: root/src/tet3/tcc/tcc.h
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2009-10-07 08:10:16 -0700
committerDan Nicholson <dbn.lists@gmail.com>2009-10-07 08:10:16 -0700
commit799ccef3e2559f7c8a11f7e31800f6a2500be49e (patch)
tree12975369ea537a1327b74858870ae737f7c0f2fb /src/tet3/tcc/tcc.h
parenta0ecc10f4ec24b6ffb16a2512c28a4ccb703e6f3 (diff)
tcc: Print test suite and test case names in reports
tcc provides the test suite name (xts5) and test case name (e.g. /Xproto/pAllocColor) to the test program via the environment. The test program uses this information when outputting the results to stdout. TET_TSNAME is a new global variable containing the test suite name provided by tcc. This required a change to the config initialization to only check if the value was an absolute path when necessary. TET_TCNAME is a per-test-exec variable providing the test case name as listed in the scenario file.
Diffstat (limited to 'src/tet3/tcc/tcc.h')
-rw-r--r--src/tet3/tcc/tcc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tet3/tcc/tcc.h b/src/tet3/tcc/tcc.h
index a8d5d86f..05192737 100644
--- a/src/tet3/tcc/tcc.h
+++ b/src/tet3/tcc/tcc.h
@@ -52,6 +52,9 @@ extern char *tet_execute;
/* test suite root on the local system */
extern char *tet_tsroot;
+/* test suite name */
+extern char *tet_tsname;
+
/* test suite root on the local system from the environment
** (defaults to tet_root)
*/