tests: reduce RAM usage
This commit is contained in:
parent
d96f36c51d
commit
fc50c596d1
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue