Skip to content

Commit

Permalink
koch: use in-tree Nim to run test if possible (#15018)
Browse files Browse the repository at this point in the history
Fixes #15013
  • Loading branch information
alaviss authored Jul 20, 2020
1 parent 71dd5f8 commit 9a76398
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions koch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,10 @@ template `|`(a, b): string = (if a.len > 0: a else: b)

proc tests(args: string) =
nimexec "cc --opt:speed testament/testament"
let tester = quoteShell(getCurrentDir() / "testament/testament".exe)
let success = tryExec tester & " " & (args|"all")
var testCmd = quoteShell(getCurrentDir() / "testament/testament".exe)
testCmd.add " " & quoteShell("--nim:" & findNim())
testCmd.add " " & (args|"all")
let success = tryExec testCmd
if not success:
quit("tests failed", QuitFailure)

Expand Down

0 comments on commit 9a76398

Please sign in to comment.