nimble tests -> nimble test

This commit is contained in:
Yuriy Glukhov 2018-03-30 16:56:56 +03:00
parent b48a4cacf1
commit c3e78c28c3
3 changed files with 8 additions and 6 deletions

View File

@ -17,4 +17,4 @@ before_script:
- cd ..
script:
- nimble install -y
- nimble tests
- nimble test

View File

@ -39,6 +39,6 @@ build_script:
- cd C:\projects\nim-eth-p2p
- nimble install -y
test_script:
- nimble tests
- nimble test
deploy: off

View File

@ -9,7 +9,9 @@ skipDirs = @["tests", "Nim"]
requires "nim > 0.18.0", "https://github.com/status-im/nim-rlp >= 1.0.1", "https://github.com/cheatfate/nimcrypto >= 0.1.0", "https://github.com/status-im/nim-secp256k1 >= 0.1.0"
task tests, "Runs the test suite":
exec "nim c -r tests/testecc"
exec "nim c -r tests/testecies"
exec "nim c -r tests/testauth"
proc runTest(name: string, lang = "c") = exec "nim " & lang & " -r tests/" & name
task test, "Runs the test suite":
runTest "testecc"
runTest "testecies"
runTest "testauth"