parent
4850f9b596
commit
555cfd1d59
2 changed files with 3 additions and 5 deletions
|
|
@ -144,7 +144,7 @@ proc prepareTestArgs(cmdTemplate, filename, options, nimcache: string,
|
||||||
options.add " " & extraOptions
|
options.add " " & extraOptions
|
||||||
result = parseCmdLine(cmdTemplate % ["target", targetToCmd[target],
|
result = parseCmdLine(cmdTemplate % ["target", targetToCmd[target],
|
||||||
"options", options, "file", filename.quoteShell,
|
"options", options, "file", filename.quoteShell,
|
||||||
"filedir", filename.getFileDir()])
|
"filedir", filename.getFileDir(), "nim", compilerPrefix])
|
||||||
|
|
||||||
proc callCompiler(cmdTemplate, filename, options, nimcache: string,
|
proc callCompiler(cmdTemplate, filename, options, nimcache: string,
|
||||||
target: TTarget, extraOptions = ""): TSpec =
|
target: TTarget, extraOptions = ""): TSpec =
|
||||||
|
|
@ -682,7 +682,7 @@ proc main() =
|
||||||
gTargets = parseTargets(targetsStr)
|
gTargets = parseTargets(targetsStr)
|
||||||
targetsSet = true
|
targetsSet = true
|
||||||
of "nim":
|
of "nim":
|
||||||
compilerPrefix = addFileExt(p.val.string, ExeExt)
|
compilerPrefix = addFileExt(p.val.string.absolutePath, ExeExt)
|
||||||
of "directory":
|
of "directory":
|
||||||
setCurrentDir(p.val.string)
|
setCurrentDir(p.val.string)
|
||||||
of "colors":
|
of "colors":
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: "testament/testament --directory:testament --colors:off --backendLogging:off --nim:../compiler/nim category shouldfail"
|
cmd: "testament/testament --directory:testament --colors:off --backendLogging:off --nim:$nim category shouldfail"
|
||||||
action: compile
|
action: compile
|
||||||
nimout: '''
|
nimout: '''
|
||||||
FAIL: tests/shouldfail/tccodecheck.nim c
|
FAIL: tests/shouldfail/tccodecheck.nim c
|
||||||
|
|
@ -35,5 +35,3 @@ FAIL: tests/shouldfail/tvalgrind.nim c
|
||||||
Failure: reExitcodesDiffer
|
Failure: reExitcodesDiffer
|
||||||
'''
|
'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# xxx `--nim:../compiler/nim`, doesn't seem correct (and should also honor `testament --nim`)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue