nim-eth-p2p/eth_p2p.nimble

37 lines
968 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 --threads:on --experimental:ForLoopMacros -r tests/" & name
task test, "Runs the test suite":
runTest "all_tests"
runTest "testenode"
runTest "tdiscovery"
runTest "tserver"
runTest "tserver", "-d:useSnappy"
runTest "tshh_connect"
runTest "tshh_connect_mocked"