koch and testament improvement; make testing command easier to get right
This commit is contained in:
parent
444f2231c9
commit
c751c914fc
3 changed files with 6 additions and 7 deletions
5
koch.nim
5
koch.nim
|
|
@ -412,13 +412,8 @@ template `|`(a, b): string = (if a.len > 0: a else: b)
|
|||
|
||||
proc tests(args: string) =
|
||||
nimexec "cc --opt:speed testament/tester"
|
||||
# Since tests take a long time (on my machine), and we want to defy Murhpys
|
||||
# law - lets make sure the compiler really is freshly compiled!
|
||||
nimexec "c --lib:lib -d:release --opt:speed compiler/nim.nim"
|
||||
let tester = quoteShell(getCurrentDir() / "testament/tester".exe)
|
||||
let success = tryExec tester & " " & (args|"all")
|
||||
if not existsEnv("TRAVIS") and not existsEnv("APPVEYOR"):
|
||||
exec tester & " html"
|
||||
if not success:
|
||||
quit("tests failed", QuitFailure)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue