mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 21:34:33 +00:00
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
|
||||
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user