From 53be3224b2f3fdd359e16e5280d1c56defb7b04c Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Fri, 13 Oct 2017 16:12:23 +0000 Subject: 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 --- llvm/docs/TestingGuide.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/docs/TestingGuide.rst') 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). -- cgit v1.2.3