nim-eth/eth.nimble

49 lines
1.0 KiB
Plaintext
Raw Normal View History

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",
2019-02-06 18:11:29 +00:00
"chronos",
"chronicles",
"std_shims"
2019-02-05 10:32:22 +00:00
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
2019-02-15 14:46:44 +00:00
proc test(path: string) =
echo "Running: ", path
exec "nim c -r " & path
proc run_tests(dir: string) =
for path in walkDirRec(dir):
let fname = splitPath(path).tail
if fname.startsWith("test_") and fname.endsWith(".nim"):
test(path)
2019-02-05 10:10:36 +00:00
task test, "run tests":
2019-02-15 14:46:44 +00:00
run_tests("tests")
task test_keyfile, "run keyfile tests":
run_tests("tests/keyfile")
task test_keys, "run keys tests":
run_tests("tests/keys")
task test_p2p, "run p2p tests":
run_tests("tests/p2p")
task test_rlp, "run rlp tests":
run_tests("tests/rlp")
task test_trie, "run trie tests":
run_tests("tests/trie")