diff options
author | Jacek Sieka <arnetheduck@gmail.com> | 2017-11-06 16:37:21 +0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-11-06 09:37:21 +0100 |
commit | 11f6e626d72aa9863b9ab0f1fa80f8695416ba1e (patch) | |
tree | e657362a24f682bc7b64645b06ed88cff8da1348 | |
parent | 0586529ff512f56995cba647fcecb1e9c1dba29d (diff) | |
download | Nim-11f6e626d72aa9863b9ab0f1fa80f8695416ba1e.tar.gz |
pass on testament args to sub-process (#6688)
-rw-r--r-- | tests/testament/tester.nim | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim index 0daf4089e..71d9c2b9f 100644 --- a/tests/testament/tester.nim +++ b/tests/testament/tester.nim @@ -439,6 +439,8 @@ proc main() = var optPrintResults = false var optFailing = false + var targetsStr = "" + var p = initOptParser() p.next() while p.kind == cmdLongoption: @@ -446,7 +448,9 @@ proc main() = of "print", "verbose": optPrintResults = true of "failing": optFailing = true of "pedantic": discard "now always enabled" - of "targets": targets = parseTargets(p.val.string) + of "targets": + targetsStr = p.val.string + targets = parseTargets(targetsStr) of "nim": compilerPrefix = p.val.string else: quit Usage p.next() @@ -457,7 +461,10 @@ proc main() = case action of "all": let testsDir = "tests" & DirSep - let myself = quoteShell(findExe("tests" / "testament" / "tester")) + var myself = quoteShell(findExe("tests" / "testament" / "tester")) & + " '--nim:" & compilerPrefix & "'" + if targetsStr.len > 0: + myself &= " '--targets:" & targetsStr & "'" var cmds: seq[string] = @[] let rest = if p.cmdLineRest.string.len > 0: " " & p.cmdLineRest.string else: "" for kind, dir in walkDir(testsDir): |