[PATCH] D22172: Added REQUIRES to FileCheck documentation

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


Prazek updated this revision to Diff 63329.
Prazek added a comment.

changed commit name


http://reviews.llvm.org/D22172

Files:
  docs/TestingGuide.rst

Index: docs/TestingGuide.rst
===================================================================
--- docs/TestingGuide.rst
+++ docs/TestingGuide.rst
@@ -387,6 +387,46 @@
 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 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
 
 Substitutions
 -------------


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


More information about the llvm-commits mailing list