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