nim-eth/eth.nimble

102 lines
2.1 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
proc runTest(path: string) =
echo "\nRunning: ", path
exec "nim c -r -d:release -d:chronicles_log_level=ERROR --verbosity:0 --hints:off --warnings:off " & path
rmFile path
2019-02-05 10:10:36 +00:00
proc runKeyfileTests() =
for filename in [
"test_keyfile",
"test_uuid",
]:
runTest("tests/keyfile/" & filename)
2019-02-15 14:46:44 +00:00
task test_keyfile, "run keyfile tests":
runKeyfileTests()
proc runKeysTests() =
for filename in [
"test_keys",
]:
runTest("tests/keys/" & filename)
2019-02-15 14:46:44 +00:00
task test_keys, "run keys tests":
runKeysTests()
proc runP2pTests() =
for filename in [
"les/test_flow_control",
"test_auth",
"test_crypt",
"test_discovery",
"test_ecies",
"test_enode",
"test_shh",
"test_shh_connect",
2019-04-02 16:35:36 +00:00
"test_failing_handler",
]:
runTest("tests/p2p/" & filename)
2019-02-15 14:46:44 +00:00
task test_p2p, "run p2p tests":
runP2pTests()
proc runRlpTests() =
for filename in [
"test_api_usage",
"test_json_suite",
"test_object_serialization",
]:
runTest("tests/rlp/" & filename)
2019-02-15 14:46:44 +00:00
task test_rlp, "run rlp tests":
runRlpTests()
proc runTrieTests() =
for filename in [
"test_binaries_utils",
"test_bin_trie",
"test_branches_utils",
"test_caching_db_backend",
"test_examples",
"test_hexary_trie",
"test_json_suite",
"test_nibbles",
"test_sparse_binary_trie",
"test_storage_backends",
"test_transaction_db",
]:
runTest("tests/trie/" & filename)
2019-02-15 14:46:44 +00:00
task test_trie, "run trie tests":
runTrieTests()
task test, "run tests":
for filename in [
"test_bloom",
"test_common",
]:
runTest("tests/" & filename)
runKeyfileTests()
runKeysTests()
runP2pTests()
runRlpTests()
runTrieTests()
2019-02-15 14:46:44 +00:00