2018-03-28 00:17:01 +00:00
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
|
|
|
|
packageName = "ethp2p"
|
|
|
|
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",
|
|
|
|
"rlp >= 1.0.1",
|
|
|
|
"nimcrypto >= 0.1.0",
|
|
|
|
"secp256k1 >= 0.1.0",
|
|
|
|
"eth_keys",
|
|
|
|
"ranges",
|
|
|
|
"ttmath"
|
2018-03-28 00:17:01 +00:00
|
|
|
|
2018-03-30 13:56:56 +00:00
|
|
|
proc runTest(name: string, lang = "c") = exec "nim " & lang & " -r tests/" & name
|
|
|
|
|
|
|
|
task test, "Runs the test suite":
|
|
|
|
runTest "testecc"
|
|
|
|
runTest "testecies"
|
|
|
|
runTest "testauth"
|
2018-03-30 13:58:06 +00:00
|
|
|
|
|
|
|
runTest("tdiscovery", "cpp")
|