diff options
author | Aiden Grossman <aidengrossman@google.com> | 2025-09-19 08:24:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-19 08:24:05 -0700 |
commit | 75dba8ea9ee164a297066afae437bc379f86f482 (patch) | |
tree | dcad7b01063d41a6e0eb1d00e32d5d7442802460 /llvm/docs/CommandGuide | |
parent | 19bc0d6543aedc1d9151e1b2435fc4b998a72d4e (diff) | |
download | llvm-75dba8ea9ee164a297066afae437bc379f86f482.zip llvm-75dba8ea9ee164a297066afae437bc379f86f482.tar.gz llvm-75dba8ea9ee164a297066afae437bc379f86f482.tar.bz2 |
[lit] Add readfile substitution
This patch adds a new %{readfile:<file name>} substitution to lit. This
is needed for porting a couple of tests to lit's internal shell. These
tests are all using subshells to pass some option to a command are not
feasible to run within the internal shell without this functionality.
Reviewers: petrhosek, jh7370, ilovepi, cmtice
Reviewed By: jh7370, cmtice
Pull Request: https://github.com/llvm/llvm-project/pull/158441
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/lit.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/lit.rst b/llvm/docs/CommandGuide/lit.rst index 15c249d..359e0c3 100644 --- a/llvm/docs/CommandGuide/lit.rst +++ b/llvm/docs/CommandGuide/lit.rst @@ -664,6 +664,7 @@ TestRunner.py: Otherwise, %t but with a single leading ``/`` removed. %:T On Windows, %/T but a ``:`` is removed if its the second character. Otherwise, %T but with a single leading ``/`` removed. + %{readfile:<filename>} Reads the file specified. ======================= ============== Other substitutions are provided that are variations on this base set and |