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:
NAKAMURA Takumi 2013-08-14 02:26:31 +00:00
parent 899ee589f5
commit e908486f5b

View File

@ -364,6 +364,15 @@ def parseIntegratedTestScript(test, normalize_slashes=False,
('%T', tmpDir), ('%T', tmpDir),
('#_MARKER_#', '%')]) ('#_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. # Collect the test lines from the script.
script = [] script = []
xfails = [] xfails = []