Merge branch 'nimble'

This commit is contained in:
Ștefan Talpalaru 2019-03-26 00:21:40 +01:00
commit 6f4f86ec88
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 7 additions and 4 deletions

View File

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