tests: reduce RAM usage

This commit is contained in:
Ștefan Talpalaru 2019-09-05 19:26:16 +02:00
parent d96f36c51d
commit fc50c596d1
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 3 additions and 2 deletions

View File

@ -26,10 +26,11 @@ proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
var extra_params = params var extra_params = params
for i in 2..<paramCount(): for i in 2..<paramCount():
extra_params &= " " & paramStr(i) 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") = 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": task test, "Run tests":
test "all_tests" test "all_tests"