From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: linux-sparse@vger.kernel.org
Cc: Christopher Li <sparse@chrisli.org>,
Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Subject: [PATCH 18/28] testsuite: simplify documentation
Date: Fri, 15 Sep 2017 09:13:48 +0200 [thread overview]
Message-ID: <20170915071358.7312-19-luc.vanoostenryck@gmail.com> (raw)
In-Reply-To: <20170915071358.7312-1-luc.vanoostenryck@gmail.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
Documentation/test-suite | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/Documentation/test-suite b/Documentation/test-suite
index e2dda61d7..a745da850 100644
--- a/Documentation/test-suite
+++ b/Documentation/test-suite
@@ -7,13 +7,13 @@ Sparse has a number of test cases in its validation directory. The test-suite
script aims at making automated checking of these tests possible. It works by
embedding tags in C comments in the test cases.
-check-name: (mandatory)
- Name of the test.
+check-name: <name>
+ Name of the test. This is the only mandatory tag.
-check-description: (optional)
+check-description: <description ...>
A description of what the test checks.
-check-command: (optional)
+check-command: <command arg ...>
There are different kinds of tests. Some can validate the sparse
preprocessor, while others will use sparse, cgcc, or even other backends
of the library. check-command allows you to give a custom command to
@@ -22,43 +22,43 @@ check-command: (optional)
run time.
It defaults to "sparse $file".
-check-exit-value: (optional)
+check-exit-value: <value>
The expected exit value of check-command. It defaults to 0.
-check-timeout: (optional)
+check-timeout: <timeout>
The maximum expected duration of check-command, in seconds.
It defaults to 1.
-check-output-start / check-output-end (optional)
+check-output-start / check-output-end
The expected output (stdout and stderr) of check-command lies between
those two tags. It defaults to no output.
-check-output-ignore / check-error-ignore (optional)
+check-output-ignore / check-error-ignore
Don't check the expected output (stdout or stderr) of check-command
(usefull when this output is not comparable or if you're only interested
in the exit value).
By default this check is done.
-check-known-to-fail (optional)
+check-known-to-fail
Mark the test as being known to fail.
-check-output-contains: <pattern> (optional)
+check-output-contains: <pattern>
Check that the output (stdout) contains the given pattern.
Several such tags can be given, in which case the output
must contains all the patterns.
-check-output-excludes: <pattern> (optional)
+check-output-excludes: <pattern>
Similar than the above one, but with opposite logic.
Check that the output (stdout) doesn't contain the given pattern.
Several such tags can be given, in which case the output
must contains none of the patterns.
-check-output-pattern-<nbr>-times: <pattern> (optional)
+check-output-pattern-<nbr>-times: <pattern>
Similar than the contains/excludes her above, but with full control
of the number of times the pattern should occurs in the output.
-check-output-pattern(eq,<nbr>): <pattern> (optional)
-check-output-pattern(<min>,<max>): <pattern> (optional)
+check-output-pattern(eq,<nbr>): <pattern>
+check-output-pattern(<min>,<max>): <pattern>
Similar than the contains/excludes her above, but with full control
of the number of times the pattern should occurs in the output.
If <min> or <max> is '-' the corresponding check is ignored.
--
2.14.0
next prev parent reply other threads:[~2017-09-15 7:16 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-15 7:13 [PATCH 00/28] testsuite improvements Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 01/28] testsuite: 'echo -n' may not be interpreted as '-n' Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 02/28] testsuite: allow to test a few cases at once Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 03/28] testsuite: move verbose() & error() Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 04/28] testsuite: better message for pattern nbr checking Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 05/28] testsuite: better message for pattern absence/presence Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 06/28] testsuite: saner checking of pattern occurences Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 07/28] testsuite: clearer result summary Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 08/28] testsuite: check error messages first Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 09/28] testsuite: saner handling of 'must_fail' Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 10/28] testsuite: allow to parse several options Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 11/28] testsuite: add support for -q|--quiet Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 12/28] testsuite: add support for -a|--abort Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 13/28] testsuite: get options from env too Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 14/28] testsuite: allow --format & --single Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 15/28] testsuite: remove useless selftest Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 16/28] testsuite: remove useless test-be.c Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 17/28] testsuite: extract disable() Luc Van Oostenryck
2017-09-15 7:13 ` Luc Van Oostenryck [this message]
2017-09-15 7:13 ` [PATCH 19/28] testsuite: allow arch-specific tests Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 20/28] testsuite: save screen real estate Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 21/28] testsuite: add a blank line before format Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 22/28] testsuite: 'quiet' must be initialized earlier Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 23/28] testsuite: move up arg_file() Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 24/28] testsuite: make do_format() more self-contained Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 25/28] testsuite: format: saner defaults handling Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 26/28] testsuite: format: strip .c from default name Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 27/28] testsuite: add support for 'format -f' Luc Van Oostenryck
2017-09-15 7:13 ` [PATCH 28/28] testsuite: add support for 'format -l' Luc Van Oostenryck
2017-09-15 17:03 ` [PATCH 00/28] testsuite improvements Christopher Li
2017-09-15 17:35 ` Luc Van Oostenryck
2017-09-20 5:53 ` Christopher Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170915071358.7312-19-luc.vanoostenryck@gmail.com \
--to=luc.vanoostenryck@gmail.com \
--cc=linux-sparse@vger.kernel.org \
--cc=sparse@chrisli.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).