mirror of
https://github.com/status-im/nim-eth-p2p.git
synced 2025-02-19 18:18:23 +00:00
Enable by compiling with -d:p2pdump. A chronicles log file named p2p_messages.json will be created in the working directory. This file will be consumed by the upcoming Chronicles Tail GUI (more details will be provided on the wiki of this repo). Other changes: * Removes the use of package_visible_types (only partially so far) * Simplifies the new Snappy code a little bit
35 lines
898 B
Nim
35 lines
898 B
Nim
mode = ScriptMode.Verbose
|
|
|
|
packageName = "eth_p2p"
|
|
version = "1.0.0"
|
|
author = "Status Research & Development GmbH"
|
|
description = "Ethereum P2P library"
|
|
license = "MIT"
|
|
skipDirs = @["tests", "Nim"]
|
|
|
|
requires "nim > 0.18.0",
|
|
"rlp >= 1.0.1",
|
|
"nimcrypto",
|
|
"secp256k1 >= 0.1.0",
|
|
"eth_keys",
|
|
"ranges",
|
|
"stint",
|
|
"byteutils",
|
|
"chronicles",
|
|
"asyncdispatch2",
|
|
"eth_common",
|
|
"snappy",
|
|
"package_visible_types",
|
|
"serialization",
|
|
"json_serialization"
|
|
|
|
proc runTest(name: string, defs = "", lang = "c") =
|
|
exec "nim " & lang & " " & defs & " -d:testing --experimental:ForLoopMacros -r tests/" & name
|
|
|
|
task test, "Runs the test suite":
|
|
runTest "testenode"
|
|
runTest "tdiscovery"
|
|
runTest "tserver"
|
|
runTest "tserver", "-d:useSnappy"
|
|
runTest "all_tests"
|