[PATCH] D111457: [test] Add lit helper for windows paths

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 28 12:19:21 PST 2022


rnk added inline comments.


================
Comment at: llvm/docs/TestingGuide.rst:577
+``${fssep}``
+   Exp``ands to the file system separator, i.e. ``/`` or ``\`` on Windows.
+
----------------
Stray backticks in "Expands"?


================
Comment at: llvm/utils/lit/lit/TestRunner.py:1124
+    if kIsWindows:
+        fs_root = 'C:\\'
+    substitutions.extend([
----------------
It is pretty common to run the LLVM test suite on secondary drives, especially on buildbot VMs, to separate build disk usage from the root partition. Can we have two separators, `${srcroot}` and `${tmproot}` that expand to the drive letter of the source and temp path base? That seems like it would be general and implementable.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111457/new/

https://reviews.llvm.org/D111457



More information about the llvm-commits mailing list