diff options
author | Piotr Padlewski <piotr.padlewski@gmail.com> | 2016-07-08 23:47:29 +0000 |
---|---|---|
committer | Piotr Padlewski <piotr.padlewski@gmail.com> | 2016-07-08 23:47:29 +0000 |
commit | 7a298c1df0e4be8d8a21479aacdf9481008bf5fb (patch) | |
tree | 6419c23abc168326779da2303df40bba0def8aeb /llvm/docs | |
parent | 6a3116415b04f040e2034ae578667e11418081b0 (diff) | |
download | bcm5719-llvm-7a298c1df0e4be8d8a21479aacdf9481008bf5fb.tar.gz bcm5719-llvm-7a298c1df0e4be8d8a21479aacdf9481008bf5fb.zip |
Added REQUIRES to TestingGuide documentation
Reviewers: alexfh, wolfgangp, rengolin
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D22172
llvm-svn: 274949
Diffstat (limited to 'llvm/docs')
-rw-r--r-- | llvm/docs/TestingGuide.rst | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/llvm/docs/TestingGuide.rst b/llvm/docs/TestingGuide.rst index 6bc8a4af88b..ddb69901428 100644 --- a/llvm/docs/TestingGuide.rst +++ b/llvm/docs/TestingGuide.rst @@ -387,6 +387,53 @@ depends on special features of sub-architectures, you must add the specific triple, test with the specific FileCheck and put it into the specific directory that will filter out all other architectures. +REQUIRES and REQUIRES-ANY directive +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Some tests can be enabled only in specific situation - like having +debug build. Use ``REQUIRES`` directive to specify those requirements. + +.. code-block:: llvm + + ; This test will be only enabled in the build with asserts + ; REQUIRES: asserts + +You can separate requirements by a comma. +``REQUIRES`` means all listed requirements must be satisfied. +``REQUIRES-ANY`` means at least one must be satisfied. + +List of features that can be used in ``REQUIRES`` and ``REQUIRES-ANY``: +- asan +- not_asan +- asserts +- can-execute +- debug_frame +- default_triple +- dfsan +- fma3 +- global-isel +- ld64_plugin +- ld_emu_elf32ppc +- ld_plugin +- linux +- loadable_module +- long_tests +- lsan +- msan +- not_msan +- native +- object-emission +- python-psutil +- shell +- system-windows +- ubsan +- not_ubsan +- x86_64-linux +- xar +- zlib +- nozlib + +To add new features change lit.cfg in test directory. Substitutions ------------- |