aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-02-13 00:28:55 +0100
committerChristopher Li <sparse@chrisli.org>2017-02-13 09:38:11 +0800
commit9ab8a6a72c38f5fc3d4cb3f2a403f9ab83c3206f (patch)
treeaaed917af13e373f97f00b771747b603373f93c8 /Documentation
parent5df193d182983766a0f8fd1625dfb23858cf8083 (diff)
downloadsparse-dev-9ab8a6a72c38f5fc3d4cb3f2a403f9ab83c3206f.tar.gz
testsuite: add tag to ignore the output/error
Currently the test suite always check the exit value and the output of the command used for the test. This is fine and allow use to catch the most common situations: - failure or crash (via the exit value) - (un)expected output (like when testing the result of the preprocessor) - (un)expected errors & warnings (like when testing sparse's warnings) But sometimes, we're not interested in the output or the output (as is) is simply not meaningful for the test or can't be compared textually to some reference. This patch add two new tags (check-output-ignore & check-error-ignore), telling to test suite to ignore the content of stdout or stderr when testing this file. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/test-suite6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/test-suite b/Documentation/test-suite
index 6c4f24f6..6936feeb 100644
--- a/Documentation/test-suite
+++ b/Documentation/test-suite
@@ -29,6 +29,12 @@ check-output-start / check-output-end (optional)
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)
+ 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)
Mark the test as being known to fail.