[llvm] r188348 - Lit: Introduce "%/[STpst] into parseIntegratedTestScript(), to normalize substitutions.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Aug 13 19:26:32 PDT 2013
Author: chapuni
Date: Tue Aug 13 21:26:31 2013
New Revision: 188348
URL: http://llvm.org/viewvc/llvm-project?rev=188348&view=rev
Log:
Lit: Introduce "%/[STpst] into parseIntegratedTestScript(), to normalize substitutions.
Modified:
llvm/trunk/utils/lit/lit/TestRunner.py
Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=188348&r1=188347&r2=188348&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Tue Aug 13 21:26:31 2013
@@ -364,6 +364,15 @@ def parseIntegratedTestScript(test, norm
('%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 = []
More information about the llvm-commits
mailing list