2018-03-28 03:17:01 +03:00
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
|
2018-06-16 21:58:41 +03:00
|
|
|
packageName = "eth_p2p"
|
2018-03-28 03:17:01 +03:00
|
|
|
version = "1.0.0"
|
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "Ethereum P2P library"
|
|
|
|
license = "MIT"
|
2018-03-28 04:52:53 +03:00
|
|
|
skipDirs = @["tests", "Nim"]
|
2018-03-28 03:17:01 +03:00
|
|
|
|
2018-03-30 17:06:46 +03:00
|
|
|
requires "nim > 0.18.0",
|
2018-04-30 20:40:04 +03:00
|
|
|
"rlp >= 1.0.1",
|
2018-05-10 15:51:33 +03:00
|
|
|
"nimcrypto",
|
2018-04-30 20:40:04 +03:00
|
|
|
"secp256k1 >= 0.1.0",
|
|
|
|
"eth_keys",
|
|
|
|
"ranges",
|
2018-05-10 15:51:33 +03:00
|
|
|
"stint",
|
2018-06-17 13:23:18 +03:00
|
|
|
"byteutils",
|
2018-07-10 12:54:27 +03:00
|
|
|
"chronicles",
|
2018-09-15 23:52:15 +03:00
|
|
|
"asyncdispatch2",
|
2018-10-15 17:36:43 +03:00
|
|
|
"eth_common",
|
2018-11-10 02:18:00 +02:00
|
|
|
"snappy",
|
2018-11-02 20:45:57 +07:00
|
|
|
"package_visible_types",
|
2018-11-10 02:18:00 +02:00
|
|
|
"serialization",
|
|
|
|
"json_serialization"
|
2018-07-31 00:37:56 +03:00
|
|
|
|
2018-11-02 20:45:57 +07:00
|
|
|
proc runTest(name: string, defs = "", lang = "c") =
|
|
|
|
exec "nim " & lang & " " & defs & " -d:testing --experimental:ForLoopMacros -r tests/" & name
|
2018-03-30 16:56:56 +03:00
|
|
|
|
|
|
|
task test, "Runs the test suite":
|
2018-11-28 01:52:22 +02:00
|
|
|
runTest "all_tests"
|
2018-04-30 20:40:04 +03:00
|
|
|
runTest "testenode"
|
2018-05-08 16:11:34 +02:00
|
|
|
runTest "tdiscovery"
|
2018-05-10 15:51:33 +03:00
|
|
|
runTest "tserver"
|
2018-11-02 20:45:57 +07:00
|
|
|
runTest "tserver", "-d:useSnappy"
|
2018-12-06 12:30:29 +01:00
|
|
|
runTest "tshh_connect"
|
2018-11-28 01:52:22 +02:00
|
|
|
runTest "tshh_connect_mocked"
|