Uptade test proc

This commit is contained in:
mratsim 2018-05-08 16:11:34 +02:00
parent b09682f91a
commit 3467243a1b
1 changed files with 10 additions and 2 deletions

View File

@ -16,11 +16,19 @@ requires "nim > 0.18.0",
"https://github.com/status-im/nim-stint",
"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":
runTest "testecies"
runTest "testauth"
runTest "testcrypt"
runTest "testenode"
runTest("tdiscovery", "cpp")
runTest "tdiscovery"