aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/test-suite
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-04-28 13:28:04 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-05-04 18:55:44 +0200
commit78389300348804c26c231f56e1c8156082957a64 (patch)
treedc3b64aa26dc3dca4538967b2f9f2e08fe273bc0 /Documentation/test-suite
parent5f8653250bdcb034d57c29e8dccfd23e39d19443 (diff)
downloadsparse-dev-78389300348804c26c231f56e1c8156082957a64.tar.gz
testsuite: add check-cp-if
Ideally, the testcases should be universal but it happen than some of them need to test some specificities or are meaningless or plainly wrong in some situations. In such cases, these tests must but ignored. Currently, the only the only mechanisms a test are: 1) ignoring the tests depending on a tool which cannot be compiled (like, for example, those using sparse-llvm when LLVM is not installed. 2) some rather corse criteria using the name of the arch used to run the tests. Allow more flexibility by allowing to exclude some tests based on the evaluation of some pre-processor expression at test-time. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'Documentation/test-suite')
-rw-r--r--Documentation/test-suite4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/test-suite b/Documentation/test-suite
index 1315dbd6..626bc3fe 100644
--- a/Documentation/test-suite
+++ b/Documentation/test-suite
@@ -27,6 +27,10 @@ check-arch-only: <arch[|...]>
Ignore the test if the current architecture (as returned by 'uname -m')
match or not one of the archs given in the pattern.
+check-cpp-if: <condition>
+ Ignore the test if the given condition is false when evaluated
+ by sparse's pre-processor.
+
check-exit-value: <value>
The expected exit value of check-command. It defaults to 0.