mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
tests: Add a %abs_tmp substitution which is guaranteed to be a full path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81662 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -85,6 +85,8 @@ proc substitute { line test tmpFile } {
|
|||||||
regsub -all {%s} $new_line $test new_line
|
regsub -all {%s} $new_line $test new_line
|
||||||
#replace %t with temp filenames
|
#replace %t with temp filenames
|
||||||
regsub -all {%t} $new_line $tmpFile new_line
|
regsub -all {%t} $new_line $tmpFile new_line
|
||||||
|
#replace %abs_tmp with absolute temp filenames
|
||||||
|
regsub -all {%abs_tmp} $new_line [file join [pwd] $tmpFile] new_line
|
||||||
#replace _#MARKER#_ with %
|
#replace _#MARKER#_ with %
|
||||||
regsub -all {_#MARKER#_} $new_line % new_line
|
regsub -all {_#MARKER#_} $new_line % new_line
|
||||||
|
|
||||||
|
@@ -294,6 +294,8 @@ def parseIntegratedTestScript(test, xfailHasColon, requireAndAnd):
|
|||||||
('%S', os.path.dirname(sourcepath)),
|
('%S', os.path.dirname(sourcepath)),
|
||||||
('%p', os.path.dirname(sourcepath)),
|
('%p', os.path.dirname(sourcepath)),
|
||||||
('%t', tmpBase + '.tmp'),
|
('%t', tmpBase + '.tmp'),
|
||||||
|
# FIXME: Remove this once we kill DejaGNU.
|
||||||
|
('%abs_tmp', tmpBase + '.tmp'),
|
||||||
('#_MARKER_#', '%')])
|
('#_MARKER_#', '%')])
|
||||||
|
|
||||||
# Collect the test lines from the script.
|
# Collect the test lines from the script.
|
||||||
|
Reference in New Issue
Block a user