parent
71dd5f85b9
commit
9a76398ec6
1 changed files with 4 additions and 2 deletions
6
koch.nim
6
koch.nim
|
|
@ -440,8 +440,10 @@ template `|`(a, b): string = (if a.len > 0: a else: b)
|
||||||
|
|
||||||
proc tests(args: string) =
|
proc tests(args: string) =
|
||||||
nimexec "cc --opt:speed testament/testament"
|
nimexec "cc --opt:speed testament/testament"
|
||||||
let tester = quoteShell(getCurrentDir() / "testament/testament".exe)
|
var testCmd = quoteShell(getCurrentDir() / "testament/testament".exe)
|
||||||
let success = tryExec tester & " " & (args|"all")
|
testCmd.add " " & quoteShell("--nim:" & findNim())
|
||||||
|
testCmd.add " " & (args|"all")
|
||||||
|
let success = tryExec testCmd
|
||||||
if not success:
|
if not success:
|
||||||
quit("tests failed", QuitFailure)
|
quit("tests failed", QuitFailure)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue