diff options
author | Araq <rumpf_a@web.de> | 2012-09-11 08:09:34 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-09-11 08:09:34 +0200 |
commit | 64c638a9dcdc12b1ccf83543bd2aa3aa15ce26f1 (patch) | |
tree | 5db73f3010fc215f37291fd26019b247f66168e2 /tests/tester.nim | |
parent | 1bb1db79b24ffa359e3c4524e7e65c6daa8b2613 (diff) | |
download | Nim-64c638a9dcdc12b1ccf83543bd2aa3aa15ce26f1.tar.gz |
first steps for overloading support of passing blocks; bugfix: test results of 'compile' are not overwritten
Diffstat (limited to 'tests/tester.nim')
-rwxr-xr-x | tests/tester.nim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/tester.nim b/tests/tester.nim index 8c9f7f782..795c094b7 100755 --- a/tests/tester.nim +++ b/tests/tester.nim @@ -18,7 +18,7 @@ const resultsFile = "testresults.html" jsonFile = "testresults.json" Usage = "usage: tester [--print] " & - "reject|compile|examples|run|" & + "reject|compile|run|" & "merge|special|rodfiles| [nimrod options]\n" & " or: tester test|comp|rej singleTest" @@ -65,7 +65,7 @@ proc extractSpec(filename: string): string = when not defined(nimhygiene): {.pragma: inject.} -template parseSpecAux(fillResult: stmt) = +template parseSpecAux(fillResult: stmt) {.immediate.} = var ss = newStringStream(extractSpec(filename)) var p {.inject.}: TCfgParser open(p, ss, filename, 1) @@ -125,7 +125,7 @@ proc callCompiler(cmdTemplate, filename, options: string): TSpec = var x = newStringOfCap(120) while outp.readLine(x.TaintedString) or running(p): if x =~ pegOfInterest: - # `s` should contain the last error/warning message + # `err` should contain the last error/warning message err = x elif x =~ pegSuccess: suc = x @@ -360,12 +360,10 @@ proc main() = of "compile": compile(r, "tests/compile/t*.nim", p.cmdLineRest.string) compile(r, "tests/ecmas.nim", p.cmdLineRest.string) - compileSpecialTests(r, p.cmdLineRest.string) - writeResults(compileJson, r) - of "examples": compileExample(r, "lib/pure/*.nim", p.cmdLineRest.string) compileExample(r, "examples/*.nim", p.cmdLineRest.string) compileExample(r, "examples/gtk/*.nim", p.cmdLineRest.string) + compileSpecialTests(r, p.cmdLineRest.string) writeResults(compileJson, r) of "run": run(r, "tests/run", p.cmdLineRest.string) |