1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Lit: Introduce "%/[STpst] into parseIntegratedTestScript(), to normalize substitutions.

llvm-svn: 188348
This commit is contained in:
NAKAMURA Takumi 2013-08-14 02:26:31 +00:00
parent 6a7f10d027
commit e2881219b4

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 = []