[PATCH] D22172: Added REQUIRES to FileCheck documentation

Piotr Padlewski via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 8 14:28:16 PDT 2016


Prazek created this revision.
Prazek added reviewers: alexfh, wolfgangp, rengolin.
Prazek added a subscriber: llvm-commits.

http://reviews.llvm.org/D22172

Files:
  docs/CommandGuide/FileCheck.rst

Index: docs/CommandGuide/FileCheck.rst
===================================================================
--- docs/CommandGuide/FileCheck.rst
+++ docs/CommandGuide/FileCheck.rst
@@ -480,3 +480,45 @@
 
 letting us set the :program:`FileCheck` variable ``DLOC`` to the desired value 
 ``0x00000233``, extracted from the line immediately preceding "``intd``".
+
+
+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 coma.
+If test depends on one of many requirements, use ``REQUIRES-ANY``.
+
+List of features that can be used in ``REQUIRES`` and ``REQUIRES-ANY``:
+- asserts
+- shell
+- can-execute
+- loadable_module
+- asan
+- not_asan
+- msan
+- not_msan
+- ubsan
+- not_ubsan
+- long_tests
+- object-emission
+- zlib
+- nozlib
+- default_triple
+- x86_64-linux
+- native
+- ld_emu_elf32ppc
+- ld_plugin
+- ld64_plugin
+- fma3
+- system-windows
+- debug_frame
+- global-isel
+- xar


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22172.63318.patch
Type: text/x-patch
Size: 1200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160708/6533c286/attachment.bin>


More information about the llvm-commits mailing list