Add run_all_test.sh help script etc.

This commit is contained in:
Raycho Mukelov 2023-09-01 01:42:18 +03:00
parent a69f528bc1
commit 8ac52c2dd8
4 changed files with 9 additions and 6 deletions

View File

@ -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.

1
raft.nims Symbolic link
View File

@ -0,0 +1 @@
raft.nimble

2
run_all_tests.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
nim test raft.nims

View File

@ -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