mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
lit: Add %T as a replacement for the output directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -397,7 +397,8 @@ def parseIntegratedTestScript(test, normalize_slashes=False):
|
|||||||
sourcedir = os.path.dirname(sourcepath)
|
sourcedir = os.path.dirname(sourcepath)
|
||||||
execpath = test.getExecPath()
|
execpath = test.getExecPath()
|
||||||
execdir,execbase = os.path.split(execpath)
|
execdir,execbase = os.path.split(execpath)
|
||||||
tmpBase = os.path.join(execdir, 'Output', execbase)
|
tmpDir = os.path.join(execdir, 'Output')
|
||||||
|
tmpBase = os.path.join(tmpDir, execbase)
|
||||||
if test.index is not None:
|
if test.index is not None:
|
||||||
tmpBase += '_%d' % test.index
|
tmpBase += '_%d' % test.index
|
||||||
|
|
||||||
@@ -414,6 +415,7 @@ def parseIntegratedTestScript(test, normalize_slashes=False):
|
|||||||
('%S', sourcedir),
|
('%S', sourcedir),
|
||||||
('%p', sourcedir),
|
('%p', sourcedir),
|
||||||
('%t', tmpBase + '.tmp'),
|
('%t', tmpBase + '.tmp'),
|
||||||
|
('%T', tmpDir),
|
||||||
# FIXME: Remove this once we kill DejaGNU.
|
# FIXME: Remove this once we kill DejaGNU.
|
||||||
('%abs_tmp', tmpBase + '.tmp'),
|
('%abs_tmp', tmpBase + '.tmp'),
|
||||||
('#_MARKER_#', '%')])
|
('#_MARKER_#', '%')])
|
||||||
|
Reference in New Issue
Block a user