Merge branch 'master' of github.com:status-im/nim-libp2p

This commit is contained in:
cheatfate 2019-03-31 01:32:22 +02:00
commit 39cc02232d
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 7 additions and 4 deletions

View File

@ -11,9 +11,12 @@ requires "nim > 0.18.0",
"nimcrypto >= 0.3.9",
"chronos"
import ospaths, strutils, distros
proc runTest(filename: string) =
exec "nim c -r tests/" & filename
rmFile "tests/" & filename
task test, "Runs the test suite":
exec "nim c -r " & ("tests" / "testnative.nim")
if not detectOs(Windows):
exec "nim c -r " & ("tests" / "testdaemon.nim")
runTest "testnative"
when not defined(windows):
runTest "testdaemon"