From ce4a8644f3cb43ef01371222c60953787a1a32b4 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 5 Apr 2014 22:23:24 +0200 Subject: [PATCH] Complete tesh documentation. --- tools/tesh/README | 8 +++++--- tools/tesh/tesh.1 | 8 +++++--- tools/tesh/tesh.c | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/tools/tesh/README b/tools/tesh/README index bf02a75516..5298b49c7c 100644 --- a/tools/tesh/README +++ b/tools/tesh/README @@ -28,9 +28,11 @@ an error showing the diff (see OUTPUT below). Command line arguments ---------------------- Tesh accepts several command line arguments: - --cd some/directory: ask tesh to switch the working directory before - launching the tests - --setenv var=value: set a specific environment variable + --cd some/directory : ask tesh to switch the working directory before + launching the tests + --setenv var=value : set a specific environment variable + --cfg arg : add parameter --cfg=arg to each command line + --enable-coverage : ignore output lines starting with "profiling:" IO orders --------- diff --git a/tools/tesh/tesh.1 b/tools/tesh/tesh.1 index 817110ffc6..769c0c2398 100644 --- a/tools/tesh/tesh.1 +++ b/tools/tesh/tesh.1 @@ -8,9 +8,11 @@ tesh \- testing shell .SH DESCRIPTION This is the TESH tool. It constitutes a testing shell, ie a sort of shell specialized to run tests. The list of actions to take is parsed from files files called testsuite. .SH OPTIONS - --cd some/directory: ask tesh to switch the working directory before - launching the tests - --setenv var=value: set a specific environment variable + --cd some/directory : ask tesh to switch the working directory before + launching the tests + --setenv var=value : set a specific environment variable + --cfg arg : add parameter --cfg=arg to each command line + --enable-coverage : ignore output lines starting with "profiling:" .SH TESH FILE SYNTAX Here is the syntax of these files: diff --git a/tools/tesh/tesh.c b/tools/tesh/tesh.c index e05fd5ee62..e8aac13fa9 100644 --- a/tools/tesh/tesh.c +++ b/tools/tesh/tesh.c @@ -20,7 +20,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(tesh, "TEst SHell utility"); int timeout_value = 5; /* child timeout value */ int sort_len = 19; /* length of the prefix to sort */ char *option; -int coverage = 0; /* whether the code coverage is enable */ +int coverage = 0; /* whether the code coverage is enabled */ rctx_t rctx; const char *testsuite_name; -- 2.20.1