2018-11-19 02:52:11 +00:00
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
|
2018-11-19 04:03:23 +00:00
|
|
|
packageName = "libp2p"
|
2019-11-06 11:01:16 +00:00
|
|
|
version = "0.0.2"
|
2018-11-19 02:52:11 +00:00
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "LibP2P implementation"
|
|
|
|
license = "MIT"
|
2018-11-27 12:20:05 +00:00
|
|
|
skipDirs = @["tests", "examples", "Nim"]
|
2018-11-19 02:52:11 +00:00
|
|
|
|
2019-10-23 10:27:51 +00:00
|
|
|
requires "nim > 0.19.4",
|
2019-09-02 18:55:42 +00:00
|
|
|
"secp256k1",
|
2019-09-13 19:11:41 +00:00
|
|
|
"nimcrypto >= 0.4.1",
|
2020-01-29 15:42:42 +00:00
|
|
|
"chronos >= 2.3.5",
|
2019-11-06 11:59:03 +00:00
|
|
|
"bearssl >= 0.1.3",
|
2019-12-13 09:42:47 +00:00
|
|
|
"chronicles >= 0.7.0",
|
|
|
|
"stew"
|
2018-11-19 02:52:11 +00:00
|
|
|
|
2019-03-25 21:45:34 +00:00
|
|
|
proc runTest(filename: string) =
|
2020-01-07 08:06:27 +00:00
|
|
|
exec "nim --opt:speed -d:release c -r tests/" & filename
|
2019-08-22 05:49:27 +00:00
|
|
|
# rmFile "tests/" & filename
|
2019-03-14 02:55:47 +00:00
|
|
|
|
2018-11-19 21:03:50 +00:00
|
|
|
task test, "Runs the test suite":
|
2019-03-25 21:45:34 +00:00
|
|
|
runTest "testnative"
|
2019-08-01 05:56:59 +00:00
|
|
|
runTest "testdaemon"
|
2019-12-06 02:16:18 +00:00
|
|
|
runTest "testinterop"
|