mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
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
This commit is contained in:
parent
899ee589f5
commit
e908486f5b
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user