nim-eth/eth.nimble

109 lines
2.3 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",
"stint",
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",
2019-07-07 09:55:17 +00:00
"stew",
"result",
2019-07-10 00:08:35 +00:00
"nat_traversal",
2019-09-06 02:55:30 +00:00
"metrics"
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_rlpx_thunk",
"test_shh",
2019-11-19 13:08:20 +00:00
"test_shh_config",
"test_shh_connect",
"test_waku_connect",
"test_waku_bridge",
2019-12-05 23:45:14 +00:00
"test_waku_mail",
2019-12-12 22:23:26 +00:00
"test_waku_mode",
"test_protocol_handlers",
]:
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