summaryrefslogtreecommitdiffstats
path: root/llvm/docs/TestingGuide.rst
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2017-10-13 16:12:23 +0000
committerJordan Rose <jordan_rose@apple.com>2017-10-13 16:12:23 +0000
commit53be3224b2f3fdd359e16e5280d1c56defb7b04c (patch)
tree390c1c3ac7bec7bd7d151292e07c24d31674d2d9 /llvm/docs/TestingGuide.rst
parent5805fb3dfca46524e8a3fa3c22036d41ecdfb68a (diff)
downloadbcm5719-llvm-53be3224b2f3fdd359e16e5280d1c56defb7b04c.tar.gz
bcm5719-llvm-53be3224b2f3fdd359e16e5280d1c56defb7b04c.zip
lit.py: Add new %{shared_output(LABEL)} substitution
This refers to a temporary path that can be shared across all tests, identified by a particular label. This can be used for things like caches. At the moment, the character set for the LABEL is limited to C identifier characters, plus '-', '+', '=', and '.'. This is the same set of characters currently allowed in REQUIRES clause identifiers. llvm-svn: 315697
Diffstat (limited to 'llvm/docs/TestingGuide.rst')
-rw-r--r--llvm/docs/TestingGuide.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/docs/TestingGuide.rst b/llvm/docs/TestingGuide.rst
index a27da0de4d0..cd1f00b20f9 100644
--- a/llvm/docs/TestingGuide.rst
+++ b/llvm/docs/TestingGuide.rst
@@ -464,6 +464,12 @@ RUN lines:
Example: ``/home/user/llvm.build/test/MC/ELF/Output``
+``%{shared_output(LABEL)}``
+ File path to a temporary file name shared across all tests, identified by
+ LABEL. This is useful as a cache for generated resources.
+
+ Example: ``/home/user/llvm.build/test/Output/Shared/LABEL.tmp``
+
``%{pathsep}``
Expands to the path separator, i.e. ``:`` (or ``;`` on Windows).
OpenPOWER on IntegriCloud