2019-02-05 10:10:36 +00:00
|
|
|
version = "1.0.0"
|
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "Ethereum Common library"
|
|
|
|
license = "MIT"
|
|
|
|
skipDirs = @["tests"]
|
|
|
|
|
2019-02-05 11:10:23 +00:00
|
|
|
requires "nim >= 0.19.0",
|
2019-02-05 10:10:36 +00:00
|
|
|
"nimcrypto",
|
|
|
|
"ranges",
|
|
|
|
"stint",
|
2019-02-05 10:32:22 +00:00
|
|
|
"byteutils",
|
2019-02-05 14:06:13 +00:00
|
|
|
"secp256k1",
|
2019-02-05 15:54:17 +00:00
|
|
|
"rocksdb",
|
|
|
|
"package_visible_types",
|
2019-02-06 18:11:29 +00:00
|
|
|
"chronos",
|
2019-02-05 15:59:32 +00:00
|
|
|
"chronicles"
|
2019-02-05 10:32:22 +00:00
|
|
|
|
|
|
|
proc test(filename: string) =
|
|
|
|
echo "Running: ", filename
|
|
|
|
exec "nim c -r " & filename
|
|
|
|
|
2019-02-05 10:56:28 +00:00
|
|
|
import strutils
|
|
|
|
import oswalkdir, ospaths # In newer nim these are merged to os
|
2019-02-05 10:10:36 +00:00
|
|
|
|
|
|
|
task test, "run tests":
|
2019-02-05 10:32:22 +00:00
|
|
|
for i in walkDirRec("tests"):
|
|
|
|
let fn = splitPath(i).tail
|
|
|
|
if fn.startsWith("test_") and fn.endsWith(".nim"):
|
|
|
|
test(i)
|