Uptade test proc
This commit is contained in:
parent
b09682f91a
commit
3467243a1b
|
@ -16,11 +16,19 @@ requires "nim > 0.18.0",
|
||||||
"https://github.com/status-im/nim-stint",
|
"https://github.com/status-im/nim-stint",
|
||||||
"https://github.com/status-im/nim-byteutils"
|
"https://github.com/status-im/nim-byteutils"
|
||||||
|
|
||||||
proc runTest(name: string, lang = "c") = exec "nim " & lang & " -r tests/" & name
|
proc runTest(name: string, lang = "c") =
|
||||||
|
if not dirExists "build":
|
||||||
|
mkDir "build"
|
||||||
|
if not dirExists "nimcache":
|
||||||
|
mkDir "nimcache"
|
||||||
|
--run
|
||||||
|
--nimcache: "nimcache"
|
||||||
|
switch("out", ("./build/" & name))
|
||||||
|
setCommand lang, "tests/" & name & ".nim"
|
||||||
|
|
||||||
task test, "Runs the test suite":
|
task test, "Runs the test suite":
|
||||||
runTest "testecies"
|
runTest "testecies"
|
||||||
runTest "testauth"
|
runTest "testauth"
|
||||||
runTest "testcrypt"
|
runTest "testcrypt"
|
||||||
runTest "testenode"
|
runTest "testenode"
|
||||||
runTest("tdiscovery", "cpp")
|
runTest "tdiscovery"
|
||||||
|
|
Loading…
Reference in New Issue