31 lines
758 B
Nim
31 lines
758 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"
|
|
|
|
proc runTest(name: string, lang = "c") = exec "nim " & lang & " --experimental:ForLoopMacros -r tests/" & name
|
|
|
|
task test, "Runs the test suite":
|
|
runTest "testecies"
|
|
runTest "testauth"
|
|
runTest "testcrypt"
|
|
runTest "testenode"
|
|
runTest "tdiscovery"
|
|
runTest "tserver"
|