Add run_all_test.sh help script etc.
This commit is contained in:
parent
a69f528bc1
commit
8ac52c2dd8
|
@ -25,10 +25,10 @@ proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
|
|||
if not dirExists "build":
|
||||
mkDir "build"
|
||||
# allow something like "nim nimbus --verbosity:0 --hints:off nimbus.nims"
|
||||
# var extra_params = params
|
||||
# for i in 2..<paramCount():
|
||||
# extra_params &= " " & paramStr(i)
|
||||
exec "nim " & lang & " --threads:on --out:build/" & name & " " & srcDir & name & ".nim"
|
||||
var extra_params = params
|
||||
for i in 2..<paramCount():
|
||||
extra_params &= " " & paramStr(i)
|
||||
exec "nim " & lang & " --threads:on " & extra_params & " --out:build/" & name & " " & srcDir & name & ".nim"
|
||||
|
||||
proc test(path: string, name: string, params = "", lang = "c") =
|
||||
# Verify stack usage is kept low by setting 750k stack limit in tests.
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
nim test raft.nims
|
|
@ -12,6 +12,6 @@ import ../misc/test_macro
|
|||
{. warning[UnusedImport]:off .}
|
||||
|
||||
cliBuilder:
|
||||
import ./test_basic_cluster,
|
||||
import ./test_basic_timers,
|
||||
./test_basic_state_machine,
|
||||
./test_basic_timers
|
||||
./test_basic_cluster
|
Loading…
Reference in New Issue