diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-14 02:26:31 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-14 02:26:31 +0000 |
commit | e908486f5badf116c8711da76729ea2b3aa933b4 (patch) | |
tree | 74552a7590a641fb054d4694deb74d64332aaaf5 /utils/lit | |
parent | 899ee589f5182a35495f068ae15b5f2b5ff4ef8a (diff) | |
download | external_llvm-e908486f5badf116c8711da76729ea2b3aa933b4.zip external_llvm-e908486f5badf116c8711da76729ea2b3aa933b4.tar.gz external_llvm-e908486f5badf116c8711da76729ea2b3aa933b4.tar.bz2 |
Lit: Introduce "%/[STpst] into parseIntegratedTestScript(), to normalize substitutions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r-- | utils/lit/lit/TestRunner.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index 8929c0b..a8150e6 100644 --- a/utils/lit/lit/TestRunner.py +++ b/utils/lit/lit/TestRunner.py @@ -364,6 +364,15 @@ def parseIntegratedTestScript(test, normalize_slashes=False, ('%T', tmpDir), ('#_MARKER_#', '%')]) + # "%/[STpst]" should be normalized. + substitutions.extend([ + ('%/s', sourcepath.replace('\\', '/')), + ('%/S', sourcedir.replace('\\', '/')), + ('%/p', sourcedir.replace('\\', '/')), + ('%/t', tmpBase.replace('\\', '/') + '.tmp'), + ('%/T', tmpDir.replace('\\', '/')), + ]) + # Collect the test lines from the script. script = [] xfails = [] |