Skip to content

Commit

Permalink
tests: reduce RAM usage
Browse files Browse the repository at this point in the history
  • Loading branch information
stefantalpalaru committed Sep 5, 2019
1 parent d96f36c commit fc50c59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nimbus.nimble
Expand Up @@ -26,10 +26,11 @@ proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
var extra_params = params
for i in 2..<paramCount():
extra_params &= " " & paramStr(i)
exec "nim " & lang & " --out:./build/" & name & " " & extra_params & " " & srcDir & name & ".nim"
exec "nim " & lang & " --out:build/" & name & " " & extra_params & " " & srcDir & name & ".nim"

proc test(name: string, lang = "c") =
buildBinary name, "tests/", "-r -d:release -d:chronicles_log_level=ERROR"
buildBinary name, "tests/", "-d:release -d:chronicles_log_level=ERROR"
exec "build/" & name

task test, "Run tests":
test "all_tests"
Expand Down

0 comments on commit fc50c59

Please sign in to comment.